Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
8d91fbbf
Commit
8d91fbbf
authored
Mar 17, 2020
by
Kilian Weishaupt
Committed by
Timo Koch
Mar 17, 2020
Browse files
[typetraits][matrix] Add trait for MultiTypeBlockMatrix
* use forward declare to remove includes
parent
1d241987
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/common/typetraits/matrix.hh
View file @
8d91fbbf
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment