From 1a96c90799783b4e2ac8be4cb9115c6a35c2cf0e Mon Sep 17 00:00:00 2001 From: Khapisov Malik Date: Sun, 21 Nov 2021 15:10:15 +0300 Subject: [PATCH] The final commit --- Development of a finite element mesh loader/MeshLoader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Development of a finite element mesh loader/MeshLoader.cpp b/Development of a finite element mesh loader/MeshLoader.cpp index 353d89a..6629ae4 100644 --- a/Development of a finite element mesh loader/MeshLoader.cpp +++ b/Development of a finite element mesh loader/MeshLoader.cpp @@ -239,9 +239,9 @@ void MeshLoader::volume_range(int m_ID, double a, double b, const std::string& f [&](const FiniteElement& elem) { double V = volume(elem); - //!!! Зачем изобратеть велосипед, если можно написать a < V && V < b; + //!!! Зачем изобратеть велосипед, если можно написать a < V && V < b; (исправлено) - return V - a > std::numeric_limits::epsilon() && b - V > std::numeric_limits::epsilon(); + return a < V && V < b; }) | std::ranges::views::transform( [](const FiniteElement& elem) { -- GitLab