37 class TimeLoop final :
public dealii::ParameterAcceptor
81 std::string base_name_;
82 std::string base_name_ensemble_;
84 std::string debug_command_;
85 std::string debug_filename_;
88 bool enforce_t_final_;
89 Number timer_granularity_;
91 bool enable_output_full_;
92 bool enable_output_levelsets_;
93 bool enable_compute_error_;
94 bool enable_compute_quantities_;
95 bool enable_mesh_adaptivity_;
97 unsigned int timer_output_full_multiplier_;
98 unsigned int timer_output_levelsets_multiplier_;
99 unsigned int timer_compute_error_multiplier_;
100 unsigned int timer_compute_quantities_multiplier_;
103 bool resume_at_time_zero_;
105 Number terminal_update_interval_;
106 bool terminal_correct_for_hypertreadhing_;
108 Number checkpoint_update_interval_;
134 dealii::types::global_dof_index n_global_dofs_;
135 unsigned int n_devices_;
137 std::ofstream logfile_;
151 template <
typename Callable>
153 const std::string &base_name,
155 unsigned int &output_cycle,
156 const Callable &prepare_compute_kernels);
167 void write_checkpoint(
const StateVector &state_vector,
168 const std::string &base_name,
170 const unsigned int &output_cycle);
177 template <
typename Callable>
178 void adapt_mesh_and_transfer_state_vector(
179 StateVector &state_vector,
const Callable &prepare_compute_kernels);
187 void interpolate_analytic_solution(
StateVector &analytic, Number t);
190 const std::string &name,
192 const unsigned int cycle);
194 void print_parameters(std::ostream &stream);
195 void print_mpi_partition(std::ostream &stream);
196 void print_device_information(std::ostream &stream);
198 void print_info(
const std::string &header);
200 void print_head(
const std::string &header,
201 const std::string &secondary,
202 std::ostream &stream);
204 void print_information(
unsigned int output_cycle,
205 Number last_checkpoint,
206 std::ostream &stream,
207 bool final_time =
false);
208 void print_memory_statistics(std::ostream &stream);
209 void print_timers(std::ostream &stream);
210 void print_throughput(
unsigned int cycle,
212 std::ostream &stream,
213 bool final_time =
false);
215 void print_cycle_statistics(
unsigned int cycle,
217 unsigned int output_cycle,
218 Number last_checkpoint,
219 bool write_to_logfile =
false,
220 bool final_time =
false);