an efficient C++ finite element environment
|
|
Go to the documentation of this file.
25 int main (
int argc,
char**argv) {
27 Float tol = (argc > 1) ? atof(argv[1]) : 1e+38;
30 space Wh (gamma_h,
"P1");
34 Float meas_gamma_h =
m(one,one);
35 size_t d = gamma_h.dimension();
37 Float meas_gamma = (
d == 3) ? 4*pi : 2*pi;
38 Float err = fabs(meas_gamma - meas_gamma_h);
39 dout <<
"meas(gamma_h) = " << meas_gamma_h << endl
40 <<
"meas(gamma) = " << meas_gamma << endl
41 <<
"err = " << err << endl;
42 return (err < tol) ? 0 : 1;
int main(int argc, char **argv)
see the field page for the full documentation
std::enable_if< details::is_field_expr_v2_nonlinear_arg< Expr >::value &&! is_undeterminated< Result >::value, Result >::type integrate(const geo_basic< T, M > &omega, const Expr &expr, const integrate_option &iopt, Result dummy=Result())
see the integrate page for the full documentation
see the space page for the full documentation
rheolef - reference manual
The level set function for the sphere geometry.
idiststream din
see the diststream page for the full documentation
see the environment page for the full documentation
This file is part of Rheolef.
see the test page for the full documentation
see the Float page for the full documentation
see the test page for the full documentation
double Float
see the Float page for the full documentation
odiststream dout(cout)
see the diststream page for the full documentation
see the geo page for the full documentation