Skip to content
Snippets Groups Projects
Commit 13ad8d0a authored by Amaury Johnen's avatar Amaury Johnen
Browse files

scaling tolerance by CTX::instance()->lc when establishingcorrespondence of...

scaling tolerance by CTX::instance()->lc when establishingcorrespondence of node between periodic surfaces
parent 55684408
Branches
Tags
No related merge requests found
......@@ -1591,18 +1591,16 @@ void GFace::setMeshMaster(GFace* master,const std::vector<double>& tfo)
for (;lvIter!=l_vertices.end();++lvIter) {
SPoint3 xyz((*lvIter)->x(),(*lvIter)->y(),(*lvIter)->z());
SVector3 distTfo = xyz - xyzTfo;
SVector3 distOri = xyz - xyzOri;
if (distTfo.norm() < CTX::instance()->geom.tolerance) {
SVector3 dist = xyz - xyzTfo;
if (dist.norm() < CTX::instance()->geom.tolerance * CTX::instance()->lc) {
l_vertex = *lvIter;
break;
}
}
if (l_vertex==NULL) {
Msg::Error("Was not able to find corresponding node for %d "
Msg::Error("Was not able to find corresponding node %d "
"for periodic connection of surface %d to %d "
"using the specified transformation",
m_vertex->tag(),master->tag(),tag());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment