/[escript]/branches/ripleygmg_from_3668/ripley/src/Brick.h
ViewVC logotype

Diff of /branches/ripleygmg_from_3668/ripley/src/Brick.h

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

revision 3691 by caltinay, Wed Nov 23 23:07:37 2011 UTC revision 3698 by caltinay, Tue Nov 29 00:47:29 2011 UTC
# Line 103  public: Line 103  public:
103      RIPLEY_DLL_API      RIPLEY_DLL_API
104      virtual void Print_Mesh_Info(const bool full=false) const;      virtual void Print_Mesh_Info(const bool full=false) const;
105    
106        /**
107           \brief
108           returns the number of nodes per MPI rank in each dimension
109        */
110        RIPLEY_DLL_API
111        virtual IndexVector getNumNodesPerDim() const;
112    
113        /**
114           \brief
115           returns the number of elements per MPI rank in each dimension
116        */
117        RIPLEY_DLL_API
118        virtual IndexVector getNumElementsPerDim() const;
119    
120        /**
121           \brief
122           returns the number of face elements in the order
123           (left,right,bottom,top,[front,back]) on current MPI rank
124        */
125        RIPLEY_DLL_API
126        virtual IndexVector getNumFacesPerBoundary() const;
127    
128        /**
129           \brief
130           returns the node distribution vector
131        */
132        RIPLEY_DLL_API
133        virtual IndexVector getNodeDistribution() const { return m_nodeDistribution; }
134    
135        /**
136           \brief
137           returns the first coordinate value and the node spacing along given
138           dimension as a pair
139        */
140        RIPLEY_DLL_API
141        virtual std::pair<double,double> getFirstCoordAndSpacing(dim_t dim) const;
142    
143  protected:  protected:
144      virtual dim_t getNumNodes() const { return m_N0*m_N1*m_N2; }      virtual dim_t getNumNodes() const { return m_N0*m_N1*m_N2; }
145      virtual dim_t getNumElements() const { return m_NE0*m_NE1*m_NE2; }      virtual dim_t getNumElements() const { return m_NE0*m_NE1*m_NE2; }
# Line 135  private: Line 172  private:
172      IndexVector m_nodeId;      IndexVector m_nodeId;
173      IndexVector m_elementId;      IndexVector m_elementId;
174      IndexVector m_faceId;      IndexVector m_faceId;
175    
176        // vector with first node id on each rank
177        IndexVector m_nodeDistribution;
178  };  };
179    
180  } // end of namespace ripley  } // end of namespace ripley

Legend:
Removed from v.3691  
changed lines
  Added in v.3698

  ViewVC Help
Powered by ViewVC 1.1.26