Commit 7cbaa8ee authored by Chichi Lalescu's avatar Chichi Lalescu
Browse files

add launch functionality to DNS

parent 7d4973c7
This diff is collapsed.
......@@ -2,9 +2,22 @@ from bfps.DNS import DNS
def main():
niterations = 16
nparticles = 100
c = DNS(dns_type = 'NSVEp')
c.write_src()
c.compile_code()
c.launch(
['-n', '32',
'--simname', 'vorticity_equation',
'--np', '4',
'--ntpp', '1',
'--niter_todo', '{0}'.format(niterations),
'--niter_out', '{0}'.format(niterations),
'--niter_stat', '1',
'--checkpoints_per_file', '{0}'.format(3),
'--nparticles', '{0}'.format(nparticles),
'--particle-rand-seed', '2',
#'--njobs', '2',
'--wd', './'])
return None
if __name__ == '__main__':
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment