Class implementing a TestProgram object representing the simulation to run.
Parameters: |
|
---|
Example1:
p1 = UniformParameter('x', 'x', min=-2, max=2)
p2 = UniformParameter('y', 'y', min=-2, max=2)
prog = TestProgram('./rosen_prog.py', desc='Rosenbrock Function')
# or, the equivalent using template strings
prog = TestProgram(exe='./rosen_prog.py --x=$x --y=$y',
desc='Rosenbrock Function')
Example2:
# Using newdir and infiles. Will run each job in a new directory
# with a copy of all the infiles.
prog = TestProgram('PM2', newdir=True, desc='MPM Scaling',
infiles=['pm2geometry', 'pm2input', 'pmgrid_geom.nc',
'pmpart_geom.nc'])