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

Diff of /trunk/ripley/src/Brick.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 163  protected: Line 165  protected:
165      virtual dim_t getNumElements() const { return m_NE0*m_NE1*m_NE2; }      virtual dim_t getNumElements() const { return m_NE0*m_NE1*m_NE2; }
166      virtual dim_t getNumFaceElements() const;      virtual dim_t getNumFaceElements() const;
167      virtual dim_t getNumDOF() const;      virtual dim_t getNumDOF() const;
168        virtual dim_t insertNeighbourNodes(IndexVector& index, index_t node) const;
169      virtual void assembleCoordinates(escript::Data& arg) const;      virtual void assembleCoordinates(escript::Data& arg) const;
170      virtual void assemblePDESingle(Paso_SystemMatrix* mat, escript::Data& rhs,      virtual void assemblePDESingle(Paso_SystemMatrix* mat, escript::Data& rhs,
171              const escript::Data& A, const escript::Data& B,              const escript::Data& A, const escript::Data& B,
# Line 179  protected: Line 182  protected:
182    
183  private:  private:
184      void populateSampleIds();      void populateSampleIds();
185      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;  
186    
187      /// total number of elements in each dimension      /// total number of elements in each dimension
188      dim_t m_gNE0, m_gNE1, m_gNE2;      dim_t m_gNE0, m_gNE1, m_gNE2;
# Line 216  private: Line 216  private:
216      // vector with first node id on each rank      // vector with first node id on each rank
217      IndexVector m_nodeDistribution;      IndexVector m_nodeDistribution;
218    
219      // vector that maps each node to a DOF index for coupling      // vector that maps each node to a DOF index (used for the coupler)
220      mutable IndexVector m_dofMap;      IndexVector m_dofMap;
221    
222        // Paso connector used by the system matrix and to interpolate DOF to
223        // nodes
224        Paso_Connector* m_connector;
225    
226        // the Paso System Matrix pattern
227        Paso_SystemMatrixPattern* m_pattern;
228  };  };
229    
230  } // 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