20 error_measurement_implementation=PDETerms.User_Defined_Implementation,
21 delta_between_database_flushes=0,
22 output_file_name="ADERDGErrorMeasurement",
23 data_delta_between_snapshots="1e+16",
24 time_delta_between_snapshots=0.0,
25 clear_database_after_flush=True,
27 super(ErrorMeasurement, self).
__init__(
29 error_measurement_implementation=error_measurement_implementation,
30 delta_between_database_flushes=delta_between_database_flushes,
31 output_file_name=output_file_name,
32 data_delta_between_snapshots=data_delta_between_snapshots,
33 time_delta_between_snapshots=time_delta_between_snapshots,
34 clear_database_after_flush=clear_database_after_flush,
37 solver._finish_time_step_implementation += create_finish_time_step_implementation_for_error_measurement(
38 guard=
"_solverState == SolverState::GridInitialisation or _solverState == SolverState::TimeStep"
41 solver._action_set_postprocess_solution = EmptyPostprocessSolution(
45 if isinstance(solver, GlobalAdaptiveTimeStep):
46 solver._action_set_postprocess_solution._compute_kernel += (
49 elif isinstance(solver, GlobalFixedTimeStep):
50 solver._action_set_postprocess_solution._compute_kernel += (
54 solver._action_set_postprocess_solution.descend_invocation_order = 3