27 #include "antioch_config.h"
29 #ifdef ANTIOCH_HAVE_CPPUNIT
44 template<
typename Scalar>
66 const Scalar tol = std::numeric_limits<Scalar>::epsilon() * 100;
85 const Scalar tol = std::numeric_limits<Scalar>::epsilon() * 100;
99 std::vector<Scalar> values(2);
104 const Scalar tol = std::numeric_limits<Scalar>::epsilon() * 100;
113 Scalar Cf = 2.1e-11L;
114 Scalar Ea = 100000.L;
115 Scalar R = Antioch::Constants::R_universal<Scalar>();
119 std::vector<Scalar> values(3);
125 const Scalar tol = std::numeric_limits<Scalar>::epsilon() * 100;
138 return this->
value(T);
143 return this->
deriv(T);
193 #endif // ANTIOCH_HAVE_CPPUNIT
CPPUNIT_TEST(test_standard)
void test_rate(const Antioch::ArrheniusRate< Scalar > &reaction_rate, Scalar tol)
void test_reset_vector_params2()
CPPUNIT_TEST(test_standard)
CPPUNIT_TEST(test_standard)
void set_Cf(const CoeffType Cf)
void test_rate_and_deriv(const Antioch::ArrheniusRate< Scalar > &reaction_rate, Scalar tol)
Antioch::ArrheniusRate< Scalar > * _rate
void test_reset_scalar_params()
T get_SI_factor() const
Multiplicative coefficient getter.
virtual Scalar exact_deriv(Scalar T)
void test_deriv(const Antioch::ArrheniusRate< Scalar > &reaction_rate, Scalar tol)
CPPUNIT_TEST_SUITE_REGISTRATION(ArrheniusRateEigenFloatTest)
virtual Scalar exact_rate(Scalar T)
CPPUNIT_TEST_SUITE(ArrheniusRateFloatTest)
void test_reset_vector_params3()
CPPUNIT_TEST_SUITE(ArrheniusRateDoubleTest)
CPPUNIT_TEST_SUITE(ArrheniusRateLongDoubleTest)
void reset_params(Scalar Cf, Scalar Ea)
void set_Ea(const CoeffType Ea)
set Ea, rescale the value, unit is known
void set_rscale(const CoeffType rscale)
void reset_coefs(const VectorCoeffType &coefficients)
reset the coeffs