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

diff fix

parent 6072595c
No related branches found
No related tags found
No related merge requests found
...@@ -628,7 +628,7 @@ void MElement::writeDIFF(FILE *fp, int num, bool binary, int physical_property) ...@@ -628,7 +628,7 @@ void MElement::writeDIFF(FILE *fp, int num, bool binary, int physical_property)
int verts[60]; int verts[60];
verts[0] = n; verts[0] = n;
for(int i = 0; i < n; i++) for(int i = 0; i < n; i++)
verts[i + 1] = getVertexVTK(i)->getIndex() - 1; verts[i + 1] = getVertexVTK(i)->getIndex();
fwrite(verts, sizeof(int), n + 1, fp); fwrite(verts, sizeof(int), n + 1, fp);
} }
else{ else{
...@@ -638,7 +638,7 @@ void MElement::writeDIFF(FILE *fp, int num, bool binary, int physical_property) ...@@ -638,7 +638,7 @@ void MElement::writeDIFF(FILE *fp, int num, bool binary, int physical_property)
fprintf(fp, "%d %s", num, "ElmT4n3D "); fprintf(fp, "%d %s", num, "ElmT4n3D ");
fprintf(fp, " %d ", physical_property); fprintf(fp, " %d ", physical_property);
for(int i = 0; i < n; i++) for(int i = 0; i < n; i++)
fprintf(fp, " %d", getVertexVTK(i)->getIndex() - 1); fprintf(fp, " %d", getVertexVTK(i)->getIndex());
fprintf(fp, "\n"); fprintf(fp, "\n");
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment