From 64f887f17996b1916100f45f25cb76b960ac238e Mon Sep 17 00:00:00 2001 From: lkugler <lukas.kugler@gmail.com> Date: Wed, 21 Jun 2023 14:43:43 +0200 Subject: [PATCH] avoid error if log doesnt exist --- dartwrf/workflows.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dartwrf/workflows.py b/dartwrf/workflows.py index 5c8877c..fca66c8 100644 --- a/dartwrf/workflows.py +++ b/dartwrf/workflows.py @@ -184,9 +184,12 @@ class WorkFlows(object): mpirun -np 1 ./ideal.exe & done wait + + # move log file to sim_archive for ((n=1; n<="""+str(self.exp.n_ens)+"""; n++)) do rundir="""+self.cluster.wrf_rundir_base+'/'+self.exp.expname+"""/$n + touch -a $rundir/rsl.out.0000 # create log file if it doesnt exist, to avoid error in mv if it doesnt exist mv $rundir/rsl.out.0000 $rundir/rsl.out.input done """ -- GitLab