~vcs-imports/escript-finley/trunk

« back to all changes in this revision

Viewing changes to finley/src/Mesh_saveDX.c

  • Committer: jfenwick
  • Date: 2010-10-11 01:48:14 UTC
  • Revision ID: svn-v4:77569008-7704-0410-b7a0-a92fef0b09fd:trunk:3259
Merging dudley and scons updates from branches

Show diffs side-by-side

added added

removed removed

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