|
Peano
|
Adapter that speaks the construct_output(output, main_name) protocol peano4.api.Project.generate() expects from its main attribute (see peano4.api.runner.DefaultSequence, whose job this class takes over for an ExaHyPE 2 project), but fills the header/implementation pair with ExaHyPE-flavoured content instead of the mesh-agnostic default. More...
Public Member Functions | |
| __init__ (self, project, exahype_project) | |
| construct_output (self, output, main_name) | |
Data Fields | |
| project | |
| exahype_project | |
Static Public Attributes | |
| str | HEADER_TEMPLATE |
| str | CPP_TEMPLATE |
Adapter that speaks the construct_output(output, main_name) protocol peano4.api.Project.generate() expects from its main attribute (see peano4.api.runner.DefaultSequence, whose job this class takes over for an ExaHyPE 2 project), but fills the header/implementation pair with ExaHyPE-flavoured content instead of the mesh-agnostic default.
project is the peano4-level project (peano4.api.Project) this sequence is attached to as .main - it is where SUBDIRECTORIES/SUBNAMESPACE/ rootnamespace come from, mirroring peano4.api.runner.DefaultSequence.
exahype_project is the exahype2.api.Project this main file is generated for - it is where the runtime settings (TIMEOUT, NUMBER_OF_THREADS, GPUS, MULTICORE_ORCHESTRATION) come from, as those live on the ExaHyPE 2 project rather than on the plain peano4 one.
Definition at line 41 of file DefaultSimulationMain.py.
| exahype2.api.generators.DefaultSimulationMain._ExaHyPEMainFileSequence.__init__ | ( | self, | |
| project, | |||
| exahype_project | |||
| ) |
Definition at line 194 of file DefaultSimulationMain.py.
| exahype2.api.generators.DefaultSimulationMain._ExaHyPEMainFileSequence.construct_output | ( | self, | |
| output, | |||
| main_name | |||
| ) |
Definition at line 198 of file DefaultSimulationMain.py.
References exahype2.api.generators.DefaultSimulationMain._ExaHyPEMainFileSequence.CPP_TEMPLATE, exahype2.api.generators.KernelMicrobenchmarkMain._ExaHyPEKernelBenchmarkMainFileSequence.CPP_TEMPLATE, exahype2.api.generators.DefaultSimulationMain._ExaHyPEMainFileSequence.exahype_project, exahype2.api.generators.KernelMicrobenchmarkMain._ExaHyPEKernelBenchmarkMainFileSequence.exahype_project, exahype2.api.generators.DefaultSimulationMain._ExaHyPEMainFileSequence.HEADER_TEMPLATE, exahype2.api.generators.KernelMicrobenchmarkMain._ExaHyPEKernelBenchmarkMainFileSequence.HEADER_TEMPLATE, exahype2.api.generators.DefaultSimulationMain._ExaHyPEMainFileSequence.project, exahype2.api.generators.KernelMicrobenchmarkMain._ExaHyPEKernelBenchmarkMainFileSequence.project, exahype2.api.Project.Project.Generator.project, peano4.api.runner.DefaultSequence.DefaultSequence.project, and peano4.api.solversteps.Step.Step.project.
|
static |
| exahype2.api.generators.DefaultSimulationMain._ExaHyPEMainFileSequence.exahype_project |
|
static |
Definition at line 61 of file DefaultSimulationMain.py.
Referenced by exahype2.api.generators.DefaultSimulationMain._ExaHyPEMainFileSequence.construct_output(), and exahype2.api.generators.KernelMicrobenchmarkMain._ExaHyPEKernelBenchmarkMainFileSequence.construct_output().
| exahype2.api.generators.DefaultSimulationMain._ExaHyPEMainFileSequence.project |
Definition at line 195 of file DefaultSimulationMain.py.
Referenced by exahype2.api.generators.DefaultSimulationMain._ExaHyPEMainFileSequence.construct_output(), exahype2.api.generators.KernelMicrobenchmarkMain._ExaHyPEKernelBenchmarkMainFileSequence.construct_output(), peano4.api.runner.DefaultSequence.DefaultSequence.construct_output(), exahype2.api.generators.DefaultSimulationMain.DefaultSimulationMain.construct_output(), exahype2.api.generators.KernelMicrobenchmarkMain.KernelMicrobenchmarkMain.construct_output(), and exahype2.api.generators.SolverRepositoryGenerator.SolverRepositoryGenerator.construct_output().