24#ifndef DUMUX_DISCRETIZATION_FACECENTERED_STAGGERED_NORMAL_AXIS_HH
25#define DUMUX_DISCRETIZATION_FACECENTERED_STAGGERED_NORMAL_AXIS_HH
42 constexpr auto eps = 1e-8;
43 assert(std::any_of(v.begin(), v.end(), [=](
auto x){ return abs(x) > eps; }));
46 std::begin(v), std::find_if(v.begin(), v.end(), [eps=eps](
auto x){ return abs(x) > eps; })
50 assert(v[result] == std::accumulate(v.begin(), v.end(), 0.0));
static ctype distance(const Dune::FieldVector< ctype, dimWorld > &a, const Dune::FieldVector< ctype, dimWorld > &b)
Compute the shortest distance between two points.
Definition: distance.hh:294
static std::size_t normalAxis(const Vector &v)
Returns the normal axis index of a unit vector (0 = x, 1 = y, 2 = z)
Definition: normalaxis.hh:38
Adaption of the non-isothermal two-phase two-component flow model to problems with CO2.
Definition: adapt.hh:29