◆ aux_time_solver_init() [1/2]
virtual void ThetaSolverTestBase< Euler2Solver >::aux_time_solver_init |
( |
Euler2Solver & |
time_solver | ) |
|
|
inlineprotectedvirtualinherited |
◆ aux_time_solver_init() [2/2]
virtual void ThetaSolverTestBase< Euler2Solver >::aux_time_solver_init |
( |
Euler2Solver & |
time_solver | ) |
|
|
inlineprotectedvirtualinherited |
◆ CPPUNIT_TEST() [1/2]
◆ CPPUNIT_TEST() [2/2]
◆ CPPUNIT_TEST_SUITE()
◆ CPPUNIT_TEST_SUITE_END()
Euler2SolverTest::CPPUNIT_TEST_SUITE_END |
( |
| ) |
|
◆ run_test_with_exact_soln()
Definition at line 27 of file time_solver_test_common.h.
32 SystemType & system = es.add_system<SystemType>(
"ScalarSystem");
34 system.time_solver = libmesh_make_unique<TimeSolverType>(system);
38 DiffSolver & solver = *(system.time_solver->diff_solver().get());
43 NewtonSolver & newton = cast_ref<NewtonSolver &>(solver);
50 system.deltat = deltat;
52 TimeSolverType * time_solver = cast_ptr<TimeSolverType *>(system.time_solver.get());
59 std::vector<dof_id_type> solution_index;
60 solution_index.push_back(0);
61 const bool has_solution = system.get_dof_map().all_semilocal_indices(solution_index);
63 for (
unsigned int t_step=0; t_step != n_timesteps; ++t_step)
66 system.time_solver->advance_timestep();
72 Number exact_soln = system.u(system.time);
73 rel_error =
std::abs((exact_soln - (*system.solution)(0))/exact_soln);
75 system.comm().max(rel_error);
78 LIBMESH_ASSERT_FP_EQUAL( 0.0,
80 std::numeric_limits<Real>::epsilon()*10 );
◆ set_theta() [1/2]
◆ set_theta() [2/2]
◆ testEuler2SolverConstantFirstOrderODE()
void Euler2SolverTest::testEuler2SolverConstantFirstOrderODE |
( |
| ) |
|
|
inline |
◆ testEuler2SolverLinearTimeFirstOrderODE()
void Euler2SolverTest::testEuler2SolverLinearTimeFirstOrderODE |
( |
| ) |
|
|
inline |
◆ _theta
The documentation for this class was generated from the following file: