/[escript]/trunk/ripley/src/Rectangle.h
ViewVC logotype

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

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

  ViewVC Help
Powered by ViewVC 1.1.26