Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
77
Issue boards
Milestones
Wiki
Code
Merge requests
77
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Merge requests
!1893
[typetraits][matrix] Add trait for MultiTypeBlockMatrix
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
[typetraits][matrix] Add trait for MultiTypeBlockMatrix
feature/typetraits-multitype
into
master
Overview
1
Commits
2
Pipelines
0
Changes
1
All threads resolved!
Show all comments
Merged
Kilian Weishaupt
requested to merge
feature/typetraits-multitype
into
master
4 years ago
Overview
1
Commits
2
Pipelines
0
Changes
1
All threads resolved!
Show all comments
Expand
use forward declare to remove includes
Edited
4 years ago
by
Kilian Weishaupt
👍
0
👎
0
Merge request reports
Compare
master
version 2
6a361f00
4 years ago
version 1
12a560b0
4 years ago
master (base)
and
latest version
latest version
64578350
2 commits,
4 years ago
version 2
6a361f00
1 commit,
4 years ago
version 1
12a560b0
1 commit,
4 years ago
1 file
+
19
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
dumux/common/typetraits/matrix.hh
+
19
−
5
Options
@@ -26,16 +26,30 @@
#include
<type_traits>
#include
<dune/istl/bcrsmatrix.hh>
// Forward declare to avoid includes
namespace
Dune
{
template
<
class
A
,
class
B
>
class
BCRSMatrix
;
namespace
Dumux
{
template
<
class
FirstRow
,
class
...
Args
>
class
MultiTypeBlockMatrix
;
}
// end namespace Dune
//! Helper type to determine whether a given type is a Dune::BCRSMatrix
template
<
class
T
>
struct
isBCRSMatrix
:
public
std
::
false_type
{};
namespace
Dumux
{
//! Helper type to determine whether a given type is a Dune::BCRSMatrix
template
<
class
T
>
struct
isBCRSMatrix
<
Dune
::
BCRSMatrix
<
T
>
>
:
public
std
::
true_type
{};
struct
isBCRSMatrix
:
public
std
::
false_type
{};
template
<
class
B
>
struct
isBCRSMatrix
<
Dune
::
BCRSMatrix
<
B
>>
:
public
std
::
true_type
{};
//! Helper type to determine whether a given type is a Dune::MultiTypeBlockMatrix
template
<
class
...
Args
>
struct
isMultiTypeBlockMatrix
:
public
std
::
false_type
{};
template
<
class
...
Args
>
struct
isMultiTypeBlockMatrix
<
Dune
::
MultiTypeBlockMatrix
<
Args
...
>>
:
public
std
::
true_type
{};
}
// end namespace Dumux
Loading