- Home
- About DUNE
- Download
- Documentation
- Community
- Development
00001 #ifndef DUNE_Q1_LOCALCOEFFICIENTS_HH 00002 #define DUNE_Q1_LOCALCOEFFICIENTS_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 template <int dim> 00020 class Q1LocalCoefficients 00021 { 00022 public: 00024 Q1LocalCoefficients () : li(1<<dim) 00025 { 00026 for (std::size_t i=0; i<(1<<dim); i++) 00027 li[i] = LocalKey(i,dim,0); 00028 } 00029 00031 std::size_t size () const 00032 { 00033 return 1<<dim; 00034 } 00035 00037 const LocalKey& localKey (std::size_t i) const 00038 { 00039 return li[i]; 00040 } 00041 00042 private: 00043 std::vector<LocalKey> li; 00044 }; 00045 00046 } 00047 00048 #endif
Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].