Skip to content
Snippets Groups Projects
Commit 2f376d42 authored by Gaetan Bricteux's avatar Gaetan Bricteux
Browse files

fix nbElem

parent c6dd15fe
Branches
Tags
No related merge requests found
...@@ -663,8 +663,10 @@ static int getNumElementsMSH(GModel *m, bool saveAll, int saveSinglePartition) ...@@ -663,8 +663,10 @@ static int getNumElementsMSH(GModel *m, bool saveAll, int saveSinglePartition)
for(GModel::fiter it = m->firstFace(); it != m->lastFace(); ++it){ for(GModel::fiter it = m->firstFace(); it != m->lastFace(); ++it){
n += getNumElementsMSH(*it, saveAll, saveSinglePartition); n += getNumElementsMSH(*it, saveAll, saveSinglePartition);
if ( CTX::instance()->mesh.saveTri){ if ( CTX::instance()->mesh.saveTri){
for(unsigned int i = 0; i < (*it)->polygons.size(); i++) for(unsigned int i = 0; i < (*it)->polygons.size(); i++){
n += (*it)->polygons[i]->getNumChildren()-1; int nbC = (*it)->polygons[i]->getNumChildren()-1;
n += (saveAll ? nbC : nbC * (*it)->physicals.size());
}
} }
else{ else{
for(unsigned int i = 0; i < (*it)->polygons.size(); i++) for(unsigned int i = 0; i < (*it)->polygons.size(); i++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment