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

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

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

revision 3246 by jfenwick, Wed Sep 29 05:19:37 2010 UTC revision 3247 by caltinay, Wed Oct 6 05:53:06 2010 UTC
# Line 42  void Dudley_Mesh_saveDX(const char *file Line 42  void Dudley_Mesh_saveDX(const char *file
42      double rtmp;      double rtmp;
43      bool_t *isCellCentered = NULL;      bool_t *isCellCentered = NULL;
44      Dudley_ElementFile *elements = NULL;      Dudley_ElementFile *elements = NULL;
45      ElementTypeId TypeId;      Dudley_ElementTypeId TypeId;
46      /* open the file  and check handel */      /* open the file  and check handel */
47    
48      /* if there is no mesh we just return */      /* if there is no mesh we just return */
# Line 166  void Dudley_Mesh_saveDX(const char *file Line 166  void Dudley_Mesh_saveDX(const char *file
166      TypeId = elements->etype;      TypeId = elements->etype;
167      numDXNodesPerElement = 0;      numDXNodesPerElement = 0;
168      numCells = elements->numElements;      numCells = elements->numElements;
169      if (TypeId == Line2)      if (TypeId == Dudley_Line2)
170      {      {
171      numDXNodesPerElement = 2;      numDXNodesPerElement = 2;
172      resortIndex = resort[0];      resortIndex = resort[0];
173      strcpy(elemTypeStr, "lines");      strcpy(elemTypeStr, "lines");
174      }      }
175      else if (TypeId == Tri3)      else if (TypeId == Dudley_Tri3)
176      {      {
177      numDXNodesPerElement = 3;      numDXNodesPerElement = 3;
178      resortIndex = resort[1];      resortIndex = resort[1];
# Line 182  void Dudley_Mesh_saveDX(const char *file Line 182  void Dudley_Mesh_saveDX(const char *file
182       resortIndex=resort[3];       resortIndex=resort[3];
183       strcpy(elemTypeStr, "quads");*/       strcpy(elemTypeStr, "quads");*/
184      }      }
185      else if (TypeId == Tet4)      else if (TypeId == Dudley_Tet4)
186      {      {
187      numDXNodesPerElement = 4;      numDXNodesPerElement = 4;
188      resortIndex = resort[2];      resortIndex = resort[2];

Legend:
Removed from v.3246  
changed lines
  Added in v.3247

  ViewVC Help
Powered by ViewVC 1.1.26