Skip to content
Snippets Groups Projects

Feature/organize traits

Merged maxka requested to merge feature/organize-traits into master
Files
16
@@ -17,7 +17,6 @@
#include <dune/matrix-vector/algorithm.hh>
#include <dune/matrix-vector/resize.hh>
/// custom multitype types to allow for BlockVector nesting
template <class... Args>
struct CustomMultiTypeBlockVector : public Dune::MultiTypeBlockVector<Args...> {
@@ -28,19 +27,19 @@ struct CustomMultiTypeBlockMatrix : public Dune::MultiTypeBlockMatrix<Args...> {
constexpr static int blocklevel = 1; // fake value
};
// inject matrix traits for CustomMultiTypeBlockMatrix
namespace Dune { namespace MatrixVector {
namespace Dune { namespace MatrixVector { namespace Traits {
template <class... Args>
struct MatrixTraits<CustomMultiTypeBlockMatrix<Args...>> {
constexpr static bool isMatrix = true;
};
}}
}}}
// inject vector identification trait for CustomMultiTypeBlockVector
namespace Dune { namespace MatrixVector {
namespace Dune { namespace MatrixVector { namespace Traits {
template <class... Args>
struct VectorTraits<CustomMultiTypeBlockVector<Args...>> {
constexpr static bool isVector = true;
};
}}
}}}
class ResizeTestSuite {
Loading