00001 #include <FE.h> 00002 00003 int StandardFE:: nbf() { 00004 return Ns.size(); 00005 } 00006 00007 void StandardFE:: compute_basis_functions() { 00008 // FIXME: give some valuable tips, can for instance 00009 // say that "standard Lagrange elements are implemented in LagrangeFE 00010 cout <<"StandardFE compute_basis_functions not implemented"<<endl; 00011 } 00012 00013 00014 00015 void StandardFE:: set(Polygon& p_) { 00016 Ns.clear(); 00017 dofs.clear(); 00018 p = &p_; 00019 } 00020 00021 00022 void StandardFE:: set(int order_) { 00023 Ns.clear(); 00024 dofs.clear(); 00025 order = order_; 00026 } 00027 00028 00029 ex StandardFE:: dof(int i) { 00030 //FIXME could be point or dirac on point 00031 return dofs[i-1]; 00032 } 00033 00034 00035 ex StandardFE::N(int i) { 00036 return Ns[i-1]; 00037 } 00038 00039 00040