Classes | |
struct | MyOtherVector |
struct | MyVector |
Functions | |
template<class Vector , typename std::enable_if_t< decltype(hasResize.template check< Vector >())::value, int > = 0> | |
void | resize (const Vector &v, std::size_t size) |
template<class Vector > | |
auto | resize2 (const Vector &v, std::size_t size) -> typename std::enable_if_t< decltype(hasResize(v))::value, void > |
bool | isInCentralElement (const Dune::FieldVector< double, 2 > &pos) |
returns true if a given position is inside the central element (before refinement) More... | |
bool | isCornerElement (const Dune::FieldVector< double, 2 > ¢er) |
returns if the element with given center position is corner element More... | |
bool | isMiddleLeftElement (const Dune::FieldVector< double, 2 > ¢er) |
returns if the element is middle left element More... | |
bool | isMiddleRightElement (const Dune::FieldVector< double, 2 > ¢er) |
returns if the element is middle right element More... | |
bool | isMiddleUpperElement (const Dune::FieldVector< double, 2 > ¢er) |
returns if the element is middle upper element More... | |
bool | isMiddleLowerElement (const Dune::FieldVector< double, 2 > ¢er) |
returns if the element is middle lower element More... | |
std::string | elementTypeName (const Dune::FieldVector< double, 2 > ¢er) |
returns for a given element center the element type name used in this test More... | |
Variables | |
const auto | hasResize = isValid([](auto&& a) -> decltype(a.resize(std::size_t(1))) { }) |
constexpr double | eps = 1e-6 |
epsilon for checking direction of scvf normals More... | |
std::string Dumux::Test::elementTypeName | ( | const Dune::FieldVector< double, 2 > & | center | ) |
returns for a given element center the element type name used in this test
bool Dumux::Test::isCornerElement | ( | const Dune::FieldVector< double, 2 > & | center | ) |
returns if the element with given center position is corner element
bool Dumux::Test::isInCentralElement | ( | const Dune::FieldVector< double, 2 > & | pos | ) |
returns true if a given position is inside the central element (before refinement)
bool Dumux::Test::isMiddleLeftElement | ( | const Dune::FieldVector< double, 2 > & | center | ) |
returns if the element is middle left element
bool Dumux::Test::isMiddleLowerElement | ( | const Dune::FieldVector< double, 2 > & | center | ) |
returns if the element is middle lower element
bool Dumux::Test::isMiddleRightElement | ( | const Dune::FieldVector< double, 2 > & | center | ) |
returns if the element is middle right element
bool Dumux::Test::isMiddleUpperElement | ( | const Dune::FieldVector< double, 2 > & | center | ) |
returns if the element is middle upper element
void Dumux::Test::resize | ( | const Vector & | v, |
std::size_t | size | ||
) |
auto Dumux::Test::resize2 | ( | const Vector & | v, |
std::size_t | size | ||
) | -> typename std::enable_if_t<decltype(hasResize(v))::value, void> |
|
constexpr |
epsilon for checking direction of scvf normals
const auto Dumux::Test::hasResize = isValid([](auto&& a) -> decltype(a.resize(std::size_t(1))) { }) |