Skip to content
Snippets Groups Projects
Commit de87490c authored by Patrick Jaap's avatar Patrick Jaap
Browse files

Merge branch 'fix/energynormtest' into 'master'

Fix energynormtest

See merge request !69
parents accdd989 ea5f6f27
No related branches found
No related tags found
1 merge request!69Fix energynormtest
Pipeline #54027 failed
......@@ -145,6 +145,12 @@ struct CustomMultiTypeBlockVector : public Dune::MultiTypeBlockVector<Args...> {
template<class... Args>
struct CustomMultiTypeBlockMatrix : public Dune::MultiTypeBlockMatrix<Args...> {
constexpr static size_t blocklevel = 1; // fake value needed for BCRSMatrix nesting
// HACK for istl compatibility
static constexpr size_t size(){
return sizeof...(Args);
}
template<class K, typename = std::enable_if_t<Dune::IsNumber<K>::value>>
void operator*=(K v) { Dune::Hybrid::forEach(*this, [v](auto& b) { b *= v; }); } // allow multiplication by scalar
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment