3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Classes | Functions | Variables
Dumux::Test Namespace Reference

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 > &center)
 returns if the element with given center position is corner element More...
 
bool isMiddleLeftElement (const Dune::FieldVector< double, 2 > &center)
 returns if the element is middle left element More...
 
bool isMiddleRightElement (const Dune::FieldVector< double, 2 > &center)
 returns if the element is middle right element More...
 
bool isMiddleUpperElement (const Dune::FieldVector< double, 2 > &center)
 returns if the element is middle upper element More...
 
bool isMiddleLowerElement (const Dune::FieldVector< double, 2 > &center)
 returns if the element is middle lower element More...
 
std::string elementTypeName (const Dune::FieldVector< double, 2 > &center)
 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...
 

Function Documentation

◆ elementTypeName()

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

◆ isCornerElement()

bool Dumux::Test::isCornerElement ( const Dune::FieldVector< double, 2 > &  center)

returns if the element with given center position is corner element

◆ isInCentralElement()

bool Dumux::Test::isInCentralElement ( const Dune::FieldVector< double, 2 > &  pos)

returns true if a given position is inside the central element (before refinement)

◆ isMiddleLeftElement()

bool Dumux::Test::isMiddleLeftElement ( const Dune::FieldVector< double, 2 > &  center)

returns if the element is middle left element

◆ isMiddleLowerElement()

bool Dumux::Test::isMiddleLowerElement ( const Dune::FieldVector< double, 2 > &  center)

returns if the element is middle lower element

◆ isMiddleRightElement()

bool Dumux::Test::isMiddleRightElement ( const Dune::FieldVector< double, 2 > &  center)

returns if the element is middle right element

◆ isMiddleUpperElement()

bool Dumux::Test::isMiddleUpperElement ( const Dune::FieldVector< double, 2 > &  center)

returns if the element is middle upper element

◆ resize()

template<class Vector , typename std::enable_if_t< decltype(hasResize.template check< Vector >())::value, int > = 0>
void Dumux::Test::resize ( const Vector &  v,
std::size_t  size 
)

◆ resize2()

template<class Vector >
auto Dumux::Test::resize2 ( const Vector &  v,
std::size_t  size 
) -> typename std::enable_if_t<decltype(hasResize(v))::value, void>

Variable Documentation

◆ eps

constexpr double Dumux::Test::eps = 1e-6
constexpr

epsilon for checking direction of scvf normals

◆ hasResize

const auto Dumux::Test::hasResize = isValid([](auto&& a) -> decltype(a.resize(std::size_t(1))) { })