|
Peano
|
Code snippet generator for all subcycling solvers. More...


Public Member Functions | |
| __init__ (self, remove_accumulation_errors) | |
| create_abstract_solver_user_declarations (self) | |
| create_abstract_solver_user_definitions (self) | |
| create_abstract_solver_constructor_statements (self) | |
| create_compute_time_step_size (self) | |
| Within the actual compute kernels, the kernels ask the solver variant how to determine a new field. | |
| create_compute_new_time_step_size (self) | |
| This is global, fixed time stepping, i.e. | |
| create_finish_time_step_implementation (self) | |
| This routine is inserted after we have reduced all global quantities. | |
Public Member Functions inherited from exahype2.solvers.SolverCodeSnippets.SolverCodeSnippets | |
| create_start_time_step_implementation (self) | |
Protected Attributes | |
| _remove_accumulation_errors | |
Code snippet generator for all subcycling solvers.
Definition at line 6 of file FixedSubcyclingTimeSteppingCodeSnippets.py.
| exahype2.solvers.FixedSubcyclingTimeSteppingCodeSnippets.FixedSubcyclingTimeSteppingCodeSnippets.__init__ | ( | self, | |
| remove_accumulation_errors ) |
Reimplemented in exahype2.solvers.fv.FixedSubcyclingTimeSteppingCodeSnippets.FixedSubcyclingTimeSteppingCodeSnippets.
Definition at line 13 of file FixedSubcyclingTimeSteppingCodeSnippets.py.
Referenced by exahype2.solvers.fv.FixedSubcyclingTimeSteppingCodeSnippets.FixedSubcyclingTimeSteppingCodeSnippets.__init__().

| exahype2.solvers.FixedSubcyclingTimeSteppingCodeSnippets.FixedSubcyclingTimeSteppingCodeSnippets.create_abstract_solver_constructor_statements | ( | self | ) |
Reimplemented from exahype2.solvers.SolverCodeSnippets.SolverCodeSnippets.
Definition at line 42 of file FixedSubcyclingTimeSteppingCodeSnippets.py.
| exahype2.solvers.FixedSubcyclingTimeSteppingCodeSnippets.FixedSubcyclingTimeSteppingCodeSnippets.create_abstract_solver_user_declarations | ( | self | ) |
Reimplemented from exahype2.solvers.SolverCodeSnippets.SolverCodeSnippets.
Definition at line 17 of file FixedSubcyclingTimeSteppingCodeSnippets.py.
| exahype2.solvers.FixedSubcyclingTimeSteppingCodeSnippets.FixedSubcyclingTimeSteppingCodeSnippets.create_abstract_solver_user_definitions | ( | self | ) |
Reimplemented from exahype2.solvers.SolverCodeSnippets.SolverCodeSnippets.
Definition at line 26 of file FixedSubcyclingTimeSteppingCodeSnippets.py.
| exahype2.solvers.FixedSubcyclingTimeSteppingCodeSnippets.FixedSubcyclingTimeSteppingCodeSnippets.create_compute_new_time_step_size | ( | self | ) |
This is global, fixed time stepping, i.e.
the new time step size will likely be the same as the previous one, unless the mesh changes, as we work with normalised time step sizes, i.e. in this case the time step size might change. Anyway, the new time step size is only for stats anyway, as we'll pick a global one when we determine timeStepSize the next time step.
Reimplemented from exahype2.solvers.SolverCodeSnippets.SolverCodeSnippets.
Definition at line 66 of file FixedSubcyclingTimeSteppingCodeSnippets.py.
| exahype2.solvers.FixedSubcyclingTimeSteppingCodeSnippets.FixedSubcyclingTimeSteppingCodeSnippets.create_compute_time_step_size | ( | self | ) |
Within the actual compute kernels, the kernels ask the solver variant how to determine a new field.
const double timeStepSize = ...;
You can remove the const if you want. Anyway, this routine has to build up the right time step size choice.
Reimplemented from exahype2.solvers.SolverCodeSnippets.SolverCodeSnippets.
Definition at line 46 of file FixedSubcyclingTimeSteppingCodeSnippets.py.
| exahype2.solvers.FixedSubcyclingTimeSteppingCodeSnippets.FixedSubcyclingTimeSteppingCodeSnippets.create_finish_time_step_implementation | ( | self | ) |
This routine is inserted after we have reduced all global quantities.
These are the quantities with the postfix ThisTimeStep.
Reimplemented from exahype2.solvers.SolverCodeSnippets.SolverCodeSnippets.
Reimplemented in exahype2.solvers.fv.FixedSubcyclingTimeSteppingCodeSnippets.FixedSubcyclingTimeSteppingCodeSnippets.
Definition at line 85 of file FixedSubcyclingTimeSteppingCodeSnippets.py.
|
protected |
Definition at line 14 of file FixedSubcyclingTimeSteppingCodeSnippets.py.
Referenced by exahype2.solvers.FixedSubcyclingTimeSteppingCodeSnippets.FixedSubcyclingTimeSteppingCodeSnippets.create_compute_time_step_size().