Skip to content
Snippets Groups Projects
Commit b63af96d authored by Norihiro Watanabe's avatar Norihiro Watanabe
Browse files

replace min() with lowest() in MeshLib

parent a6b46c90
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,7 @@ const Element* Element::getEdge(unsigned i) const
void Element::computeSqrEdgeLengthRange(double &min, double &max) const
{
min = std::numeric_limits<double>::max();
max = std::numeric_limits<double>::min();
max = std::numeric_limits<double>::lowest();
const unsigned nEdges (this->getNEdges());
for (unsigned i=0; i<nEdges; i++)
{
......
......@@ -21,7 +21,7 @@
namespace MeshLib
{
ElementQualityMetric::ElementQualityMetric(Mesh const* const mesh) :
_min (std::numeric_limits<double>::max()), _max (std::numeric_limits<double>::min()), _mesh (mesh)
_min (std::numeric_limits<double>::max()), _max (std::numeric_limits<double>::lowest()), _mesh (mesh)
{
if (_mesh)
_element_quality_metric.resize (_mesh->getNElements(), -1.0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment