Commit e8d43555 by Christophe Geuzaine

fix reading of discrete volumes with faces with negative orientation

parent 99d30d59
Pipeline #558 passed with stage
in 74 minutes 37 seconds
......@@ -99,7 +99,7 @@ static void readMSHEntities(FILE *fp, GModel *gm)
for (int j = 0; j < n; j++){
int tagf;
if(fscanf(fp, "%d", &tagf) != 1) return;
faces.push_back(tagf);
faces.push_back(std::abs(tagf));
int sign = tagf > 0 ? 1 : -1;
signs.push_back(sign);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment