1#ifndef __DUNE_ACFEM_GEOMETRY_HH__
2#define __DUNE_ACFEM_GEOMETRY_HH__
17 template<
class Geometry>
18 typename Geometry::ctype
h2Estimate(
const Geometry& geometry)
20 const int dimension = Geometry::mydimension;
21 typename Geometry::ctype volume = geometry.volume();
29 return std::pow(volume, 2.0/(
double)dimension);
38 template<
class Geometry>
39 typename Geometry::ctype
hEstimate(
const Geometry& geometry)
41 typedef typename Geometry::ctype ctype;
42 const int dimension = Geometry::mydimension;
43 const ctype volume = geometry.volume();
49 return std::sqrt(volume);
51 return std::pow(volume, 1.0/(
double)dimension);
Geometry::ctype h2Estimate(const Geometry &geometry)
Compute a rough estimate of the square of the diameter of the element's Geometry.
Definition: geometry.hh:18
Geometry::ctype hEstimate(const Geometry &geometry)
Compute a rough estimate of the diameter of the element's Geometry.
Definition: geometry.hh:39