Peano
Loading...
Searching...
No Matches
test_derive_load_store_compute_flag.py File Reference

Go to the source code of this file.

Data Structures

class  test_derive_load_store_compute_flag._FakeGenerator
 Minimal stand-in for peano4.api.datamodel.PatchToDoubleArrayWithSmartPointer: derive_load_store_compute_flag() only ever needs somewhere to write load_store_compute_flag to. More...
 
class  test_derive_load_store_compute_flag._FakeSubmodel
 Minimal stand-in for a peano4.api.datamodel.Patch, with a generator attribute like the real thing has. More...
 
class  test_derive_load_store_compute_flag._FakeGridSelector
 Stand-in for a peano4.api.toolbox.GridSelector with one distinct guard per kind, so tests can tell which routine was used. More...
 

Namespaces

namespace  test_derive_load_store_compute_flag
 

Functions

 test_derive_load_store_compute_flag._make_step (name)
 
 test_derive_load_store_compute_flag._use_cell (step, submodel, qualifier)
 
 test_derive_load_store_compute_flag._use_face (step, submodel, qualifier)
 
 test_derive_load_store_compute_flag._use_vertex (step, submodel, qualifier)
 
str test_derive_load_store_compute_flag._active (step)
 The exact "this Step is active" expression, for asserting against - built the same way the production code builds it, so these tests break if that expression's shape ever changes.
 
str test_derive_load_store_compute_flag._flag (use, load, store)
 
 test_derive_load_store_compute_flag.test_read_and_discard_only_contributes_to_use_and_load ()
 
 test_derive_load_store_compute_flag.test_write_only_contributes_to_use_and_store ()
 
 test_derive_load_store_compute_flag.test_read_and_write_contributes_to_all_three ()
 
 test_derive_load_store_compute_flag.test_temporary_contributes_only_to_use ()
 
 test_derive_load_store_compute_flag.test_terms_from_different_steps_are_ored_together ()
 One Step reads, a different Step (elsewhere) writes the same submodel: use has both, load only the reader's term, store only the writer's term.
 
 test_derive_load_store_compute_flag.test_terms_across_different_phases_use_each_steps_own_name ()
 
 test_derive_load_store_compute_flag.test_cell_face_and_vertex_are_derived_independently ()
 
 test_derive_load_store_compute_flag.test_submodel_never_used_is_left_untouched ()
 
 test_derive_load_store_compute_flag.test_factory_default_is_overwritten_not_combined ()
 A submodel's generator starts out at the factory default (never customised by anyone) - the derived flag should replace it outright, not get AND-combined with it.
 
 test_derive_load_store_compute_flag.test_pre_existing_custom_expression_is_combined_with_and ()
 A task graph author (or an earlier call to this function) already set a custom load_store_compute_flag - the newly derived expression must be AND-combined with it, existing first, new one parenthesised.
 
 test_derive_load_store_compute_flag.test_touched_submodel_gets_step_repository_includes ()
 
 test_derive_load_store_compute_flag.test_untouched_submodel_gets_no_includes ()
 
 test_derive_load_store_compute_flag.test_includes_are_not_duplicated_on_repeated_calls ()
 
 test_derive_load_store_compute_flag.test_grid_selector_guard_is_combined_with_each_predicate ()
 
 test_derive_load_store_compute_flag.test_grid_selector_guard_is_combined_with_false_predicate ()
 
 test_derive_load_store_compute_flag.test_grid_selector_guard_matches_kind_of_submodel ()
 
 test_derive_load_store_compute_flag.test_no_grid_selector_leaves_predicates_untouched ()
 
 test_derive_load_store_compute_flag.test_fine_grid_selector_restricts_patch_to_unrefined_cells ()
 End-to-end with the real classes: a peano4.api.datamodel.Patch carrying a peano4.api.toolbox.FineGridSelector.
 
 test_derive_load_store_compute_flag.test_store_guard_defaults_to_guard ()
 A selector without its own store guard stores whenever it loads.
 

Variables

 test_derive_load_store_compute_flag.READ_AND_DISCARD = Task.DataAccess.READ_AND_DISCARD
 
 test_derive_load_store_compute_flag.WRITE = Task.DataAccess.WRITE
 
 test_derive_load_store_compute_flag.READ_AND_WRITE = Task.DataAccess.READ_AND_WRITE
 
 test_derive_load_store_compute_flag.TEMPORARY = Task.DataAccess.TEMPORARY