36 double tol = std::numeric_limits<double>::epsilon()*10;
40 if( std::fabs( gamma(T1) - gamma0 ) > tol )
42 std::cerr <<
"Error: mismatch in gamma" << std::endl
43 <<
" gamma = " << gamma(T1) << std::endl
44 <<
" gamma exact = " << gamma0 << std::endl;
49 if( std::fabs( gamma.
dT(T1) ) > tol )
51 std::cerr <<
"Error: mismatch in dgamma_dT" << std::endl
52 <<
" dgamma_dT = " << gamma.
dT(T1) << std::endl
53 <<
" dgamma_dT exact = " << 0.0 << std::endl;
58 std::vector<double> gamma1;
59 gamma1.push_back( 1.0e-5 );
63 if( std::fabs( gamma(T1) - gamma1[0] ) > tol )
65 std::cerr <<
"Error: mismatch in gamma" << std::endl
66 <<
" gamma = " << gamma(T1) << std::endl
67 <<
" gamma exact = " << gamma0 << std::endl;
72 if( std::fabs( gamma.
dT(T1) ) > tol )
74 std::cerr <<
"Error: mismatch in dgamma_dT" << std::endl
75 <<
" dgamma_dT = " << gamma.
dT(T1) << std::endl
76 <<
" dgamma_dT exact = " << 0.0 << std::endl;
virtual libMesh::Real dT(const libMesh::Real T) const
virtual void set_params(const std::vector< libMesh::Real > ¶ms)