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

Functions

 _solver (scheme, criterion=True, **bounds)
 
 _last_task (solver, tmp_path)
 The one task of the time step on which no other task depends.
 
 _criterion_body (action_set)
 
 test_last_task_evaluates_criterion_and_switches_on_load_balancing (scheme, tmp_path)
 
 test_time_step_never_hands_events_to_peano (scheme, tmp_path)
 
 test_no_criterion_means_no_evaluation (scheme, tmp_path)
 
 test_gradient_criterion_yields_gradient_action_set (scheme, tmp_path)
 
 test_time_step_does_not_veto_erase (scheme, tmp_path)
 
 test_two_criteria_are_rejected (tmp_path)
 
 test_mesh_size_is_unconstrained_by_default (tmp_path)
 
 test_numerical_scheme_bounds_mesh_size (scheme, tmp_path)
 
 test_numerical_scheme_rejects_inverted_bounds (scheme)
 

Variables

 Task = peano4.api.taskgraph.Task
 
 ActionSet = peano4.api.solversteps.ActionSet
 
dict SCHEMES
 

Function Documentation

◆ _criterion_body()

test_dynamic_mesh_refinement._criterion_body (   action_set)
protected

◆ _last_task()

◆ _solver()

◆ test_gradient_criterion_yields_gradient_action_set()

test_dynamic_mesh_refinement.test_gradient_criterion_yields_gradient_action_set (   scheme,
  tmp_path 
)

Definition at line 94 of file test_dynamic_mesh_refinement.py.

References _criterion_body(), _last_task(), and _solver().

Here is the call graph for this function:

◆ test_last_task_evaluates_criterion_and_switches_on_load_balancing()

test_dynamic_mesh_refinement.test_last_task_evaluates_criterion_and_switches_on_load_balancing (   scheme,
  tmp_path 
)

Definition at line 56 of file test_dynamic_mesh_refinement.py.

References _last_task(), and _solver().

Here is the call graph for this function:

◆ test_mesh_size_is_unconstrained_by_default()

test_dynamic_mesh_refinement.test_mesh_size_is_unconstrained_by_default (   tmp_path)

Definition at line 127 of file test_dynamic_mesh_refinement.py.

References _criterion_body(), _last_task(), and _solver().

Here is the call graph for this function:

◆ test_no_criterion_means_no_evaluation()

test_dynamic_mesh_refinement.test_no_criterion_means_no_evaluation (   scheme,
  tmp_path 
)

Definition at line 84 of file test_dynamic_mesh_refinement.py.

References _last_task(), and _solver().

Here is the call graph for this function:

◆ test_numerical_scheme_bounds_mesh_size()

test_dynamic_mesh_refinement.test_numerical_scheme_bounds_mesh_size (   scheme,
  tmp_path 
)

Definition at line 135 of file test_dynamic_mesh_refinement.py.

References _criterion_body(), _last_task(), and _solver().

Here is the call graph for this function:

◆ test_numerical_scheme_rejects_inverted_bounds()

test_dynamic_mesh_refinement.test_numerical_scheme_rejects_inverted_bounds (   scheme)

Definition at line 145 of file test_dynamic_mesh_refinement.py.

References _solver().

Here is the call graph for this function:

◆ test_time_step_does_not_veto_erase()

test_dynamic_mesh_refinement.test_time_step_does_not_veto_erase (   scheme,
  tmp_path 
)

Definition at line 115 of file test_dynamic_mesh_refinement.py.

References _criterion_body(), _last_task(), and _solver().

Here is the call graph for this function:

◆ test_time_step_never_hands_events_to_peano()

test_dynamic_mesh_refinement.test_time_step_never_hands_events_to_peano (   scheme,
  tmp_path 
)

Definition at line 72 of file test_dynamic_mesh_refinement.py.

References _criterion_body(), _last_task(), and _solver().

Here is the call graph for this function:

◆ test_two_criteria_are_rejected()

test_dynamic_mesh_refinement.test_two_criteria_are_rejected (   tmp_path)

Definition at line 120 of file test_dynamic_mesh_refinement.py.

References _last_task(), and _solver().

Here is the call graph for this function:

Variable Documentation

◆ ActionSet

test_dynamic_mesh_refinement.ActionSet = peano4.api.solversteps.ActionSet

Definition at line 13 of file test_dynamic_mesh_refinement.py.

◆ SCHEMES

dict test_dynamic_mesh_refinement.SCHEMES
Initial value:
1= {
2 "fv": lambda solver, **bounds: exahype2.api.fv.RusanovWithExplicitEuler(
3 solver, 4, **bounds
4 ),
5 "fv-optimistic": lambda solver, **bounds: exahype2.api.fv.RusanovWithOptimisticExplicitEuler(
6 solver, 4, **bounds
7 ),
8 "rkfd4": lambda solver, **bounds: exahype2.api.rkfd4.CentralDifferencesWithRungeKutta(
9 solver, patch_size=4, rk_order=2, **bounds
10 ),
11}
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 15 of file test_dynamic_mesh_refinement.py.

◆ Task

test_dynamic_mesh_refinement.Task = peano4.api.taskgraph.Task

Definition at line 12 of file test_dynamic_mesh_refinement.py.