diff --git a/scheduler.py b/scheduler.py index 40f7678482875fea4c889614d97f46585be8db91..d02b2d65b3077df9cf3b59a3f93376274e3d00f5 100755 --- a/scheduler.py +++ b/scheduler.py @@ -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 s = my_Slurm("runWRF2", cfg_update={"nodes": "1", "array": "1-"+str(exp.n_nodes), "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]) return id diff --git a/scripts/run_ens.vsc.sh b/scripts/run_ens.vsc.sh index f93de8254f7dd3d7bd39837fbbd2a7a99cd258bd..ab74cd4f6331787b57967ac3bc7e8182ba0d355d 100755 --- a/scripts/run_ens.vsc.sh +++ b/scripts/run_ens.vsc.sh @@ -5,9 +5,9 @@ export SLURM_STEP_GRES=none ## $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) for ((n=1; n<=4; n++))