/[escript]/trunk/weipa/src/FinleyElements.h
ViewVC logotype

Diff of /trunk/weipa/src/FinleyElements.h

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

revision 3258 by caltinay, Fri Sep 3 00:31:55 2010 UTC revision 3259 by jfenwick, Mon Oct 11 01:48:14 2010 UTC
# Line 18  Line 18 
18  #include <weipa/FinleyNodes.h>  #include <weipa/FinleyNodes.h>
19    
20  extern "C" {  extern "C" {
21  #include <finley/ReferenceElements.h> // for ElementTypeId  #include <dudley/ElementType.h> // for Dudley_ElementTypeId
22    #include <finley/ReferenceElements.h> // for Finley_ElementTypeId
23  }  }
24    
25  class DBfile;  class DBfile;
26  class NcFile;  class NcFile;
27    
28    struct Dudley_ElementFile;
29  struct Finley_ElementFile;  struct Finley_ElementFile;
30    
31  namespace weipa {  namespace weipa {
# Line 65  public: Line 67  public:
67      /// \brief Destructor      /// \brief Destructor
68      virtual ~FinleyElements() {}      virtual ~FinleyElements() {}
69    
70        /// \brief Initialises with data from a Dudley_ElementFile instance.
71        bool initFromDudley(const Dudley_ElementFile* dudleyFile);
72    
73      /// \brief Initialises with data from a Finley_ElementFile instance.      /// \brief Initialises with data from a Finley_ElementFile instance.
74      bool initFromFinley(const Finley_ElementFile* finleyFile);      bool initFromFinley(const Finley_ElementFile* finleyFile);
75    
# Line 108  public: Line 113  public:
113      virtual ZoneType getType() const { return type; }      virtual ZoneType getType() const { return type; }
114    
115      /// \brief Returns the original type id of the Finley reference elements.      /// \brief Returns the original type id of the Finley reference elements.
116      ElementTypeId getFinleyTypeId() const { return finleyTypeId; }      Finley_ElementTypeId getFinleyTypeId() const { return finleyTypeId; }
117    
118      /// \brief Returns a vector of the node IDs used by the elements.      /// \brief Returns a vector of the node IDs used by the elements.
119      virtual const IntVec& getNodeList() const { return nodes; }      virtual const IntVec& getNodeList() const { return nodes; }
# Line 137  public: Line 142  public:
142    
143  private:  private:
144      FinleyElements() {}      FinleyElements() {}
145      FinleyElementInfo getFinleyTypeInfo(ElementTypeId typeId);      FinleyElementInfo getDudleyTypeInfo(Dudley_ElementTypeId typeId);
146        FinleyElementInfo getFinleyTypeInfo(Finley_ElementTypeId typeId);
147      void buildMeshes();      void buildMeshes();
148      void buildReducedElements(const FinleyElementInfo& f);      void buildReducedElements(const FinleyElementInfo& f);
149      IntVec prepareGhostIndices(int ownIndex);      IntVec prepareGhostIndices(int ownIndex);
# Line 152  private: Line 158  private:
158      int numGhostElements;      int numGhostElements;
159      int nodesPerElement;      int nodesPerElement;
160      ZoneType type;      ZoneType type;
161      ElementTypeId finleyTypeId;      Finley_ElementTypeId finleyTypeId;
162      IntVec nodes;      IntVec nodes;
163      IntVec color, ID, tag;      IntVec color, ID, tag;
164      IntVec owner;      IntVec owner;

Legend:
Removed from v.3258  
changed lines
  Added in v.3259

  ViewVC Help
Powered by ViewVC 1.1.26