MoDeNa  1.0
Software framework facilitating sequential multi-scale modelling
workflow.py
1 #!/usr/bin/python
2 
40 
41 import modena
42 from fireworks import Firework, Workflow, LaunchPad
43 from fireworks.core.rocket_launcher import rapidfire
44 from modulefinder import ModuleFinder
45 
46 from modena.Strategy import BackwardMappingScriptTask
47 import os
48 
49 # Source code in src/twoTanksMacroscopicProblem.C
50 SIMULATION = BackwardMappingScriptTask(
51  script='../run.sh'
52 )
53 
54 
55 # set up the LaunchPad and reset it
56 launchpad = LaunchPad()
57 launchpad.reset('', require_password=False)
58 
59 # create the individual FireWorks and Workflow
60 # Source code in src/twoTanksMacroscopicProblem.C
61 wf = Workflow([Firework(SIMULATION)], {}, name="simulation")
62 
63 # store workflow and launch it locally
64 launchpad.add_wf(wf)
65 rapidfire(launchpad)
66