3 from exahype2.solvers.PDETerms
import PDETerms
5 import os, shutil, jinja2
8 domain_offset = [1., 1., 1.]
9 domain_size = [1., 1., 1.]
13 tracer_coordinates = []
16 return PDETerms.User_Defined_Implementation
22 print(os.path.split(template_file)[0])
23 template_loader = jinja2.FileSystemLoader(searchpath=os.path.split(template_file)[0])
24 templateEnv = jinja2.Environment(loader=template_loader, undefined=jinja2.DebugUndefined)
25 template = templateEnv.get_template( os.path.split(template_file)[1] )
27 with open( full_qualified_filename,
"w" )
as output:
28 output.write( template.render(dictionary) )
33 shutil.copyfile(current_filename, full_qualified_filename)
def initial_conditions(self)
def generate_required_files(self, order)
def generate_file_from_template(self, template_file, full_qualified_filename, dictionary)
def copy_file_to_current_folder(self, current_filename, full_qualified_filename)