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

Unit tests for sets of auxiliary variables (exahype2.api.AuxiliaryVariables). More...

Functions

 _solver (name="Probe")
 _two_sets ()
 test_set_knows_its_variables ()
 test_invalid_names_are_rejected (name)
 test_solver_has_arbitrary_number_of_sets_with_offsets_in_kernel_buffer ()
 test_same_set_cannot_be_attached_twice ()
 test_first_solver_owns_set ()
 test_signatures_are_unchanged_without_auxiliary_variables ()
 test_pointers_follow_each_q_and_delta_q ()
 test_only_the_owner_writes_the_set_in_the_initial_condition ()
 test_abstract_solver_declares_structs_and_kernel_adapters (tmp_path)
 test_stateful_kernel_call_slices_the_kernel_buffer ()
 _graphs (solvers, tmp_path)
 _fv_solver (name)
 test_shared_set_is_held_by_one_cell_data_object (tmp_path)
 test_sharing_solver_has_to_be_added_after_owner (tmp_path)
 test_distinct_sets_get_distinct_cell_data (tmp_path)
 test_optimistic_scheme_rejects_auxiliary_variables (tmp_path)
 test_gpu_update_assembles_buffers_before_copying_to_the_device ()
 test_fd4_reconstructs_the_halos_of_auxiliary_variables (tmp_path)
 test_mode_defaults_to_stationary_on_faces ()
 test_data_name_feeds_into_the_generated_data ()
 _fd4_time_step (tmp_path, mode, rk_order=3)
 _reconstruction_name (auxiliary, stage)
 test_fd4_reconstructs_changing_halos_in_every_stage (tmp_path)
 test_fd4_reconstructs_halos_that_are_stationary_through_the_time_step_once (tmp_path)
 test_fd4_with_one_stage_discards_the_held_halo_right_away (tmp_path)

Detailed Description

Unit tests for sets of auxiliary variables (exahype2.api.AuxiliaryVariables).

Function Documentation

◆ _fd4_time_step()

test_auxiliary_variables._fd4_time_step ( tmp_path,
mode,
rk_order = 3 )
protected

Definition at line 322 of file test_auxiliary_variables.py.

References _solver().

Referenced by test_fd4_reconstructs_changing_halos_in_every_stage(), test_fd4_reconstructs_halos_that_are_stationary_through_the_time_step_once(), and test_fd4_with_one_stage_discards_the_held_halo_right_away().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _fv_solver()

test_auxiliary_variables._fv_solver ( name)
protected

Definition at line 179 of file test_auxiliary_variables.py.

References _solver().

Referenced by test_distinct_sets_get_distinct_cell_data(), test_shared_set_is_held_by_one_cell_data_object(), and test_sharing_solver_has_to_be_added_after_owner().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _graphs()

test_auxiliary_variables._graphs ( solvers,
tmp_path )
protected

◆ _reconstruction_name()

test_auxiliary_variables._reconstruction_name ( auxiliary,
stage )
protected

◆ _solver()

◆ _two_sets()

◆ test_abstract_solver_declares_structs_and_kernel_adapters()

test_auxiliary_variables.test_abstract_solver_declares_structs_and_kernel_adapters ( tmp_path)

Definition at line 120 of file test_auxiliary_variables.py.

References _solver(), and _two_sets().

Here is the call graph for this function:

◆ test_data_name_feeds_into_the_generated_data()

test_auxiliary_variables.test_data_name_feeds_into_the_generated_data ( )

Definition at line 306 of file test_auxiliary_variables.py.

◆ test_distinct_sets_get_distinct_cell_data()

test_auxiliary_variables.test_distinct_sets_get_distinct_cell_data ( tmp_path)

Definition at line 215 of file test_auxiliary_variables.py.

References _fv_solver(), _graphs(), and _two_sets().

Here is the call graph for this function:

◆ test_fd4_reconstructs_changing_halos_in_every_stage()

test_auxiliary_variables.test_fd4_reconstructs_changing_halos_in_every_stage ( tmp_path)

Definition at line 343 of file test_auxiliary_variables.py.

References _fd4_time_step(), and _reconstruction_name().

Here is the call graph for this function:

◆ test_fd4_reconstructs_halos_that_are_stationary_through_the_time_step_once()

test_auxiliary_variables.test_fd4_reconstructs_halos_that_are_stationary_through_the_time_step_once ( tmp_path)

Definition at line 354 of file test_auxiliary_variables.py.

References _fd4_time_step(), and _reconstruction_name().

Here is the call graph for this function:

◆ test_fd4_reconstructs_the_halos_of_auxiliary_variables()

test_auxiliary_variables.test_fd4_reconstructs_the_halos_of_auxiliary_variables ( tmp_path)

Definition at line 262 of file test_auxiliary_variables.py.

References _solver(), and _two_sets().

Here is the call graph for this function:

◆ test_fd4_with_one_stage_discards_the_held_halo_right_away()

test_auxiliary_variables.test_fd4_with_one_stage_discards_the_held_halo_right_away ( tmp_path)

Definition at line 383 of file test_auxiliary_variables.py.

References _fd4_time_step().

Here is the call graph for this function:

◆ test_first_solver_owns_set()

test_auxiliary_variables.test_first_solver_owns_set ( )

Definition at line 73 of file test_auxiliary_variables.py.

References _solver(), and _two_sets().

Here is the call graph for this function:

◆ test_gpu_update_assembles_buffers_before_copying_to_the_device()

test_auxiliary_variables.test_gpu_update_assembles_buffers_before_copying_to_the_device ( )

Definition at line 239 of file test_auxiliary_variables.py.

References _solver(), and _two_sets().

Here is the call graph for this function:

◆ test_invalid_names_are_rejected()

test_auxiliary_variables.test_invalid_names_are_rejected ( name)

Definition at line 44 of file test_auxiliary_variables.py.

◆ test_mode_defaults_to_stationary_on_faces()

test_auxiliary_variables.test_mode_defaults_to_stationary_on_faces ( )

Definition at line 300 of file test_auxiliary_variables.py.

◆ test_only_the_owner_writes_the_set_in_the_initial_condition()

test_auxiliary_variables.test_only_the_owner_writes_the_set_in_the_initial_condition ( )

Definition at line 105 of file test_auxiliary_variables.py.

References _solver(), and _two_sets().

Here is the call graph for this function:

◆ test_optimistic_scheme_rejects_auxiliary_variables()

test_auxiliary_variables.test_optimistic_scheme_rejects_auxiliary_variables ( tmp_path)

Definition at line 225 of file test_auxiliary_variables.py.

References _solver(), and _two_sets().

Here is the call graph for this function:

◆ test_pointers_follow_each_q_and_delta_q()

test_auxiliary_variables.test_pointers_follow_each_q_and_delta_q ( )

Definition at line 87 of file test_auxiliary_variables.py.

References _solver(), and _two_sets().

Here is the call graph for this function:

◆ test_same_set_cannot_be_attached_twice()

test_auxiliary_variables.test_same_set_cannot_be_attached_twice ( )

Definition at line 61 of file test_auxiliary_variables.py.

References _solver(), and _two_sets().

Here is the call graph for this function:

◆ test_set_knows_its_variables()

test_auxiliary_variables.test_set_knows_its_variables ( )

Definition at line 32 of file test_auxiliary_variables.py.

◆ test_shared_set_is_held_by_one_cell_data_object()

test_auxiliary_variables.test_shared_set_is_held_by_one_cell_data_object ( tmp_path)

Definition at line 185 of file test_auxiliary_variables.py.

References _fv_solver(), _graphs(), and _two_sets().

Here is the call graph for this function:

◆ test_sharing_solver_has_to_be_added_after_owner()

test_auxiliary_variables.test_sharing_solver_has_to_be_added_after_owner ( tmp_path)

Definition at line 206 of file test_auxiliary_variables.py.

References _fv_solver(), _graphs(), and _two_sets().

Here is the call graph for this function:

◆ test_signatures_are_unchanged_without_auxiliary_variables()

test_auxiliary_variables.test_signatures_are_unchanged_without_auxiliary_variables ( )

Definition at line 81 of file test_auxiliary_variables.py.

References _solver().

Here is the call graph for this function:

◆ test_solver_has_arbitrary_number_of_sets_with_offsets_in_kernel_buffer()

test_auxiliary_variables.test_solver_has_arbitrary_number_of_sets_with_offsets_in_kernel_buffer ( )

Definition at line 49 of file test_auxiliary_variables.py.

References _solver(), and _two_sets().

Here is the call graph for this function:

◆ test_stateful_kernel_call_slices_the_kernel_buffer()

test_auxiliary_variables.test_stateful_kernel_call_slices_the_kernel_buffer ( )

Definition at line 143 of file test_auxiliary_variables.py.

References _solver(), and _two_sets().

Here is the call graph for this function: