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

avoid error if log doesnt exist

parent fe0bad23
Branches
Tags
No related merge requests found
......@@ -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
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment