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

fix progress of 2d meshing

parent e8af7ffa
No related branches found
No related tags found
No related merge requests found
......@@ -477,9 +477,7 @@ static void Mesh2D(GModel *m)
int nIter = 0, nTot = m->getNumFaces();
while(1){
int nPending = 0;
std::vector<GFace*> _temp; _temp.insert(_temp.begin(),f.begin(),f.end());
std::vector<GFace*> _temp; _temp.insert(_temp.begin(), f.begin(), f.end());
#pragma omp parallel for schedule (dynamic)
for(size_t K = 0 ; K < _temp.size() ; K++){
if (_temp[K]->meshStatistics.status == GFace::PENDING){
......@@ -490,10 +488,9 @@ static void Mesh2D(GModel *m)
nPending++;
}
}
if(!nIter) Msg::ProgressMeter(nPending, nTot, false, "Meshing 2D...");
}
#pragma omp master
if(!nIter) Msg::ProgressMeter(nPending, nTot, false, "Meshing 2D...");
for(std::set<GFace*>::iterator it = cf.begin(); it != cf.end(); ++it){
if ((*it)->meshStatistics.status == GFace::PENDING){
meshGFace mesher (true, CTX::instance()->mesh.multiplePasses);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment