SyFi
0.3
|
#include <SyFi.h>
Go to the source code of this file.
Functions | |
int | main () |
int main | ( | ) |
Definition at line 7 of file raviartthomas_ex2.cpp.
References SyFi::RaviartThomas::compute_basis_functions(), SyFi::DiscontinuousLagrange::compute_basis_functions(), SyFi::initSyFi(), SyFi::StandardFE::N(), SyFi::StandardFE::nbf(), SyFi::StandardFE::set_order(), and SyFi::StandardFE::set_polygon().
{ initSyFi(2); int order = 3; ReferenceTriangle triangle("t"); RaviartThomas vfe; vfe.set_polygon(triangle); vfe.set_order(order); vfe.compute_basis_functions(); DiscontinuousLagrange pfe; pfe.set_polygon(triangle); pfe.set_order(order); pfe.compute_basis_functions(); for (unsigned int i=0; i< vfe.nbf(); i++) cout <<"vfe.N("<<i<<")="<<vfe.N(i)<<endl; for (unsigned int i=0; i< pfe.nbf(); i++) cout <<"pfe.N("<<i<<")="<<pfe.N(i)<<endl; return 0; }