simplesparsestructureadaptor.h

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

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