Skip to content
Snippets Groups Projects
Commit 5d80eba9 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

DOFVector test corrected for EIGEN backend

parent 027127bf
Branches
No related tags found
No related merge requests found
......@@ -22,10 +22,12 @@ void test_dofvector(B const& basis, DOFVector<B,T>& vec)
vec = T(0);
vec[0] = T(1);
#if HAVE_MTL || HAVE_ISTL
auto m0 = std::min_element(std::begin(vec.vector()), std::end(vec.vector()));
auto m1 = std::max_element(std::begin(vec.vector()), std::end(vec.vector()));
AMDIS_TEST( *m0 == T(0) );
AMDIS_TEST( *m1 == T(1) );
#endif
// DOFVector models the concept of a VectorBackend in Dune::Functions
static_assert(Dune::models<Dune::Functions::Concept::VectorBackend<B>, decltype(vec)>(), "");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment