#include <SyFi.h>
Go to the source code of this file.
Functions | |
int | main () |
int main | ( | ) |
Definition at line 7 of file tetrahedron_ex3.cpp.
References SyFi::EQUAL_OR_DIE(), demos::simple::f, SyFi::initSyFi(), SyFi::Tetrahedron::integrate(), demos::crouzeixraviart::p0, and demos::geom_test::tetrahedron.
00007 { 00008 00009 00010 initSyFi(3); 00011 00012 //example that check scaling 00013 00014 numeric h(1,100); //1.0/100 00015 numeric a(1,2); 00016 ex p0 = lst(a,a,a); 00017 ex p1 = lst(a+h,a,a); 00018 ex p2 = lst(a,a+h,a); 00019 ex p3 = lst(a,a,a+h); 00020 00021 Tetrahedron tetrahedron(p0,p1,p2,p3); 00022 00023 00024 ex f = 1; 00025 ex intf = tetrahedron.integrate(f); 00026 cout <<"intf "<<intf<<endl; 00027 EQUAL_OR_DIE(intf, "1/6000000"); 00028 00029 return 0; 00030 }