14 std::size_t error_count(0);
15 if (
_mesh.getDimension() == 1)
25 "ElementSizeMetric::calculateQuality() minimum: {:f}, max_volume: {:f}",
30 WARN(
"Warning: {:d} elements with zero volume found.", error_count);
36 const std::vector<MeshLib::Element*>& elements(
_mesh.getElements());
37 const std::size_t nElems(elements.size());
38 std::size_t error_count(0);
40 for (std::size_t k(0); k < nElems; k++)
42 double area(std::numeric_limits<double>::max());
46 std::sqrt(std::abs(std::numeric_limits<double>::epsilon())))
66 const std::vector<MeshLib::Element*>& elements(
_mesh.getElements());
67 const std::size_t nElems(elements.size());
68 std::size_t error_count(0);
70 for (std::size_t k(0); k < nElems; k++)
81 if (volume < sqrt(std::abs(std::numeric_limits<double>::epsilon())))
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.