Peano
Loading...
Searching...
No Matches
test_solver_couplings Namespace Reference

Unit tests for the registration of couplings of solvers and for the flag add_global_tasks, with which a coupling leaves the load balancing switch and the dynamic mesh refinement to one of its solvers. More...

Data Structures

class  _Coupling
 Minimal coupling: it brings its solvers along and realises them itself. More...

Functions

 _solver (scheme, name="Probe")
 _construct (solver, tmp_path, add_global_tasks)
 _toggles_load_balancing (task)
 test_graph_append_connects_the_end_of_one_graph_to_the_start_of_the_other ()
 test_graph_append_makes_the_sources_wait_for_global_sinks_too ()
 test_graph_append_rejects_shared_tasks ()
 test_graph_merge_unites_graphs_and_keeps_the_dependencies ()
 test_schemes_add_the_global_tasks_by_default (scheme, tmp_path)
 test_schemes_leave_the_global_tasks_to_the_host_on_request (scheme, tmp_path)
 test_solver_without_global_tasks_does_not_contribute_to_the_mesh_adaptation (tmp_path)
 test_project_registers_the_solvers_of_a_coupling_but_realises_the_coupling (tmp_path)
 test_graph_source_tasks_are_the_counterpart_of_the_sink_tasks ()

Variables

 Task = peano4.api.taskgraph.Task
dict SCHEMES

Detailed Description

Unit tests for the registration of couplings of solvers and for the flag add_global_tasks, with which a coupling leaves the load balancing switch and the dynamic mesh refinement to one of its solvers.

Function Documentation

◆ _construct()

test_solver_couplings._construct ( solver,
tmp_path,
add_global_tasks )
protected

Definition at line 40 of file test_solver_couplings.py.

Referenced by test_schemes_add_the_global_tasks_by_default(), and test_schemes_leave_the_global_tasks_to_the_host_on_request().

Here is the caller graph for this function:

◆ _solver()

◆ _toggles_load_balancing()

test_solver_couplings._toggles_load_balancing ( task)
protected

Definition at line 50 of file test_solver_couplings.py.

Referenced by test_schemes_add_the_global_tasks_by_default(), and test_schemes_leave_the_global_tasks_to_the_host_on_request().

Here is the caller graph for this function:

◆ test_graph_append_connects_the_end_of_one_graph_to_the_start_of_the_other()

test_solver_couplings.test_graph_append_connects_the_end_of_one_graph_to_the_start_of_the_other ( )

Definition at line 58 of file test_solver_couplings.py.

References Task.

◆ test_graph_append_makes_the_sources_wait_for_global_sinks_too()

test_solver_couplings.test_graph_append_makes_the_sources_wait_for_global_sinks_too ( )

Definition at line 76 of file test_solver_couplings.py.

References Task.

◆ test_graph_append_rejects_shared_tasks()

test_solver_couplings.test_graph_append_rejects_shared_tasks ( )

Definition at line 91 of file test_solver_couplings.py.

References Task.

◆ test_graph_merge_unites_graphs_and_keeps_the_dependencies()

test_solver_couplings.test_graph_merge_unites_graphs_and_keeps_the_dependencies ( )

Definition at line 100 of file test_solver_couplings.py.

References Task.

◆ test_graph_source_tasks_are_the_counterpart_of_the_sink_tasks()

test_solver_couplings.test_graph_source_tasks_are_the_counterpart_of_the_sink_tasks ( )

Definition at line 189 of file test_solver_couplings.py.

References Task.

◆ test_project_registers_the_solvers_of_a_coupling_but_realises_the_coupling()

test_solver_couplings.test_project_registers_the_solvers_of_a_coupling_but_realises_the_coupling ( tmp_path)

Definition at line 176 of file test_solver_couplings.py.

References _solver().

Here is the call graph for this function:

◆ test_schemes_add_the_global_tasks_by_default()

test_solver_couplings.test_schemes_add_the_global_tasks_by_default ( scheme,
tmp_path )

Definition at line 118 of file test_solver_couplings.py.

References _construct(), _solver(), and _toggles_load_balancing().

Here is the call graph for this function:

◆ test_schemes_leave_the_global_tasks_to_the_host_on_request()

test_solver_couplings.test_schemes_leave_the_global_tasks_to_the_host_on_request ( scheme,
tmp_path )

Definition at line 126 of file test_solver_couplings.py.

References _construct(), _solver(), and _toggles_load_balancing().

Here is the call graph for this function:

◆ test_solver_without_global_tasks_does_not_contribute_to_the_mesh_adaptation()

test_solver_couplings.test_solver_without_global_tasks_does_not_contribute_to_the_mesh_adaptation ( tmp_path)

Definition at line 135 of file test_solver_couplings.py.

References _solver().

Here is the call graph for this function:

Variable Documentation

◆ SCHEMES

dict test_solver_couplings.SCHEMES
Initial value:
1= {
2 "fv": lambda solver: exahype2.api.fv.RusanovWithExplicitEuler(solver, 4),
3 "fv-optimistic": lambda solver: exahype2.api.fv.RusanovWithOptimisticExplicitEuler(
4 solver, 4
5 ),
7 solver, patch_size=4, rk_order=2
8 ),
9}
Finite Volumes with a Rusanov Riemann solver and explicit Euler time stepping, realised over a block-...
Finite Volumes with a Rusanov Riemann solver and optimistic explicit Euler time stepping,...
Fourth-order central Finite Differences with explicit Runge-Kutta time stepping, realised over a bloc...

Definition at line 16 of file test_solver_couplings.py.

◆ Task