86 Realise both solvers, chain their time stepping graphs, and add the outcome to the project's graphs
88 The arguments are those of exahype2.api.Solver.generate_solver_realisation().
89 Both solvers are realised without global tasks. The load balancing and the dynamic
90 mesh refinement wrap the chained time step graph afterwards, through the scheme of CCZ4.
94 Entity = peano4.api.taskgraph.Task.GridEntity
98 for solver, graph
in [
99 (self.
ccz4, ccz4_time_step),
102 solver.generate_solver_realisation(
109 add_global_tasks=
False,
124 coupled_time_step.append(ccz4_time_step)
125 coupled_time_step.append(copy)
126 coupled_time_step.append(scalar_field_time_step)
132 for task
in coupled_time_step.sink_tasks():
133 synchronise.add_dependency(task)
134 synchronise.add_action_set(
137 coupled_time_step.add_task(synchronise)
139 self.
ccz4.numerical_scheme.wrap_task_graph_in_load_balancing_and_amr_tasks(
142 if self.
ccz4.mesh_adaptation
is not None:
143 self.
ccz4.mesh_adaptation.construct_output(
144 exahype2_project, peano_project, mesh_adaptation
147 title = f
"Time stepping task graph for host {self.name}"
149 coupled_time_step.visualise(title=title)
151 coupled_time_step.log_as_text(title=title)
152 time_step.merge(coupled_time_step)