7 #define BOOST_TEST_DYN_LINK
8 #define BOOST_TEST_MODULE "Test module for cf3::AdvectionDiffusion"
10 #include <boost/test/unit_test.hpp>
15 #include "AdvectionDiffusion/Physics.hpp"
16 #include "AdvectionDiffusion/State1D.hpp"
23 BOOST_AUTO_TEST_SUITE( AdvectionDiffusion_Suite )
29 AdvectionDiffusion::State1D ad_state;
30 boost::shared_ptr<solver::Physics> p_ptr = ad_state.create_physics();
31 solver::Physics&
p = *p_ptr;
34 ad_state.set_state(state,p);
42 ad_state.compute_flux(p,normal,flux);
43 ad_state.compute_fluxjacobian_eigenvalues(p,normal,ev);
44 ad_state.compute_fluxjacobian_right_eigenvectors(p,normal,rv);
45 ad_state.compute_fluxjacobian_left_eigenvectors(p,normal,lv);
47 BOOST_CHECK_EQUAL(flux[0], 5.);
48 BOOST_CHECK_EQUAL(ev[0], 1.);
49 BOOST_CHECK_EQUAL(rv(0,0), 1.);
50 BOOST_CHECK_EQUAL(lv(0,0), 1.);
56 BOOST_AUTO_TEST_SUITE_END()
boost::proto::terminal< SFOp< NormalOp > >::type const normal
Eigen::Matrix< Real, Eigen::Dynamic, Eigen::Dynamic > RealMatrix
Dynamic sized matrix of Real scalars.
BOOST_AUTO_TEST_CASE(advdiff1d)
Eigen::Matrix< Real, Eigen::Dynamic, 1 > RealVector
Dynamic sized column vector.
Top-level namespace for coolfluid.