/[escript]/branches/domexper/dudley/src/Mesh_saveVTK.c
ViewVC logotype

Diff of /branches/domexper/dudley/src/Mesh_saveVTK.c

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

revision 121 by jgs, Fri May 6 04:26:16 2005 UTC revision 123 by jgs, Fri Jul 8 04:08:13 2005 UTC
# Line 22  void Finley_Mesh_saveVTK(const char * fi Line 22  void Finley_Mesh_saveVTK(const char * fi
22    if (mesh_p==NULL) return;    if (mesh_p==NULL) return;
23    Finley_ElementFile* elements=NULL;    Finley_ElementFile* elements=NULL;
24    char elemTypeStr[32];    char elemTypeStr[32];
25    int i, j, k, numVTKNodesPerElement, isCellCentered, nodetype;    int i, j, k, numVTKNodesPerElement, isCellCentered=FALSE, nodetype=FINLEY_DEGREES_OF_FREEDOM;
26    double* values, rtmp;    double* values, rtmp;
27    int nDim = mesh_p->Nodes->numDim;    int nDim = mesh_p->Nodes->numDim;
28    
# Line 432  void Finley_Mesh_saveVTK(const char * fi Line 432  void Finley_Mesh_saveVTK(const char * fi
432       * if the rank == 2:   --> tensor data       * if the rank == 2:   --> tensor data
433       */       */
434      char dataNameStr[31], dataTypeStr[63];      char dataNameStr[31], dataTypeStr[63];
435      int nCompReqd;   /* the number of components required by vtk */      int nCompReqd=1;   /* the number of components required by vtk */
436      if (rank == 0) {      if (rank == 0) {
437        strcpy(dataNameStr, "escript_scalar_data");        strcpy(dataNameStr, "escript_scalar_data");
438        sprintf(dataTypeStr, "Scalars=\"%s\"", dataNameStr);        sprintf(dataTypeStr, "Scalars=\"%s\"", dataNameStr);
# Line 617  void Finley_Mesh_saveVTK(const char * fi Line 617  void Finley_Mesh_saveVTK(const char * fi
617    
618  /*  /*
619   * $Log$   * $Log$
620     * Revision 1.5  2005/07/08 04:07:55  jgs
621     * Merge of development branch back to main trunk on 2005-07-08
622     *
623   * Revision 1.4  2005/05/06 04:26:15  jgs   * Revision 1.4  2005/05/06 04:26:15  jgs
624   * Merge of development branch back to main trunk on 2005-05-06   * Merge of development branch back to main trunk on 2005-05-06
625   *   *
626     * Revision 1.1.2.7  2005/06/29 02:34:54  gross
627     * some changes towards 64 integers in finley
628     *
629   * Revision 1.1.2.6  2005/05/06 01:17:19  cochrane   * Revision 1.1.2.6  2005/05/06 01:17:19  cochrane
630   * Fixed incorrect reporting of number of components in PointData arrays for   * Fixed incorrect reporting of number of components in PointData arrays for
631   * vector data.   * vector data.

Legend:
Removed from v.121  
changed lines
  Added in v.123

  ViewVC Help
Powered by ViewVC 1.1.26