From 8e3aac0002c8b17d4e416b0d89a536e5aadabd3d Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Thu, 6 Nov 2008 15:11:36 +0000 Subject: [PATCH] diff fix --- Geo/MElement.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Geo/MElement.cpp b/Geo/MElement.cpp index f3b4df472a..d05d169733 100644 --- a/Geo/MElement.cpp +++ b/Geo/MElement.cpp @@ -628,7 +628,7 @@ void MElement::writeDIFF(FILE *fp, int num, bool binary, int physical_property) int verts[60]; verts[0] = n; 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); } else{ @@ -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 ", physical_property); for(int i = 0; i < n; i++) - fprintf(fp, " %d", getVertexVTK(i)->getIndex() - 1); + fprintf(fp, " %d", getVertexVTK(i)->getIndex()); fprintf(fp, "\n"); } } -- GitLab