Skip to content
Snippets Groups Projects
Commit d42fc6b2 authored by Bastien Gorissen's avatar Bastien Gorissen
Browse files

Implemented the switch_tags option for IDEAS meshes.

parent 950ef43d
No related branches found
No related tags found
No related merge requests found
......@@ -1659,8 +1659,13 @@ int GModel::readUNV(const std::string &name)
if(strlen(buffer) < 3) continue; // possible line ending after last fscanf
if(!strncmp(buffer, " -1", 6)) break;
int num, type, elementary, physical, color, numNodes;
if(!CTX::instance()->mesh.switchElementTags) {
if(sscanf(buffer, "%d %d %d %d %d %d", &num, &type, &elementary, &physical,
&color, &numNodes) != 6) break;
} else {
if(sscanf(buffer, "%d %d %d %d %d %d", &num, &type, &physical, &elementary,
&color, &numNodes) != 6) break;
}
if(elementary < 0) elementary = getMaxElementaryNumber(-1) + 1;
if(physical < 0) physical = 0;
switch(type){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment