Peano
Loading...
Searching...
No Matches
ExaPartyMain.py
Go to the documentation of this file.
1# This file is part of the ExaHyPE2 project. For conditions of distribution and
2# use, please see the copyright notice at www.peano-framework.org
4import os
5
6
8 def __init__(self,project,initialisation_steps,solver_steps,overwrite=False):
9 """
10
11 solversteps: [peano4.api.solversteps.Steps]
12
13 overwrite: Boolean
14 Shall I keep an existing main, or shall I overwrite it. You can reset this
15 behaviour after you've created the main object.
16
17 """
18 super(ExaPartyMain,self).__init__(project)
19 self.overwriteoverwrite = overwrite
20 self.d[ "SOLVERSTEP_NAMES" ] = [x.name for x in solver_steps]
21 self.d[ "INITIALISATIONSTEP_NAMES" ] = [x.name for x in initialisation_steps]
22
23
25 return os.path.dirname(__file__) + "/ExaPartyMain.template.h"
26
27
29 return os.path.dirname(__file__) + "/ExaPartyMain.template.cpp"
30
__init__(self, project, initialisation_steps, solver_steps, overwrite=False)
solversteps: [peano4.api.solversteps.Steps]
The default sequence sketches what Peano does if there's no main.