Peano
Loading...
Searching...
No Matches
exahype2.api.generators.DefaultSimulationMain._ExaHyPEMainFileSequence Class Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

exahype2.api.generators.DefaultSimulationMain._ExaHyPEMainFileSequence.__init__ (   self,
  project,
  exahype_project 
)

Definition at line 194 of file DefaultSimulationMain.py.

Member Function Documentation

◆ construct_output()

Field Documentation

◆ CPP_TEMPLATE

str exahype2.api.generators.DefaultSimulationMain._ExaHyPEMainFileSequence.CPP_TEMPLATE
static

◆ exahype_project

◆ HEADER_TEMPLATE

str exahype2.api.generators.DefaultSimulationMain._ExaHyPEMainFileSequence.HEADER_TEMPLATE
static
Initial value:
= """
// This file is part of the ExaHyPE2 project. For conditions of distribution and
// use, please see the copyright notice at www.peano-framework.org
#pragma once
int main(int argc, char** argv);
"""

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().

◆ project


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