Skip to content
Snippets Groups Projects
Commit 01341551 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Fix MeshFlatNodeBoundary::_checkBoundaryIsFlat method

Was incorrect in the case of concave boundaries ...
parent e5fe4ccb
No related branches found
No related tags found
1 merge request!140Change referenced item list policy
...@@ -17,7 +17,7 @@ MeshFlatNodeBoundary<Dimension>::_checkBoundaryIsFlat(const TinyVector<Dimension ...@@ -17,7 +17,7 @@ MeshFlatNodeBoundary<Dimension>::_checkBoundaryIsFlat(const TinyVector<Dimension
parallel_for(this->m_node_list.size(), [=, &is_bad](int r) { parallel_for(this->m_node_list.size(), [=, &is_bad](int r) {
const Rd& x = xr[this->m_node_list[r]]; const Rd& x = xr[this->m_node_list[r]];
if (dot(x - origin, normal) > 1E-13 * length) { if (std::abs(dot(x - origin, normal)) > 1E-13 * length) {
is_bad = true; is_bad = true;
} }
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment