dune-localfunctions  2.2.0
q22dlocalcoefficients.hh
Go to the documentation of this file.
00001 #ifndef DUNE_Q22DLOCALCOEFFICIENTS_HH
00002 #define DUNE_Q22DLOCALCOEFFICIENTS_HH
00003 
00004 #warning This file is deprecated and will be removed after Dune 2.2.  \
00005          Please use q2localcoefficients.hh instead!
00006 
00007 #include <cstddef>
00008 #include <iostream>
00009 #include <vector>
00010 
00011 #include <dune/localfunctions/common/localkey.hh>
00012 
00013 namespace Dune 
00014 {
00015 
00022   class Q22DLocalCoefficients 
00023   {
00024   public:
00026         Q22DLocalCoefficients () : li(9)
00027         {
00028           for (std::size_t i=0; i<9; i++)
00029                 li[i] = LocalKey(i%4,2-i/4,0);
00030         }
00031 
00033         std::size_t size () const
00034         {
00035           return 9;
00036         }
00037 
00039         const LocalKey& localKey (std::size_t i) const
00040         {
00041           return li[i];
00042         } 
00043 
00044   private:
00045         std::vector<LocalKey> li;
00046   };
00047 
00048 }
00049 
00050 #endif