Skip to content
Snippets Groups Projects
Commit 8e8e160e authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

topological improvement is not thread-safe

parent a263fbe6
No related branches found
No related tags found
No related merge requests found
...@@ -1327,10 +1327,13 @@ void recombineIntoQuads(GFace *gf, bool blossom, int topologicalOptiPasses, ...@@ -1327,10 +1327,13 @@ void recombineIntoQuads(GFace *gf, bool blossom, int topologicalOptiPasses,
if(debug) gf->model()->writeMSH("recombine_2smoothed.msh"); if(debug) gf->model()->writeMSH("recombine_2smoothed.msh");
} }
// FIXME: not thread-safe
#pragma omp critical
{
if(topologicalOptiPasses > 0) { if(topologicalOptiPasses > 0) {
if(!_isModelOkForTopologicalOpti(gf->model())) { if(!_isModelOkForTopologicalOpti(gf->model())) {
Msg::Info( Msg::Info
"Skipping topological optimization - mesh topology is not complete"); ("Skipping topological optimization - mesh topology is not complete");
} }
else { else {
int iter = 0, nbTwoQuadNodes = 1, nbDiamonds = 1; int iter = 0, nbTwoQuadNodes = 1, nbDiamonds = 1;
...@@ -1347,6 +1350,7 @@ void recombineIntoQuads(GFace *gf, bool blossom, int topologicalOptiPasses, ...@@ -1347,6 +1350,7 @@ void recombineIntoQuads(GFace *gf, bool blossom, int topologicalOptiPasses,
if(debug) gf->model()->writeMSH("recombine_3topo.msh"); if(debug) gf->model()->writeMSH("recombine_3topo.msh");
} }
} }
}
// re-split bad quads into triangles // re-split bad quads into triangles
if(minqual > 0) if(minqual > 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment