rannacherturek2dlocalcoefficients.hh

Go to the documentation of this file.
00001 #ifndef DUNE_RANNACHER_TUREK2DLOCALCOEFFICIENTS_HH
00002 #define DUNE_RANNACHER_TUREK2DLOCALCOEFFICIENTS_HH
00003 
00004 #include <cstddef>
00005 #include <vector>
00006 
00007 #include <dune/localfunctions/common/localkey.hh>
00008 
00009 namespace Dune {
00010 
00014   class RannacherTurek2DLocalCoefficients 
00015   {
00016   public:
00017     RannacherTurek2DLocalCoefficients () : li(4)  {
00018       for (std::size_t i=0; i<4; i++) li[i] = LocalKey(i,1,0);
00019     }
00020   
00022     std::size_t size () const {
00023       return 4;
00024     }
00025 
00027     const LocalKey& localKey (std::size_t i) const  {
00028       return li[i];
00029     } 
00030   
00031   private:
00032     std::vector<LocalKey> li;
00033   };
00034 
00035 } //namespace Dune
00036 
00037 #endif //DUNE_RANNACHER_TUREK2DLOCALCOEFFICIENTS_HH
Generated on Sat Apr 24 11:15:35 2010 for dune-localfunctions by  doxygen 1.6.3