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

MSH3

parent f733de2f
No related branches found
No related tags found
No related merge requests found
......@@ -348,7 +348,20 @@ int GModel::readMSH(const std::string &name)
else
_storeVerticesInEntities(_vertexMapCache);
// FIXME: store physicals in entities
// store physicals in entities
for(int dim = 0; dim < 4; dim++){
for(std::map<int, std::vector<int> >::iterator it = entities[dim].begin();
it != entities[dim].end(); it++){
GEntity *ge = 0;
switch(dim){
case 0: ge = getVertexByTag(it->first); break;
case 1: ge = getEdgeByTag(it->first); break;
case 2: ge = getFaceByTag(it->first); break;
case 3: ge = getRegionByTag(it->first); break;
}
ge->physicals = it->second;
}
}
fclose(fp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment