◆ NewmarkSolverTestBase()
NewmarkSolverTestBase::NewmarkSolverTestBase |
( |
| ) |
|
|
inline |
◆ aux_time_solver_init()
virtual void NewmarkSolverTestBase::aux_time_solver_init |
( |
NewmarkSolver & |
time_solver | ) |
|
|
inlineoverrideprotectedvirtual |
◆ 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_beta()
void NewmarkSolverTestBase::set_beta |
( |
Real |
beta | ) |
|
|
inlineprotected |
◆ _beta
Real NewmarkSolverTestBase::_beta |
|
protected |
The documentation for this class was generated from the following file: