dune-localfunctions  2.2.0
pyramidp1localcoefficients.hh
Go to the documentation of this file.
00001 // -*- tab-width: 4; indent-tabs-mode: nil -*-
00002 #ifndef DUNE_PYRAMID_P1_LOCALCOEFFICIENTS_HH
00003 #define DUNE_PYRAMID_P1_LOCALCOEFFICIENTS_HH
00004 
00005 #include <cstddef>
00006 #include <iostream>
00007 #include <vector>
00008 
00009 #include <dune/localfunctions/common/localkey.hh>
00010 
00011 namespace Dune 
00012 {
00013 
00019   class PyramidP1LocalCoefficients 
00020   {
00021   public:
00023         PyramidP1LocalCoefficients () : li(5)
00024         {
00025           for (std::size_t i=0; i<5; i++)
00026                 li[i] = LocalKey(i,3,0);
00027         }
00028 
00030         std::size_t size () const
00031         {
00032           return 5;
00033         }
00034 
00036         const LocalKey& localKey (std::size_t i) const
00037         {
00038           return li[i];
00039         } 
00040 
00041   private:
00042         std::vector<LocalKey> li;
00043   };
00044 
00045 }
00046 
00047 #endif