Skip to content

Commit

Permalink
By default use mpirun for runs when doing diagnostics tests. mom-ocea…
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Hannah committed Nov 17, 2016
1 parent 32d8fe3 commit 4bb826c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tools/tests/run_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
import os

def get_exec_prefix(model, exp_name, variation):
"""
Return a prefix needed to execute the given experiment.
"""
Return a prefix needed to execute the given experiment.
model is the model configuration, e.g. ice_ocean_SIS2 or ocean_only
exp_name is the experiment name, e.g. Baltic or global_ALE
variation is the a variation on the experiment, e.g. z, layer.
"""
model is the model configuration, e.g. ice_ocean_SIS2 or ocean_only
exp_name is the experiment name, e.g. Baltic or global_ALE
variation is the a variation on the experiment, e.g. z, layer.
"""

exec_prefix = ''
exec_prefix = 'mpirun -n 2'

pbs_o_host = os.getenv('PBS_O_HOST')
if pbs_o_host is not None and 'gaea' in pbs_o_host:
exec_prefix = 'aprun -n 1'
pbs_o_host = os.getenv('PBS_O_HOST')
if pbs_o_host is not None and 'gaea' in pbs_o_host:
exec_prefix = 'aprun -n 1'

return exec_prefix
return exec_prefix

0 comments on commit 4bb826c

Please sign in to comment.