Peano
Loading...
Searching...
No Matches
solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking Class Reference
Inheritance diagram for solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking:
Collaboration diagram for solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking:

Public Member Functions

 __init__ (self, name, patch_size, unknowns, auxiliary_variables, min_volume_h, max_volume_h, time_step_relaxation, flux=PDETerms.User_Defined_Implementation, ncp=PDETerms.None_Implementation, eigenvalues=PDETerms.User_Defined_Implementation, boundary_conditions=PDETerms.User_Defined_Implementation, refinement_criterion=PDETerms.Empty_Implementation, initial_conditions=PDETerms.User_Defined_Implementation, source_term=PDETerms.None_Implementation, plot_grid_properties=False, interpolate_linearly_in_time=True, pde_terms_without_state=False, avoid_staircase_effect=True, discretisation_steps=8, overlap=1)
 time_step_size: Float This is the normalised time step size w.r.t.
 set_implementation (self, flux=None, ncp=None, eigenvalues=None, boundary_conditions=None, refinement_criterion=None, initial_conditions=None, source_term=None, memory_location=None, use_split_loop=False, 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.
 create_action_sets (self)
 The actual action sets all are created by the superclass.
 user_action_set_includes (self)
 create_data_structures (self)

Protected Attributes

 _interpolate_linearly_in_time = interpolate_linearly_in_time
 _time_step_relaxation = time_step_relaxation
 _flux_implementation = PDETerms.None_Implementation
 _ncp_implementation = PDETerms.None_Implementation
 _eigenvalues_implementation = PDETerms.None_Implementation
 _source_term_implementation = PDETerms.None_Implementation
bool _compute_eigenvalue = True
 _compute_time_step_size = create_compute_time_step_size_kernel_for_local_time_stepping( name, time_step_relaxation )
 _compute_new_time_step_size = create_compute_new_time_step_size_kernel_for_local_time_stepping(time_step_relaxation,avoid_staircase_effect,discretisation_steps)
 _patch_size
 _unknowns
 _auxiliary_variables
 _compute_kernel_call
 _compute_kernel_call_stateless
 _fused_compute_kernel_call_stateless_cpu
 _fused_compute_kernel_call_stateless_gpu
 _abstract_solver_user_declarations = create_abstract_solver_declarations(self._flux_implementation, self._ncp_implementation, self._eigenvalues_implementation, self._source_term_implementation, self._pde_terms_without_state)
 _abstract_solver_user_definitions = create_abstract_solver_definitions(self._flux_implementation, self._ncp_implementation, self._eigenvalues_implementation, self._source_term_implementation, self._pde_terms_without_state)
 _constructor_implementation = create_constructor_implementation_for_local_time_stepping()
 _solver_user_declarations = create_solver_declarations(self._flux_implementation, self._ncp_implementation, self._eigenvalues_implementation, self._source_term_implementation, self._pde_terms_without_state)
 _solver_user_definitions = create_solver_definitions(self._flux_implementation, self._ncp_implementation, self._eigenvalues_implementation, self._source_term_implementation, self._pde_terms_without_state)
 _start_time_step_implementation = create_start_time_step_implementation_for_local_time_stepping(True)
 _finish_time_step_implementation = create_finish_time_step_implementation_for_local_time_stepping()

Detailed Description

Definition at line 34 of file LocalTimeStepWithEnclaveTasking.py.

Constructor & Destructor Documentation

◆ __init__()

solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking.__init__ ( self,
name,
patch_size,
unknowns,
auxiliary_variables,
min_volume_h,
max_volume_h,
time_step_relaxation,
flux = PDETerms.User_Defined_Implementation,
ncp = PDETerms.None_Implementation,
eigenvalues = PDETerms.User_Defined_Implementation,
boundary_conditions = PDETerms.User_Defined_Implementation,
refinement_criterion = PDETerms.Empty_Implementation,
initial_conditions = PDETerms.User_Defined_Implementation,
source_term = PDETerms.None_Implementation,
plot_grid_properties = False,
interpolate_linearly_in_time = True,
pde_terms_without_state = False,
avoid_staircase_effect = True,
discretisation_steps = 8,
overlap = 1 )

time_step_size: Float This is the normalised time step size w.r.t.

the coarsest admissible h value. If the code employs AMR on top of it and refines further, it will automatically downscale the time step size accordingly. So hand in a valid time step size w.r.t. to max_volume_h.

avoid_staircase_effect: Boolean Please consult create_compute_new_time_step_size_kernel_for_local_time_stepping() for a discussion of this flag.

discretisation_steps: Float This routine discretises (buckets) the time step sizes. You find more information in the C++ code in exahype2.TimeStepping.

Definition at line 35 of file LocalTimeStepWithEnclaveTasking.py.

Member Function Documentation

◆ create_action_sets()

solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking.create_action_sets ( self)

The actual action sets all are created by the superclass.

So nothing is to be done here. But we want to reset the actual updates and projection, and these only happen if we are allowed to update indeed.

Definition at line 185 of file LocalTimeStepWithEnclaveTasking.py.

References solvers.aderdg.ADERDG.ADERDG._action_set_AMR, solvers.fv.FV.FV._action_set_AMR, solvers.rkdg.RungeKuttaDG.RungeKuttaDG._action_set_AMR, solvers.fv.EnclaveTasking.EnclaveTasking._action_set_merge_enclave_task_outcome, solvers.rkdg.SeparateSweepsWithEnclaveTasking.SeparateSweepsWithEnclaveTasking._action_set_merge_enclave_task_outcome, solvers.fv.EnclaveTasking.EnclaveTasking._action_set_update_cell, solvers.fv.FV.FV._action_set_update_cell, solvers.fv.SingleSweep.SingleSweep._action_set_update_cell, _interpolate_linearly_in_time, solvers.fv.FV.FV._max_volume_h, solvers.fv.FV.FV._min_volume_h, 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, solvers.rkdg.SeparateSweeps.SeparateSweeps._name, solvers.rkdg.SeparateSweepsWithEnclaveTasking.SeparateSweepsWithEnclaveTasking._name, tarch::services::ServiceRepository::ServiceEntry._name, and create_action_sets().

Referenced by solvers.rkdg.RungeKuttaDG.RungeKuttaDG.auxiliary_variables(), create_action_sets(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG.postprocess_updated_cell_after_final_linear_combination(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG.postprocess_updated_cell_after_Runge_Kutta_step(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG.set_implementation(), solvers.rkdg.RungeKuttaDG.RungeKuttaDG.switch_storage_scheme(), and solvers.rkdg.RungeKuttaDG.RungeKuttaDG.unknowns().

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

◆ create_data_structures()

◆ set_implementation()

solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking.set_implementation ( self,
flux = None,
ncp = None,
eigenvalues = None,
boundary_conditions = None,
refinement_criterion = None,
initial_conditions = None,
source_term = None,
memory_location = None,
use_split_loop = False,
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.

If you pass in None_Implementation, it will create nop, i.e., no implementation or defaults. Any other string is copied 1:1 into the implementation. If you pass in None, then the set value so far won't be overwritten.

Please note that not all options are supported by all solvers.

This routine should be the very last invoked by the constructor.

Definition at line 98 of file LocalTimeStepWithEnclaveTasking.py.

References solvers.aderdg.AbstractSolverDeclarations.AbstractSolverDeclarations._eigenvalues_implementation, solvers.aderdg.AbstractSolverDefinitions.AbstractSolverDefinitions._eigenvalues_implementation, solvers.aderdg.ADERDG.ADERDG._eigenvalues_implementation, solvers.aderdg.SolverDeclarations.SolverDeclarations._eigenvalues_implementation, solvers.aderdg.SolverDefinitions.SolverDefinitions._eigenvalues_implementation, solvers.fv.musclhancock.GlobalAdaptiveTimeStep.GlobalAdaptiveTimeStep._eigenvalues_implementation, solvers.fv.musclhancock.GlobalFixedTimeStep.GlobalFixedTimeStep._eigenvalues_implementation, solvers.fv.riemann.GlobalAdaptiveTimeStep.GlobalAdaptiveTimeStep._eigenvalues_implementation, solvers.fv.riemann.GlobalAdaptiveTimeStepWithEnclaveTasking.GlobalAdaptiveTimeStepWithEnclaveTasking._eigenvalues_implementation, solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep._eigenvalues_implementation, solvers.fv.riemann.GlobalFixedTimeStepWithEnclaveTasking.GlobalFixedTimeStepWithEnclaveTasking._eigenvalues_implementation, solvers.fv.rusanov.GlobalAdaptiveTimeStep.GlobalAdaptiveTimeStep._eigenvalues_implementation, solvers.fv.rusanov.GlobalAdaptiveTimeStepWithEnclaveTasking.GlobalAdaptiveTimeStepWithEnclaveTasking._eigenvalues_implementation, solvers.fv.rusanov.GlobalFixedTimeStep.GlobalFixedTimeStep._eigenvalues_implementation, solvers.fv.rusanov.GlobalFixedTimeStepWithEnclaveTasking.GlobalFixedTimeStepWithEnclaveTasking._eigenvalues_implementation, _eigenvalues_implementation, solvers.aderdg.AbstractSolverDeclarations.AbstractSolverDeclarations._flux_implementation, solvers.aderdg.AbstractSolverDefinitions.AbstractSolverDefinitions._flux_implementation, solvers.aderdg.ADERDG.ADERDG._flux_implementation, solvers.aderdg.SolverDeclarations.SolverDeclarations._flux_implementation, solvers.aderdg.SolverDefinitions.SolverDefinitions._flux_implementation, solvers.fv.musclhancock.GlobalAdaptiveTimeStep.GlobalAdaptiveTimeStep._flux_implementation, solvers.fv.musclhancock.GlobalFixedTimeStep.GlobalFixedTimeStep._flux_implementation, solvers.fv.riemann.GlobalAdaptiveTimeStep.GlobalAdaptiveTimeStep._flux_implementation, solvers.fv.riemann.GlobalAdaptiveTimeStepWithEnclaveTasking.GlobalAdaptiveTimeStepWithEnclaveTasking._flux_implementation, solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep._flux_implementation, solvers.fv.riemann.GlobalFixedTimeStepWithEnclaveTasking.GlobalFixedTimeStepWithEnclaveTasking._flux_implementation, solvers.fv.rusanov.GlobalAdaptiveTimeStep.GlobalAdaptiveTimeStep._flux_implementation, solvers.fv.rusanov.GlobalAdaptiveTimeStepWithEnclaveTasking.GlobalAdaptiveTimeStepWithEnclaveTasking._flux_implementation, solvers.fv.rusanov.GlobalFixedTimeStep.GlobalFixedTimeStep._flux_implementation, solvers.fv.rusanov.GlobalFixedTimeStepWithEnclaveTasking.GlobalFixedTimeStepWithEnclaveTasking._flux_implementation, _flux_implementation, solvers.aderdg.AbstractSolverDeclarations.AbstractSolverDeclarations._ncp_implementation, solvers.aderdg.AbstractSolverDefinitions.AbstractSolverDefinitions._ncp_implementation, solvers.aderdg.ADERDG.ADERDG._ncp_implementation, solvers.aderdg.SolverDeclarations.SolverDeclarations._ncp_implementation, solvers.aderdg.SolverDefinitions.SolverDefinitions._ncp_implementation, solvers.fv.musclhancock.GlobalAdaptiveTimeStep.GlobalAdaptiveTimeStep._ncp_implementation, solvers.fv.musclhancock.GlobalFixedTimeStep.GlobalFixedTimeStep._ncp_implementation, solvers.fv.riemann.GlobalAdaptiveTimeStep.GlobalAdaptiveTimeStep._ncp_implementation, solvers.fv.riemann.GlobalAdaptiveTimeStepWithEnclaveTasking.GlobalAdaptiveTimeStepWithEnclaveTasking._ncp_implementation, solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep._ncp_implementation, solvers.fv.riemann.GlobalFixedTimeStepWithEnclaveTasking.GlobalFixedTimeStepWithEnclaveTasking._ncp_implementation, solvers.fv.rusanov.GlobalAdaptiveTimeStep.GlobalAdaptiveTimeStep._ncp_implementation, solvers.fv.rusanov.GlobalAdaptiveTimeStepWithEnclaveTasking.GlobalAdaptiveTimeStepWithEnclaveTasking._ncp_implementation, solvers.fv.rusanov.GlobalFixedTimeStep.GlobalFixedTimeStep._ncp_implementation, solvers.fv.rusanov.GlobalFixedTimeStepWithEnclaveTasking.GlobalFixedTimeStepWithEnclaveTasking._ncp_implementation, _ncp_implementation, solvers.aderdg.AbstractSolverDeclarations.AbstractSolverDeclarations._source_term_implementation, solvers.aderdg.AbstractSolverDefinitions.AbstractSolverDefinitions._source_term_implementation, solvers.aderdg.ADERDG.ADERDG._source_term_implementation, solvers.aderdg.SolverDeclarations.SolverDeclarations._source_term_implementation, solvers.aderdg.SolverDefinitions.SolverDefinitions._source_term_implementation, solvers.fv.musclhancock.GlobalAdaptiveTimeStep.GlobalAdaptiveTimeStep._source_term_implementation, solvers.fv.musclhancock.GlobalFixedTimeStep.GlobalFixedTimeStep._source_term_implementation, solvers.fv.riemann.GlobalAdaptiveTimeStep.GlobalAdaptiveTimeStep._source_term_implementation, solvers.fv.riemann.GlobalAdaptiveTimeStepWithEnclaveTasking.GlobalAdaptiveTimeStepWithEnclaveTasking._source_term_implementation, solvers.fv.riemann.GlobalFixedTimeStep.GlobalFixedTimeStep._source_term_implementation, solvers.fv.riemann.GlobalFixedTimeStepWithEnclaveTasking.GlobalFixedTimeStepWithEnclaveTasking._source_term_implementation, solvers.fv.rusanov.GlobalAdaptiveTimeStep.GlobalAdaptiveTimeStep._source_term_implementation, solvers.fv.rusanov.GlobalAdaptiveTimeStepWithEnclaveTasking.GlobalAdaptiveTimeStepWithEnclaveTasking._source_term_implementation, solvers.fv.rusanov.GlobalFixedTimeStep.GlobalFixedTimeStep._source_term_implementation, solvers.fv.rusanov.GlobalFixedTimeStepWithEnclaveTasking.GlobalFixedTimeStepWithEnclaveTasking._source_term_implementation, and _source_term_implementation.

◆ user_action_set_includes()

solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking.user_action_set_includes ( self)

Field Documentation

◆ _abstract_solver_user_declarations

solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking._abstract_solver_user_declarations = create_abstract_solver_declarations(self._flux_implementation, self._ncp_implementation, self._eigenvalues_implementation, self._source_term_implementation, self._pde_terms_without_state)
protected

◆ _abstract_solver_user_definitions

solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking._abstract_solver_user_definitions = create_abstract_solver_definitions(self._flux_implementation, self._ncp_implementation, self._eigenvalues_implementation, self._source_term_implementation, self._pde_terms_without_state)
protected

◆ _auxiliary_variables

◆ _compute_eigenvalue

bool solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking._compute_eigenvalue = True
protected

◆ _compute_kernel_call

solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking._compute_kernel_call
protected
Initial value:
= create_compute_Riemann_kernel_for_Rusanov_dsl(
self._flux_implementation,
self._ncp_implementation,
self._source_term_implementation,
compute_max_eigenvalue_of_next_time_step = True,
solver_variant = SolverVariant.WithVirtualFunctions,
kernel_variant = KernelVariant.PatchWiseAoS
)

Definition at line 132 of file LocalTimeStepWithEnclaveTasking.py.

◆ _compute_kernel_call_stateless

solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking._compute_kernel_call_stateless
protected
Initial value:
= create_compute_Riemann_kernel_for_Rusanov_dsl(
self._flux_implementation,
self._ncp_implementation,
self._source_term_implementation,
compute_max_eigenvalue_of_next_time_step = True,
solver_variant = SolverVariant.Stateless,
kernel_variant = KernelVariant.PatchWiseAoS
)

Definition at line 141 of file LocalTimeStepWithEnclaveTasking.py.

◆ _compute_new_time_step_size

solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking._compute_new_time_step_size = create_compute_new_time_step_size_kernel_for_local_time_stepping(time_step_relaxation,avoid_staircase_effect,discretisation_steps)
protected

◆ _compute_time_step_size

solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking._compute_time_step_size = create_compute_time_step_size_kernel_for_local_time_stepping( name, time_step_relaxation )
protected

◆ _constructor_implementation

solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking._constructor_implementation = create_constructor_implementation_for_local_time_stepping()
protected

◆ _eigenvalues_implementation

◆ _finish_time_step_implementation

solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking._finish_time_step_implementation = create_finish_time_step_implementation_for_local_time_stepping()
protected

◆ _flux_implementation

◆ _fused_compute_kernel_call_stateless_cpu

solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking._fused_compute_kernel_call_stateless_cpu
protected
Initial value:
= create_compute_Riemann_kernel_for_Rusanov_dsl(
self._flux_implementation,
self._ncp_implementation,
self._source_term_implementation,
compute_max_eigenvalue_of_next_time_step = True,
solver_variant = SolverVariant.Stateless,
kernel_variant = KernelVariant.PatchWiseAoS
)

Definition at line 150 of file LocalTimeStepWithEnclaveTasking.py.

◆ _fused_compute_kernel_call_stateless_gpu

solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking._fused_compute_kernel_call_stateless_gpu
protected
Initial value:
= create_compute_Riemann_kernel_for_Rusanov_dsl(
self._flux_implementation,
self._ncp_implementation,
self._source_term_implementation,
compute_max_eigenvalue_of_next_time_step = True,
solver_variant = SolverVariant.Accelerator,
kernel_variant = KernelVariant.PatchWiseAoS
)

Definition at line 159 of file LocalTimeStepWithEnclaveTasking.py.

◆ _interpolate_linearly_in_time

◆ _ncp_implementation

◆ _patch_size

solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking._patch_size
protected

Definition at line 123 of file LocalTimeStepWithEnclaveTasking.py.

◆ _solver_user_declarations

solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking._solver_user_declarations = create_solver_declarations(self._flux_implementation, self._ncp_implementation, self._eigenvalues_implementation, self._source_term_implementation, self._pde_terms_without_state)
protected

◆ _solver_user_definitions

solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking._solver_user_definitions = create_solver_definitions(self._flux_implementation, self._ncp_implementation, self._eigenvalues_implementation, self._source_term_implementation, self._pde_terms_without_state)
protected

◆ _source_term_implementation

◆ _start_time_step_implementation

solvers.fv.rusanov.LocalTimeStepWithEnclaveTasking.LocalTimeStepWithEnclaveTasking._start_time_step_implementation = create_start_time_step_implementation_for_local_time_stepping(True)
protected

◆ _time_step_relaxation

◆ _unknowns


The documentation for this class was generated from the following file: