dune-localfunctions
2.2.0
|
00001 #ifndef DUNE_RT0TRIANGLELOCALCOEFFICIENTS_HH 00002 #define DUNE_RT0TRIANGLELOCALCOEFFICIENTS_HH 00003 00004 #include <cstddef> 00005 #include <iostream> 00006 #include <vector> 00007 00008 #include <dune/localfunctions/common/localkey.hh> 00009 00010 namespace Dune 00011 { 00012 00019 class RT02DLocalCoefficients 00020 { 00021 public: 00023 RT02DLocalCoefficients () : li(3) 00024 { 00025 for (std::size_t i=0; i<3; i++) 00026 li[i] = LocalKey(i,1,0); 00027 } 00028 00030 std::size_t size () const 00031 { 00032 return 3; 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