/[escript]/trunk/finley/src/finleyC/Mesh_saveVTK.c
ViewVC logotype

Diff of /trunk/finley/src/finleyC/Mesh_saveVTK.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 271 by gross, Wed Nov 30 03:27:30 2005 UTC revision 272 by gross, Wed Nov 30 03:30:30 2005 UTC
# Line 324  void Finley_Mesh_saveVTK(const char * fi Line 324  void Finley_Mesh_saveVTK(const char * fi
324    if (nodetype==FINLEY_REDUCED_DEGREES_OF_FREEDOM) {    if (nodetype==FINLEY_REDUCED_DEGREES_OF_FREEDOM) {
325       for (i = 0; i < mesh_p->Nodes->numNodes; i++) {       for (i = 0; i < mesh_p->Nodes->numNodes; i++) {
326         if (mesh_p->Nodes->toReduced[i]>=0) {         if (mesh_p->Nodes->toReduced[i]>=0) {
327            for (j = 0; j < nDim; j++) fprintf(fileHandle_p, " %e",mesh_p->Nodes->Coordinates[INDEX2(j, i, nDim)]);            for (j = 0; j < nDim; j++) fprintf(fileHandle_p, " %e",(float) (mesh_p->Nodes->Coordinates[INDEX2(j, i, nDim)]));
328            for (k=0; k<3-nDim; k++) fprintf(fileHandle_p, " %e",0.);            for (k=0; k<3-nDim; k++) fprintf(fileHandle_p, " %e",(float) 0.);
329            fprintf(fileHandle_p, "\n");            fprintf(fileHandle_p, "\n");
330         }         }
331       }       }
332    } else {    } else {
333       for (i = 0; i < mesh_p->Nodes->numNodes; i++) {       for (i = 0; i < mesh_p->Nodes->numNodes; i++) {
334         for (j = 0; j < nDim; j++) fprintf(fileHandle_p, " %e",mesh_p->Nodes->Coordinates[INDEX2(j, i, nDim)]);         for (j = 0; j < nDim; j++) fprintf(fileHandle_p, " %e",(float) (mesh_p->Nodes->Coordinates[INDEX2(j, i, nDim)]));
335         for (k=0; k<3-nDim; k++) fprintf(fileHandle_p, " %e",0.);         for (k=0; k<3-nDim; k++) fprintf(fileHandle_p, " %e",(float) 0.);
336         fprintf(fileHandle_p, "\n");         fprintf(fileHandle_p, "\n");
337       }       }
338    }    }

Legend:
Removed from v.271  
changed lines
  Added in v.272

  ViewVC Help
Powered by ViewVC 1.1.26