OGS
getMaxiumElementEdgeLengths.cpp
Go to the documentation of this file.
1
13
15#include "MeshLib/Node.h"
16
17namespace MeshLib
18{
19std::vector<double> getMaxiumElementEdgeLengths(
20 std::vector<Element*> const& elements)
21{
22 std::vector<double> element_edge_lengths(elements.size());
23 for (auto const element : elements)
24 {
25 assert(element->getGeomType() != MeshElemType::POINT);
26
27 auto const& [min_edge_length, max_edge_length] =
29 (void)min_edge_length;
30
31 element_edge_lengths[element->getID()] = std::sqrt(max_edge_length);
32 }
33
34 return element_edge_lengths;
35}
36} // namespace MeshLib
Definition of the Element class.
Definition of the Node class.
std::vector< double > getMaxiumElementEdgeLengths(std::vector< Element * > const &elements)
Returns the maximum lengths of the edges for each element.
std::pair< double, double > computeSqrEdgeLengthRange(Element const &element)
Compute the minimum and maximum squared edge length for this element.
Definition Element.cpp:156