typename std::enable_if<std::is_same<TimeDisc, NumLib::CrankNicolson >::value>::type run_test_case(const unsigned num_timesteps, const char* name) { ODE ode; TimeDisc timeDisc(0.5); TestOutput<Matrix, Vector, NLTag> test(name); test.run_test(ode, timeDisc, num_timesteps); }
typename std::enable_if< std::is_same<TimeDisc, NumLib::BackwardDifferentiationFormula >::value>::type run_test_case(const unsigned num_timesteps, const char* name) { ODE ode; TimeDisc timeDisc(3); TestOutput<Matrix, Vector, NLTag> test(name); test.run_test(ode, timeDisc, num_timesteps); }
typename std::enable_if<std::is_same<TimeDisc, NumLib::CrankNicolson>::value, Solution>::type run_test_case(const unsigned num_timesteps) { ODE ode; TimeDisc timeDisc(0.5); TestOutput<NLTag> test; return test.run_test(ode, timeDisc, num_timesteps); }
typename std::enable_if< std::is_same<TimeDisc, NumLib::BackwardDifferentiationFormula>::value, Solution>::type run_test_case(const unsigned num_timesteps) { ODE ode; TimeDisc timeDisc(3); TestOutput<NLTag> test; return test.run_test(ode, timeDisc, num_timesteps); }