Peano
Loading...
Searching...
No Matches
exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEulerGenerator Class Reference
Inheritance diagram for exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEulerGenerator:
Collaboration diagram for exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEulerGenerator:

Public Member Functions

 construct_output (self, exahype2_project, peano_project, time_step, add_global_tasks=True)
Public Member Functions inherited from exahype2.api.Solver.Solver.NumericalScheme.NumericalSchemeGenerator
 __init__ (self, Solver solver, list[tuple[Target, bool]] configurations)
 reset_configurations (self, Target target, bool stateless)
 add_configuration (self, Target target, bool stateless)

Private Member Functions

 __create_time_step_functions (self, exahype2_project, peano4_project)
 Calling this function is delayed until all PDE term information is provided.
 __construct_kernel_calls (self)
 __construct_kernel_call (self, Target target, bool stateless, OutputLanguage language, MemoryLayout memory_layout, str function_name=None)
 This function constructs the calls to the compute kernels based on the application PDE terms and the version chosen.

Additional Inherited Members

Protected Attributes inherited from exahype2.api.Solver.Solver.NumericalScheme.NumericalSchemeGenerator
 _solver = solver
 _configurations = configurations

Detailed Description

Definition at line 535 of file RusanovWithExplicitEuler.py.

Member Function Documentation

◆ __construct_kernel_call()

exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEulerGenerator.__construct_kernel_call ( self,
Target target,
bool stateless,
OutputLanguage language,
MemoryLayout memory_layout,
str function_name = None )
private

This function constructs the calls to the compute kernels based on the application PDE terms and the version chosen.

Parameters
function_namestr Unqualified name of the kernel. Defaults to the time step kernel.

Definition at line 924 of file RusanovWithExplicitEuler.py.

References exagrype.api.FD4WithKODissipation.FD4WithKODissipation._solver, exahype2.api.blockstructured.AdaptMeshAndBalanceLoad.AdaptMeshAndBalanceLoad._solver, exahype2.api.blockstructured.ConsumeRefinementRequests.ConsumeRefinementRequests._solver, exahype2.api.blockstructured.DynamicMeshRefinement.DynamicMeshRefinement._solver, exahype2.api.blockstructured.LoadCheckpoint._LoadPatchesFromCheckpoint._solver, exahype2.api.blockstructured.LoadCheckpoint.LoadCheckpoint._solver, exahype2.api.fv.actionsets.AbstractFVActionSet.AbstractFVActionSet._solver, exahype2.api.fv.actionsets.ApplyDirichletBoundaryConditions.ApplyDirichletBoundaryConditions._solver, exahype2.api.fv.actionsets.DiscardPatchInterior.DiscardPatchInterior._solver, exahype2.api.fv.AdaptMeshAndBalanceLoad.AdaptMeshAndBalanceLoad._solver, exahype2.api.fv.PlotAsVTKFile.PlotAsVTKFile._solver, exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEuler._solver, and _solver.

Referenced by __construct_kernel_calls(), exahype2.api.fv.RusanovWithOptimisticExplicitEuler.RusanovWithOptimisticExplicitEuler.construct_output(), and exahype2.api.rkfd4.CentralDifferencesWithRungeKutta.CentralDifferencesWithRungeKutta.construct_output().

Here is the caller graph for this function:

◆ __construct_kernel_calls()

exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEulerGenerator.__construct_kernel_calls ( self)
private

Definition at line 918 of file RusanovWithExplicitEuler.py.

References __construct_kernel_call(), and _configurations.

Here is the call graph for this function:

◆ __create_time_step_functions()

exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEulerGenerator.__create_time_step_functions ( self,
exahype2_project,
peano4_project )
private

Calling this function is delayed until all PDE term information is provided.

In this way we can avoid generating code that will not be used. The following information is required to translate a Python function using dslhype:

  • template_parameters: the variables that are used within the Python function to represent external information
  • functor_parameters: the PDE terms that can be used by the solver
  • function: the Python function itself

TODO: Currently the MLIR types are passed manually here, this should ideally be inferred

Definition at line 730 of file RusanovWithExplicitEuler.py.

References _configurations, exagrype.api.FD4WithKODissipation.FD4WithKODissipation._solver, exahype2.api.blockstructured.AdaptMeshAndBalanceLoad.AdaptMeshAndBalanceLoad._solver, exahype2.api.blockstructured.ConsumeRefinementRequests.ConsumeRefinementRequests._solver, exahype2.api.blockstructured.DynamicMeshRefinement.DynamicMeshRefinement._solver, exahype2.api.blockstructured.LoadCheckpoint._LoadPatchesFromCheckpoint._solver, exahype2.api.blockstructured.LoadCheckpoint.LoadCheckpoint._solver, exahype2.api.fv.actionsets.AbstractFVActionSet.AbstractFVActionSet._solver, exahype2.api.fv.actionsets.ApplyDirichletBoundaryConditions.ApplyDirichletBoundaryConditions._solver, exahype2.api.fv.actionsets.DiscardPatchInterior.DiscardPatchInterior._solver, exahype2.api.fv.AdaptMeshAndBalanceLoad.AdaptMeshAndBalanceLoad._solver, exahype2.api.fv.PlotAsVTKFile.PlotAsVTKFile._solver, exahype2.api.fv.RusanovWithExplicitEuler.RusanovWithExplicitEuler._solver, and _solver.

Referenced by exahype2.api.fv.RusanovWithOptimisticExplicitEuler.RusanovWithOptimisticExplicitEuler.construct_output().

Here is the caller graph for this function:

◆ construct_output()


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