Skip to content
Snippets Groups Projects
Commit c5e58e2c authored by lkugler's avatar lkugler
Browse files

dynamic run wrf path

parent 43d862e0
Branches
Tags
No related merge requests found
...@@ -159,7 +159,8 @@ def run_ENS(begin, end, depends_on=None, first_minute=True, ...@@ -159,7 +159,8 @@ def run_ENS(begin, end, depends_on=None, first_minute=True,
runtime_wallclock_mins_expected = int(8+time_in_simulation_hours*9.5) # usually below 9 min/hour runtime_wallclock_mins_expected = int(8+time_in_simulation_hours*9.5) # usually below 9 min/hour
s = my_Slurm("runWRF2", cfg_update={"nodes": "1", "array": "1-"+str(exp.n_nodes), s = my_Slurm("runWRF2", cfg_update={"nodes": "1", "array": "1-"+str(exp.n_nodes),
"time": str(runtime_wallclock_mins_expected), "mem-per-cpu": "2G"}) "time": str(runtime_wallclock_mins_expected), "mem-per-cpu": "2G"})
cmd = script_to_str(cluster.run_WRF).replace('<expname>', exp.expname) cmd = script_to_str(cluster.run_WRF).replace('<exp.expname>', exp.expname
).replace('cluster.wrf_rundir_base', cluster.wrf_rundir_base)
id = s.run(cmd, depends_on=[id]) id = s.run(cmd, depends_on=[id])
return id return id
......
...@@ -5,9 +5,9 @@ export SLURM_STEP_GRES=none ...@@ -5,9 +5,9 @@ export SLURM_STEP_GRES=none
## $SLURM_ARRAY_TASK_ID ## $SLURM_ARRAY_TASK_ID
echo "SLURM_ARRAY_TASK_ID:"$SLURM_ARRAY_TASK_ID echo "SLURM_ARRAY_TASK_ID:"$SLURM_ARRAY_TASK_ID
EXPNAME=<expname> EXPNAME=<exp.expname>
MAINDIR=/gpfs/data/fs71386/lkugler/run_WRF MAINDIR=<cluster.wrf_rundir_base>
pinning=(0-11 12-23 24-35 36-47) pinning=(0-11 12-23 24-35 36-47)
for ((n=1; n<=4; n++)) for ((n=1; n<=4; n++))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment