/[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 2195 by caltinay, Tue Dec 23 04:13:15 2008 UTC revision 2196 by caltinay, Wed Jan 7 06:14:59 2009 UTC
# Line 34  typedef enum { Line 34  typedef enum {
34      ZONETYPE_TRIANGLE      ZONETYPE_TRIANGLE
35  } ZoneType;  } ZoneType;
36    
37    //
38    // Holds information that is used to convert from escript element types to
39    // Silo.
40    //
41  struct FinleyElementInfo  struct FinleyElementInfo
42  {  {
43      ZoneType elementType, reducedElementType;      ZoneType elementType, reducedElementType;
# Line 43  struct FinleyElementInfo Line 47  struct FinleyElementInfo
47  };  };
48    
49  //  //
50  //  // A class that stores and manipulates one type of escript mesh elements
51    // (elements, faces, contacts or points). The corresponding mesh nodes are
52    // not part of this class but stored in a Mesh object which has to be provided
53    // when constructing an ElementData object.
54  //  //
55  class ElementData  class ElementData
56  {  {
57      friend class DataVar;      friend class DataVar;
58      friend class MeshWithElements;      friend class MeshWithElements;
59  public:  public:
60    
61        /// Constructor with name and accompanying Mesh object.
62      ElementData(const std::string& elementName, const Mesh* mainMesh);      ElementData(const std::string& elementName, const Mesh* mainMesh);
63    
64      /// Copy constructor      /// Copy constructor
65      ElementData(const ElementData& e);      ElementData(const ElementData& e);
66        
67      /// Virtual destructor      /// Virtual destructor
68      virtual ~ElementData();      virtual ~ElementData();
69        
70      bool readFromNc(NcFile* ncfile);      bool readFromNc(NcFile* ncfile);
71      void handleGhostZones(int ownIndex);      void handleGhostZones(int ownIndex);
72      void removeGhostZones();      void removeGhostZones();

Legend:
Removed from v.2195  
changed lines
  Added in v.2196

  ViewVC Help
Powered by ViewVC 1.1.26