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

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

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

revision 3246 by jfenwick, Mon Oct 4 01:46:30 2010 UTC revision 3247 by caltinay, Wed Oct 6 05:53:06 2010 UTC
# Line 41  void Finley_Mesh_saveDX(const char * fil Line 41  void Finley_Mesh_saveDX(const char * fil
41    double rtmp;    double rtmp;
42    bool_t *isCellCentered=NULL;    bool_t *isCellCentered=NULL;
43    Finley_ElementFile* elements=NULL;    Finley_ElementFile* elements=NULL;
44    ElementTypeId TypeId;    Finley_ElementTypeId TypeId;
45    /* open the file  and check handel */    /* open the file  and check handel */
46    
47    /* if there is no mesh we just return */    /* if there is no mesh we just return */
# Line 173  void Finley_Mesh_saveDX(const char * fil Line 173  void Finley_Mesh_saveDX(const char * fil
173    TypeId = elements->referenceElementSet->referenceElement->Type->TypeId;    TypeId = elements->referenceElementSet->referenceElement->Type->TypeId;
174    numDXNodesPerElement=0;    numDXNodesPerElement=0;
175    numCells = elements->numElements;    numCells = elements->numElements;
176    if (TypeId==Line2 || TypeId==Line3 || TypeId==Line4 || TypeId==Line3Macro ) {    if (TypeId==Finley_Line2 || TypeId==Finley_Line3 || TypeId==Finley_Line4 || TypeId==Finley_Line3Macro ) {
177       numDXNodesPerElement=2;       numDXNodesPerElement=2;
178       resortIndex=resort[0];       resortIndex=resort[0];
179       strcpy(elemTypeStr, "lines");       strcpy(elemTypeStr, "lines");
180     } else if (TypeId==Tri3 || TypeId==Tri6 || TypeId==Tri9 || TypeId==Tri10 ) {     } else if (TypeId==Finley_Tri3 || TypeId==Finley_Tri6 || TypeId==Finley_Tri9 || TypeId==Finley_Tri10 ) {
181       numDXNodesPerElement = 3;       numDXNodesPerElement = 3;
182       resortIndex=resort[1];       resortIndex=resort[1];
183       strcpy(elemTypeStr, "triangles");       strcpy(elemTypeStr, "triangles");
184     } else if (TypeId==Rec4 || TypeId==Rec8 || TypeId==Rec9 || TypeId==Rec12 || TypeId==Rec16 || TypeId==Rec9Macro ) {     } else if (TypeId==Finley_Rec4 || TypeId==Finley_Rec8 || TypeId==Finley_Rec9 || TypeId==Finley_Rec12 || TypeId==Finley_Rec16 || TypeId==Finley_Rec9Macro ) {
185       numDXNodesPerElement = 4;       numDXNodesPerElement = 4;
186       resortIndex=resort[3];       resortIndex=resort[3];
187       strcpy(elemTypeStr, "quads");       strcpy(elemTypeStr, "quads");
188     } else if (TypeId==Tet4 || TypeId==Tet10 || TypeId==Tet16 || TypeId==Tet10Macro ) {     } else if (TypeId==Finley_Tet4 || TypeId==Finley_Tet10 || TypeId==Finley_Tet16 || TypeId==Finley_Tet10Macro ) {
189       numDXNodesPerElement = 4;       numDXNodesPerElement = 4;
190       resortIndex=resort[2];       resortIndex=resort[2];
191       strcpy(elemTypeStr, "tetrahedra");       strcpy(elemTypeStr, "tetrahedra");
192     } else if (TypeId==Hex8 || TypeId==Hex20 || TypeId==Hex32 ) {     } else if (TypeId==Finley_Hex8 || TypeId==Finley_Hex20 || TypeId==Finley_Hex32 ) {
193       numDXNodesPerElement = 8;       numDXNodesPerElement = 8;
194       resortIndex=resort[4];       resortIndex=resort[4];
195       strcpy(elemTypeStr, "cubes");       strcpy(elemTypeStr, "cubes");

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

  ViewVC Help
Powered by ViewVC 1.1.26