Peano
Loading...
Searching...
No Matches
PETScMain.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
9 def __init__(self,
10 project,
11 domain_offset,
12 domain_size
13 ):
14 """
15
16 project: peano4.Project
17
18 """
19 super(PETScMain,self).__init__(project)
21
22 self.d[ "Project_Name"] = project.project_name
23 self.d[ "DomainOffset" ] = "{" + str(domain_offset[0])
24 self.d[ "DomainSize" ] = "{" + str(domain_size[0])
25 for i in domain_offset[1:]:
26 self.d[ "DomainOffset" ] += ", "
27 self.d[ "DomainOffset" ] += str(i)
28 for i in domain_size[1:]:
29 self.d[ "DomainSize" ] += ", "
30 self.d[ "DomainSize" ] += str(i)
31 self.d[ "DomainOffset" ] += "}"
32 self.d[ "DomainSize" ] += "}"
33
35 templatefile_prefix = os.path.realpath(__file__).replace( ".pyc", "" ).replace( ".py", "" )
36 return templatefile_prefix+".template.h"
37
38
40 templatefile_prefix = os.path.realpath(__file__).replace( ".pyc", "" ).replace( ".py", "" )
41 return templatefile_prefix+".template.cpp"
42
__init__(self, project, domain_offset, domain_size)
project: peano4.Project
Definition PETScMain.py:13
_get_implementation_file_template(self)
Definition PETScMain.py:39
The default sequence sketches what Peano does if there's no main.