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

fix MElement::writeMSH 2.0

parent cef8f745
No related branches found
No related tags found
No related merge requests found
...@@ -411,6 +411,8 @@ void MElement::writeMSH(FILE *fp, double version, bool binary, int num, ...@@ -411,6 +411,8 @@ void MElement::writeMSH(FILE *fp, double version, bool binary, int num,
fprintf(fp, "%d %d", num ? num : _num, type); fprintf(fp, "%d %d", num ? num : _num, type);
if(version < 2.0) if(version < 2.0)
fprintf(fp, " %d %d %d", abs(physical), elementary, n); fprintf(fp, " %d %d %d", abs(physical), elementary, n);
else if (version < 2.2)
fprintf(fp, " %d %d %d", abs(physical), elementary, _partition);
else if(!_partition) else if(!_partition)
fprintf(fp, " %d %d %d", 2 + par, abs(physical), elementary); fprintf(fp, " %d %d %d", 2 + par, abs(physical), elementary);
else if(!ghosts) else if(!ghosts)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment