Peano
Loading...
Searching...
No Matches
MatrixFreeMain.py
Go to the documentation of this file.
2import os
3
5 def __init__(self,
6 project,
7 domain_offset,
8 domain_size,
9 plot_each_timestep,
10 max_iterations
11 ):
12 super(MatrixFreeMain,self).__init__(project)
14
15 self.d[ "Project_Name"] = project.project_name
16 self.d[ "DomainOffset" ] = "{" + str(domain_offset[0])
17 self.d[ "DomainSize" ] = "{" + str(domain_size[0])
18 for i in domain_offset[1:]:
19 self.d[ "DomainOffset" ] += ", "
20 self.d[ "DomainOffset" ] += str(i)
21 for i in domain_size[1:]:
22 self.d[ "DomainSize" ] += ", "
23 self.d[ "DomainSize" ] += str(i)
24 self.d[ "DomainOffset" ] += "}"
25 self.d[ "DomainSize" ] += "}"
26
27 self.d["PlotEachTimeStep"] = plot_each_timestep
28 self.d["MAXITERATIONS"] = max_iterations
29
31 templatefile_prefix = os.path.realpath(__file__).replace( ".pyc", "" ).replace( ".py", "" )
32 return templatefile_prefix+".template.h"
33
35 templatefile_prefix = os.path.realpath(__file__).replace( ".pyc", "" ).replace( ".py", "" )
36 return templatefile_prefix+".template.cpp"
__init__(self, project, domain_offset, domain_size, plot_each_timestep, max_iterations)
The default sequence sketches what Peano does if there's no main.