/[escript]/trunk/tools/libescriptreader/src/escriptreader/ElementData.h
ViewVC logotype

Diff of /trunk/tools/libescriptreader/src/escriptreader/ElementData.h

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

revision 2186 by caltinay, Fri Dec 19 03:52:50 2008 UTC revision 2187 by caltinay, Tue Dec 23 04:13:15 2008 UTC
# Line 20  Line 20 
20  #include <finley/ReferenceElements.h> // for ElementTypeId  #include <finley/ReferenceElements.h> // for ElementTypeId
21  #include <escriptreader/Mesh.h>  #include <escriptreader/Mesh.h>
22    
23    class DBfile;
24    class NcFile;
25    
26    namespace EscriptReader {
27        
28    typedef enum {
29        ZONETYPE_BEAM=1,
30        ZONETYPE_HEX,
31        ZONETYPE_POLYGON,
32        ZONETYPE_QUAD,
33        ZONETYPE_TET,
34        ZONETYPE_TRIANGLE
35    } ZoneType;
36    
37  struct FinleyElementInfo  struct FinleyElementInfo
38  {  {
39      int elementType, reducedElementType;      ZoneType elementType, reducedElementType;
40      int elementFactor;      int elementFactor;
41      int elementSize, reducedElementSize;      int elementSize, reducedElementSize;
42      const size_t* multiCellIndices;      const size_t* multiCellIndices;
43  };  };
44    
 class DBfile;  
 class NcFile;  
   
45  //  //
46  //  //
47  //  //
# Line 60  public: Line 71  public:
71      int getReducedNodesPerElement() const { return reducedNodesPerElement; }      int getReducedNodesPerElement() const { return reducedNodesPerElement; }
72      int getGhostCount() const { return numGhostElements; }      int getGhostCount() const { return numGhostElements; }
73      int getReducedGhostCount() const { return numReducedGhostElements; }      int getReducedGhostCount() const { return numReducedGhostElements; }
74      int getType() const { return type; }      ZoneType getType() const { return type; }
75      int getReducedType() const { return reducedType; }      ZoneType getReducedType() const { return reducedType; }
76      const IntVec& getNodeList() const { return nodes; }      const IntVec& getNodeList() const { return nodes; }
77      const IntVec& getReducedNodeList() const { return reducedNodes; }      const IntVec& getReducedNodeList() const { return reducedNodes; }
78      const IntVec& getIDs() const { return ID; }      const IntVec& getIDs() const { return ID; }
# Line 88  private: Line 99  private:
99      bool fullMeshIsOriginalMesh;      bool fullMeshIsOriginalMesh;
100    
101      int numDims;      int numDims;
102      int type, reducedType;      ZoneType type, reducedType;
103      int nodesPerElement, reducedNodesPerElement;      int nodesPerElement, reducedNodesPerElement;
104      IntVec nodes, reducedNodes;      IntVec nodes, reducedNodes;
105      IntVec color, ID, tag;      IntVec color, ID, tag;
# Line 107  inline void ElementData::buildIndexMap() Line 118  inline void ElementData::buildIndexMap()
118          ID2idx[*idIt] = idx;          ID2idx[*idIt] = idx;
119  }  }
120    
121    } // namespace EscriptReader
122    
123  #endif // __ELEMENTDATA_H__  #endif // __ELEMENTDATA_H__
124    

Legend:
Removed from v.2186  
changed lines
  Added in v.2187

  ViewVC Help
Powered by ViewVC 1.1.26