25#ifndef DUMUX_GEOMETRY_DIAMETER_HH
26#define DUMUX_GEOMETRY_DIAMETER_HH
37template<
class Geometry>
38typename Geometry::ctype
diameter(
const Geometry& geo)
41 typename Geometry::ctype h = 0.0;
42 for (std::size_t i = 0; i < geo.corners(); ++i)
43 for (std::size_t j = i + 1; j < geo.corners(); ++j)
44 h = max(h, (geo.corner(i)-geo.corner(j)).two_norm());
Geometry::ctype diameter(const Geometry &geo)
Computes the longest distance between points of a geometry.
Definition: diameter.hh:38
Adaption of the non-isothermal two-phase two-component flow model to problems with CO2.
Definition: adapt.hh:29