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

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

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

revision 3755 by caltinay, Thu Jan 5 06:51:31 2012 UTC revision 3756 by caltinay, Fri Jan 6 02:35:19 2012 UTC
# Line 16  Line 16 
16    
17  #include <ripley/RipleyDomain.h>  #include <ripley/RipleyDomain.h>
18    
19    struct Paso_Connector;
20    
21  namespace ripley {  namespace ripley {
22    
23  /**  /**
# Line 160  public: Line 162  public:
162  protected:  protected:
163      virtual dim_t getNumNodes() const { return m_N0*m_N1; }      virtual dim_t getNumNodes() const { return m_N0*m_N1; }
164      virtual dim_t getNumElements() const { return m_NE0*m_NE1; }      virtual dim_t getNumElements() const { return m_NE0*m_NE1; }
     virtual dim_t getNumDOF() const;  
165      virtual dim_t getNumFaceElements() const;      virtual dim_t getNumFaceElements() const;
166        virtual dim_t getNumDOF() const;
167        virtual dim_t insertNeighbourNodes(IndexVector& index, index_t node) const;
168      virtual void assembleCoordinates(escript::Data& arg) const;      virtual void assembleCoordinates(escript::Data& arg) const;
169      virtual void assemblePDESingle(Paso_SystemMatrix* mat, escript::Data& rhs,      virtual void assemblePDESingle(Paso_SystemMatrix* mat, escript::Data& rhs,
170              const escript::Data& A, const escript::Data& B,              const escript::Data& A, const escript::Data& B,
# Line 184  protected: Line 187  protected:
187    
188  private:  private:
189      void populateSampleIds();      void populateSampleIds();
190      int insertNeighbours(IndexVector& index, index_t node) const;      void createPattern();
     void addToSystemMatrix(Paso_SystemMatrix* in, const IndexVector& nodes_Eq,  
             dim_t num_Eq, const IndexVector& nodes_Sol, dim_t num_Sol,  
             const std::vector<double>& array) const;  
191    
192      /// total number of elements in each dimension      /// total number of elements in each dimension
193      dim_t m_gNE0, m_gNE1;      dim_t m_gNE0, m_gNE1;
# Line 220  private: Line 220  private:
220      // vector with first node id on each rank      // vector with first node id on each rank
221      IndexVector m_nodeDistribution;      IndexVector m_nodeDistribution;
222    
223      // vector that maps each node to a DOF index for coupling      // vector that maps each node to a DOF index (used for the coupler)
224      mutable IndexVector m_dofMap;      IndexVector m_dofMap;
225    
226        // Paso connector used by the system matrix and to interpolate DOF to
227        // nodes
228        Paso_Connector* m_connector;
229    
230        // the Paso System Matrix pattern
231        Paso_SystemMatrixPattern* m_pattern;
232  };  };
233    
234  } // end of namespace ripley  } // end of namespace ripley

Legend:
Removed from v.3755  
changed lines
  Added in v.3756

  ViewVC Help
Powered by ViewVC 1.1.26