Skip to content
Snippets Groups Projects
Commit 736a941f authored by Peters, Wouter's avatar Peters, Wouter
Browse files

testing MPI on jet now

parent 9f9f37b3
No related branches found
No related tags found
No related merge requests found
......@@ -207,6 +207,7 @@ class TM5(object):
only if successfull on all processors will execution of the shell continue.
"""
from string import join
cwd = os.getcwd()
targetdir = os.path.join(self.tm_settings['rundir'])
......@@ -234,11 +235,12 @@ class TM5(object):
# Open logfile and spawn model, wait for finish and return code
logging.info('Starting model executable as subprocess ')
#cmd = ['openmpirun','-np', '10', mpi_shell_filename,'./tm5.x']
cmd = ['mpirun','-np',str(nprocesses),mpi_shell_filename,'./tm5.x']
#cmd = ['./tm5.x']
code = subprocess.call(cmd,stdout=modellogfile,stderr=modellogfile)
#cmd = ['openmpirun','-np', '10', mpi_shell_filename,'./tm5.x']
cmd = ['mpirun','-np',str(nprocesses),mpi_shell_filename,'./tm5.x']
#cmd = ['./tm5.x']
msg = 'Starting model executable as subprocess (%s)'%join(cmd,' ') ; logging.info(msg)
code = subprocess.call(cmd,stdout=modellogfile,stderr=modellogfile)
modellogfile.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment