nodesparsestructureadaptor.h

Go to the documentation of this file.
00001 #ifndef  __NodeSparseStructureAdaptor_h
00002 #define  __NodeSparseStructureAdaptor_h
00003 
00004 #include  "sparsestructureadaptor.h"
00005 
00006 
00007 namespace Gascoigne
00008 {
00009 
00014 
00018 
00019 class NodeSparseStructureAdaptor : public SparseStructureAdaptor
00020 {
00021 public:
00022 
00023 
00024 private:
00025 
00026 
00027 protected:
00028 
00029   int _ncomp;
00030 
00031 public:
00032 
00033 
00034   NodeSparseStructureAdaptor(int ncomp) : SparseStructureAdaptor(), _ncomp(ncomp)  {}
00035 
00036   std::string GetName() const {return "Node";}
00037 
00038   int n() const { return _ncomp*n_base();}
00039   int nentries() const { return _ncomp*_ncomp*nentries_base();}
00040 
00041   int index(int i, int c) const {return i*_ncomp+c;}
00042 
00043   void FillStencil(ColumnDiagStencil& S) const;
00044   IntVector GetIndicesDirichlet(int inode, const std::vector<int>& cv) const;
00045 };
00046 }
00047 
00048 #endif

Generated on Thu Sep 14 10:34:37 2006 for Gascoigne by  doxygen 1.4.7