25 std::size_t error_count(0);
36 "ElementSizeMetric::calculateQuality() minimum: {:f}, max_volume: {:f}",
41 WARN(
"Warning: {:d} elements with zero volume found.", error_count);
48 const std::size_t nElems(elements.size());
49 std::size_t error_count(0);
51 for (std::size_t k(0); k < nElems; k++)
53 double area(std::numeric_limits<double>::max());
57 std::sqrt(std::abs(std::numeric_limits<double>::epsilon())))
78 const std::size_t nElems(elements.size());
79 std::size_t error_count(0);
81 for (std::size_t k(0); k < nElems; k++)
92 if (volume < sqrt(std::abs(std::numeric_limits<double>::epsilon())))
Implementation of the AreaMetric class.
void INFO(fmt::format_string< Args... > fmt, Args &&... args)
void WARN(fmt::format_string< Args... > fmt, Args &&... args)
virtual constexpr unsigned getDimension() const =0
Get dimension of the mesh element.
std::vector< Element * > const & getElements() const
Get the element-vector for the mesh.
unsigned getDimension() const
Returns the dimension of the mesh (determined by the maximum dimension over all elements).