#include <SyFi.h>
Go to the source code of this file.
Functions | |
void | print_out (FE &fe) |
int | main () |
int main | ( | ) |
Definition at line 12 of file nedelec_ex2.cpp.
References SyFi::Nedelec2Hdiv::compute_basis_functions(), demos::crouzeixraviart::fe, SyFi::initSyFi(), SyFi::nsd, print_out(), SyFi::StandardFE::set_order(), and SyFi::StandardFE::set_polygon().
00012 { 00013 00014 initSyFi(3); 00015 00016 nsd = 3; 00017 ReferenceTetrahedron tetrahedon; 00018 Nedelec2Hdiv fe; 00019 fe.set_polygon(tetrahedon); 00020 fe.set_order(1); 00021 fe.compute_basis_functions(); 00022 cout <<"-------- 1 order ---------- 3D "<<endl; 00023 print_out(fe); 00024 00025 fe.set_order(2); 00026 fe.compute_basis_functions(); 00027 cout <<"-------- 2 order ---------- 3D "<<endl; 00028 print_out(fe); 00029 00030 fe.set_order(3); 00031 fe.compute_basis_functions(); 00032 cout <<"-------- 3 order ---------- 3D "<<endl; 00033 print_out(fe); 00034 00035 fe.set_order(4); 00036 fe.compute_basis_functions(); 00037 cout <<"-------- 4 order ---------- 3D "<<endl; 00038 print_out(fe); 00039 00040 return 0; 00041 00042 }
void print_out | ( | FE & | fe | ) |
Definition at line 6 of file nedelec_ex2.cpp.
References SyFi::FE::N(), and SyFi::FE::nbf().
00006 { 00007 for (unsigned int i=0; i< fe.nbf(); i++) { 00008 cout <<"fe.N("<<i<<") = "<<fe.N(i)<<endl; 00009 } 00010 }