|
Peano
|
Two separate sweeps per Runge-Kutta sweep where volumetric operations are outsourced into dedicated tasks. More...


Public Member Functions | |
| __init__ (self, name, rk_order, polynomial_basis, number_of_face_projections, unknowns, auxiliary_variables, min_cell_h, max_cell_h, plot_grid_properties, pde_terms_without_state) | |
| See superclass constructor for all the interesting info. | |
| create_data_structures (self) | |
| First, call the superclass' create_data_structures() to ensure that all the data structures are in place. | |
| create_action_sets (self) | |
| Call superclass routine and then reconfigure the update cell call. | |
| add_implementation_files_to_project (self, namespace, output, dimensions, subdirectory="") | |
| The ExaHyPE project will call this operation when it sets up the overall environment. | |
| add_actions_to_perform_time_step (self, step) | |
| Add enclave aspect to time stepping. | |
| add_entries_to_text_replacement_dictionary (self, d) | |
| switch_storage_scheme (self, Storage cell_data_storage, Storage face_data_storage) | |
| By default, we hold all data on the call stacks. | |
| Public Member Functions inherited from solvers.rkdg.SeparateSweeps.SeparateSweeps | |
| __init__ (self, name, rk_order, polynomial_basis, number_of_face_projections, unknowns, auxiliary_variables, min_cell_h, max_cell_h, plot_grid_properties, pde_terms_without_state) | |
| The super call invokes the creation of the data sets, where the guards have to be known already. | |
| Public Member Functions inherited from solvers.rkdg.RungeKuttaDG.RungeKuttaDG | |
| __init__ (self, name, rk_order, polynomial_basis, FaceProjections face_projections, unknowns, auxiliary_variables, min_cell_h, max_cell_h, plot_grid_properties, bool pde_terms_without_state, baseline_action_set_descend_invocation_order=0) | |
| Constructor of the Runge-Kutta Discontinuous Galerkin solver. | |
| __str__ (self) | |
| get_min_number_of_spacetree_levels (self, domain_size) | |
| get_max_number_of_spacetree_levels (self, domain_size) | |
| get_coarsest_number_of_cells (self, domain_size) | |
| get_finest_number_of_cells (self, domain_size) | |
| create_readme_descriptor (self, domain_offset, domain_size) | |
| user_action_set_includes (self) | |
| Add further includes to this property, if your action sets require some additional routines from other header files. | |
| user_solver_includes (self) | |
| Add further includes to this property, if your solver requires some additional routines from other header files. | |
| add_user_action_set_includes (self, value) | |
| Add further includes to this property, if your action sets require some additional routines from other header files. | |
| add_user_solver_includes (self, value) | |
| Add further includes to this property, if your solver requires some additional routines from other header files. | |
| get_name_of_global_instance (self) | |
| add_to_Peano4_datamodel (self, datamodel, verbose) | |
| Add all required data to the Peano4 project's datamodel so it is properly built up. | |
| add_use_data_statements_to_Peano4_solver_step (self, step) | |
| Tell Peano what data to move around. | |
| add_actions_to_init_grid (self, step) | |
| Add the action sets to the grid initialisation. | |
| add_actions_to_create_grid (self, step, evaluate_refinement_criterion) | |
| set_plot_description (self, description) | |
| Use this one to set a description within the output patch file that tells the vis solver what the semantics of the entries are. | |
| add_actions_to_plot_solution (self, step, output_path) | |
| Dump snapshot of solution. | |
| set_solver_constants (self, datastring) | |
| add_solver_constants (self, datastring) | |
| unknowns (self) | |
| auxiliary_variables (self) | |
| unknowns (self, value) | |
| auxiliary_variables (self, value) | |
| number_of_Runge_Kutta_steps (self) | |
| set_implementation (self, flux=None, ncp=None, eigenvalues=None, boundary_conditions=None, refinement_criterion=None, initial_conditions=None, source_term=None, point_source=None, additional_action_set_includes="", additional_user_includes="") | |
| If you pass in User_Defined, then the generator will create C++ stubs that you have to befill manually. | |
| postprocess_updated_cell_after_Runge_Kutta_step (self) | |
| postprocess_updated_cell_after_final_linear_combination (self) | |
| postprocess_updated_cell_after_Runge_Kutta_step (self, kernel) | |
| Define a postprocessing routine over the data. | |
| postprocess_updated_cell_after_final_linear_combination (self, kernel) | |
| Define a postprocessing routine over the data. | |
Data Fields | |
| str | enclave_task_priority = "tarch::multicore::Task::DefaultPriority-1" |
| bool | make_copy_of_enclave_task_data = False |
| Data Fields inherited from solvers.rkdg.RungeKuttaDG.RungeKuttaDG | |
| str | plot_description = "" |
| select_dofs_to_print = None | |
Protected Member Functions | |
| _volumetric_solver_enclave_task_name (self) | |
| Protected Member Functions inherited from solvers.rkdg.RungeKuttaDG.RungeKuttaDG | |
| _query_fine_grid_cell_in_action_set_if_it_holds_solution (self) | |
| _provide_cell_data_to_compute_kernels_default_guard (self) | |
| _provide_face_data_to_compute_kernels_default_guard (self) | |
| _store_cell_data_default_guard (self) | |
| Extend the guard via ands only. | |
| _load_cell_data_default_guard (self) | |
| Extend the guard via ands only. | |
| _store_face_data_default_guard (self) | |
| Extend the guard via ands only. | |
| _load_face_data_default_guard (self) | |
| Extend the guard via ands only. | |
| _unknown_identifier (self) | |
| _get_default_includes (self) | |
| _init_dictionary_with_default_parameters (self, d) | |
| This one is called by all algorithmic steps before I invoke add_entries_to_text_replacement_dictionary(). | |
Two separate sweeps per Runge-Kutta sweep where volumetric operations are outsourced into dedicated tasks.
Use the attributes self.enclave_task_priority to change the priority of the task. This value can either be a string that C++ can evaluate into a priority or a plain numerical value. I set it to
self.enclave_task_priority = "tarch::multicore::Task::DefaultPriority-1"
by default.
Definition at line 89 of file SeparateSweepsWithEnclaveTasking.py.
| solvers.rkdg.SeparateSweepsWithEnclaveTasking.SeparateSweepsWithEnclaveTasking.__init__ | ( | self, | |
| name, | |||
| rk_order, | |||
| polynomial_basis, | |||
| number_of_face_projections, | |||
| unknowns, | |||
| auxiliary_variables, | |||
| min_cell_h, | |||
| max_cell_h, | |||
| plot_grid_properties, | |||
| pde_terms_without_state ) |
See superclass constructor for all the interesting info.
It is important to notice that we still use the separate sweep template classes here.
Definition at line 107 of file SeparateSweepsWithEnclaveTasking.py.
References __init__().
Referenced by __init__().


|
protected |
Definition at line 221 of file SeparateSweepsWithEnclaveTasking.py.
Referenced by add_implementation_files_to_project().

| solvers.rkdg.SeparateSweepsWithEnclaveTasking.SeparateSweepsWithEnclaveTasking.add_actions_to_perform_time_step | ( | self, | |
| step ) |
Add enclave aspect to time stepping.
If you study the superclass' routine add_actions_to_perform_time_step() and consider that this action set is invoked in the secondary grid sweep, then it becomes clear that this merger has to come first, i.e. we first add the action set and then we call the superclass' add_action_set().
We need the result of the volumetric operation before we sum up this volumetric solution and the Riemann solution.
Reimplemented from solvers.rkdg.RungeKuttaDG.RungeKuttaDG.
Definition at line 225 of file SeparateSweepsWithEnclaveTasking.py.
References solvers.fv.EnclaveTasking.EnclaveTasking._action_set_merge_enclave_task_outcome, _action_set_merge_enclave_task_outcome, and add_actions_to_perform_time_step().
Referenced by add_actions_to_perform_time_step().


| solvers.rkdg.SeparateSweepsWithEnclaveTasking.SeparateSweepsWithEnclaveTasking.add_entries_to_text_replacement_dictionary | ( | self, | |
| d ) |
Reimplemented from solvers.rkdg.RungeKuttaDG.RungeKuttaDG.
Definition at line 242 of file SeparateSweepsWithEnclaveTasking.py.
References _fused_Riemann_compute_kernel_call_stateless_cpu, _fused_Riemann_compute_kernel_call_stateless_gpu, solvers.rkdg.rusanov.GlobalAdaptiveTimeStepWithEnclaveTasking.GlobalAdaptiveTimeStepWithEnclaveTasking._fused_volumetric_compute_kernel_call_stateless_cpu, _fused_volumetric_compute_kernel_call_stateless_cpu, solvers.rkdg.rusanov.GlobalAdaptiveTimeStepWithEnclaveTasking.GlobalAdaptiveTimeStepWithEnclaveTasking._fused_volumetric_compute_kernel_call_stateless_gpu, _fused_volumetric_compute_kernel_call_stateless_gpu, api.solvers.Solver.Solver._name, api.Tree.Tree._name, dastgen2.attributes.Attribute.Attribute._name, dastgen2.attributes.BooleanArray.BooleanArray._name, dastgen2.attributes.Enumeration.Enumeration._name, exagrype.api.euler.CCZ4WithEuler_OuterAdditiveCoupling.CCZ4WithEuler_OuterAdditiveCoupling._name, exagrype.api.euler.CCZ4WithEuler_OuterMultiplicativeCoupling.CCZ4WithEuler_OuterMultiplicativeCoupling._name, exagrype.api.FOSOSolver.FOSOSolver._name, exagrype.api.scalarfield.CCZ4WithScalarField_InnerCoupling.CCZ4WithScalarField_InnerCoupling._name, exagrype.api.scalarfield.CCZ4WithScalarField_OuterMultiplicativeCoupling.CCZ4WithScalarField_OuterMultiplicativeCoupling._name, exahype2.api.AuxiliaryVariables.AuxiliaryVariables._name, exahype2.api.dslhype.SyntaxTree.Construction._name, exahype2.api.dslhype.SyntaxTree.DataBlockConstructionFromDotProduct._name, exahype2.api.dslhype.SyntaxTree.DataBlockConstructionFromExisting._name, exahype2.api.dslhype.SyntaxTree.DataBlockConstructionFromFunction._name, exahype2.api.dslhype.SyntaxTree.DataBlockConstructionFromMatrixVectorProduct._name, exahype2.api.dslhype.SyntaxTree.DataBlockConstructionFromOperation._name, exahype2.api.dslhype.SyntaxTree.MemoryAllocation._name, exahype2.api.dslhype.SyntaxTree.MemoryDeallocation._name, exahype2.api.Solver.Solver._name, mghype::matrixfree::solvers::Solver._name, peano4.api.dastgen2.Peano4DoubleArray.Peano4DoubleArray._name, peano4.api.dastgen2.Peano4IntegerArray.Peano4IntegerArray._name, peano4.api.dastgen2.Peano4SmartPointerDoubleArray.Peano4SmartPointerDoubleArray._name, peano4::RunMultipleSteps._name, solvers.aderdg.ADERDG.ADERDG._name, solvers.api.Solver.Solver._name, solvers.elliptic.AMRMarker.AMRMarker._name, solvers.elliptic.ConstrainedPoissonEquationForMarkerOnCells.ConstrainedPoissonEquationForMarkerOnCells._name, solvers.fv.EnclaveTasking.EnclaveTasking._name, solvers.fv.FV.FV._name, solvers.limiting.PosterioriLimiting.PosterioriLimiting._name, solvers.limiting.StaticLimiting.StaticLimiting._name, solvers.rkdg.RungeKuttaDG.RungeKuttaDG._name, tarch::services::ServiceRepository::ServiceEntry._name, add_entries_to_text_replacement_dictionary(), solvers.fv.EnclaveTasking.EnclaveTasking.enclave_task_priority, enclave_task_priority, solvers.fv.EnclaveTasking.EnclaveTasking.make_copy_of_enclave_task_data, and make_copy_of_enclave_task_data.
Referenced by add_entries_to_text_replacement_dictionary().


| solvers.rkdg.SeparateSweepsWithEnclaveTasking.SeparateSweepsWithEnclaveTasking.add_implementation_files_to_project | ( | self, | |
| namespace, | |||
| output, | |||
| dimensions, | |||
| subdirectory = "" ) |
The ExaHyPE project will call this operation when it sets up the overall environment.
This routine is typically not invoked by a user.
output: peano4.api.output.Output
Reimplemented from solvers.rkdg.RungeKuttaDG.RungeKuttaDG.
Definition at line 183 of file SeparateSweepsWithEnclaveTasking.py.
References solvers.aderdg.ADERDG.ADERDG._init_dictionary_with_default_parameters(), solvers.aderdg.SingleSweep.SingleSweep._init_dictionary_with_default_parameters(), solvers.fv.FV.FV._init_dictionary_with_default_parameters(), solvers.limiting.PosterioriLimiting.PosterioriLimiting._init_dictionary_with_default_parameters(), solvers.limiting.StaticLimiting.StaticLimiting._init_dictionary_with_default_parameters(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG._init_dictionary_with_default_parameters(), _volumetric_solver_enclave_task_name(), solvers.aderdg.ADERDG.ADERDG.add_entries_to_text_replacement_dictionary(), solvers.elliptic.ConstrainedPoissonEquationForMarkerOnCells.ConstrainedPoissonEquationForMarkerOnCells.add_entries_to_text_replacement_dictionary(), solvers.fv.EnclaveTasking.EnclaveTasking.add_entries_to_text_replacement_dictionary(), solvers.fv.FV.FV.add_entries_to_text_replacement_dictionary(), solvers.fv.SingleSweep.SingleSweep.add_entries_to_text_replacement_dictionary(), solvers.limiting.PosterioriLimiting.PosterioriLimiting.add_entries_to_text_replacement_dictionary(), solvers.limiting.StaticLimiting.StaticLimiting.add_entries_to_text_replacement_dictionary(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG.add_entries_to_text_replacement_dictionary(), add_implementation_files_to_project(), solvers.aderdg.ADERDG.ADERDG.user_action_set_includes, solvers.fv.FV.FV.user_action_set_includes(), solvers.fv.musclhancock.GlobalAdaptiveTimeStep.GlobalAdaptiveTimeStep.user_action_set_includes(), solvers.fv.musclhancock.GlobalFixedTimeStep.GlobalFixedTimeStep.user_action_set_includes(), solvers.fv.riemann.GlobalAdaptiveTimeStep.GlobalAdaptiveTimeStep.user_action_set_includes(), solvers.fv.riemann.GlobalAdaptiveTimeStepWithEnclaveTasking.GlobalAdaptiveTimeStepWithEnclaveTasking.user_action_set_includes(), solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep.user_action_set_includes(), solvers.fv.riemann.GlobalFixedTimeStepWithEnclaveTasking.GlobalFixedTimeStepWithEnclaveTasking.user_action_set_includes(), solvers.fv.rusanov.GlobalAdaptiveTimeStep.GlobalAdaptiveTimeStep.user_action_set_includes(), solvers.fv.rusanov.GlobalAdaptiveTimeStepWithEnclaveTasking.GlobalAdaptiveTimeStepWithEnclaveTasking.user_action_set_includes(), solvers.fv.rusanov.GlobalFixedTimeStep.GlobalFixedTimeStep.user_action_set_includes(), solvers.fv.rusanov.GlobalFixedTimeStepWithEnclaveTasking.GlobalFixedTimeStepWithEnclaveTasking.user_action_set_includes(), solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking.user_action_set_includes(), solvers.fv.rusanov.SubcyclingAdaptiveTimeStepWithEnclaveTasking.SubcyclingAdaptiveTimeStepWithEnclaveTasking.user_action_set_includes(), solvers.fv.rusanov.SubcyclingFixedTimeStepWithEnclaveTasking.SubcyclingFixedTimeStepWithEnclaveTasking.user_action_set_includes(), solvers.fv.SingleSweep.SingleSweep.user_action_set_includes(), solvers.limiting.PosterioriLimiting.PosterioriLimiting.user_action_set_includes, solvers.limiting.StaticLimiting.StaticLimiting.user_action_set_includes, solvers.rkdg.RungeKuttaDG.RungeKuttaDG.user_action_set_includes(), exagrype.api.CCZ4SolverBase.CCZ4SolverBase.user_solver_includes, exahype2.api.Solver.Solver.user_solver_includes(), solvers.aderdg.ADERDG.ADERDG.user_solver_includes, solvers.fv.FV.FV.user_solver_includes(), solvers.limiting.PosterioriLimiting.PosterioriLimiting.user_solver_includes, solvers.limiting.StaticLimiting.StaticLimiting.user_solver_includes, and solvers.rkdg.RungeKuttaDG.RungeKuttaDG.user_solver_includes().
Referenced by add_implementation_files_to_project().


| solvers.rkdg.SeparateSweepsWithEnclaveTasking.SeparateSweepsWithEnclaveTasking.create_action_sets | ( | self | ) |
Call superclass routine and then reconfigure the update cell call.
Only the UpdateCell action set is specific to an enclave solver.
This operation is implicitly called via the superconstructor.
It is important that we add the action set at the right point. See add_actions_to_perform_time_step() for a discussion.
Reimplemented from solvers.rkdg.SeparateSweeps.SeparateSweeps.
Definition at line 163 of file SeparateSweepsWithEnclaveTasking.py.
References solvers.rkdg.RungeKuttaDG.RungeKuttaDG._action_set_solve_volume_integral, and create_action_sets().
Referenced by create_action_sets().


| solvers.rkdg.SeparateSweepsWithEnclaveTasking.SeparateSweepsWithEnclaveTasking.create_data_structures | ( | self | ) |
First, call the superclass' create_data_structures() to ensure that all the data structures are in place.
The linear combination is to be computed if and only if
Reimplemented from solvers.rkdg.SeparateSweeps.SeparateSweeps.
Definition at line 153 of file SeparateSweepsWithEnclaveTasking.py.
References create_data_structures().
Referenced by create_data_structures().


| solvers.rkdg.SeparateSweepsWithEnclaveTasking.SeparateSweepsWithEnclaveTasking.switch_storage_scheme | ( | self, | |
| Storage | cell_data_storage, | ||
| Storage | face_data_storage ) |
By default, we hold all data on the call stacks.
You can explicitly switch to storage on the heap via smart pointers.
Reimplemented from solvers.rkdg.RungeKuttaDG.RungeKuttaDG.
Definition at line 265 of file SeparateSweepsWithEnclaveTasking.py.
|
protected |
Definition at line 177 of file SeparateSweepsWithEnclaveTasking.py.
Referenced by add_actions_to_perform_time_step(), and solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking.create_action_sets().
|
protected |
Definition at line 144 of file SeparateSweepsWithEnclaveTasking.py.
Referenced by add_entries_to_text_replacement_dictionary().
|
protected |
Definition at line 145 of file SeparateSweepsWithEnclaveTasking.py.
Referenced by add_entries_to_text_replacement_dictionary().
|
protected |
Definition at line 142 of file SeparateSweepsWithEnclaveTasking.py.
Referenced by add_entries_to_text_replacement_dictionary().
|
protected |
Definition at line 143 of file SeparateSweepsWithEnclaveTasking.py.
Referenced by add_entries_to_text_replacement_dictionary().
| str solvers.rkdg.SeparateSweepsWithEnclaveTasking.SeparateSweepsWithEnclaveTasking.enclave_task_priority = "tarch::multicore::Task::DefaultPriority-1" |
Definition at line 147 of file SeparateSweepsWithEnclaveTasking.py.
Referenced by add_entries_to_text_replacement_dictionary().
| bool solvers.rkdg.SeparateSweepsWithEnclaveTasking.SeparateSweepsWithEnclaveTasking.make_copy_of_enclave_task_data = False |
Definition at line 271 of file SeparateSweepsWithEnclaveTasking.py.
Referenced by add_entries_to_text_replacement_dictionary().