From d968833b395acc38eca22aa25e29430f41aa7ca7 Mon Sep 17 00:00:00 2001 From: Dethinne Thomas <tdethinne@uliege.be> Date: Thu, 5 Dec 2024 09:04:49 +0000 Subject: [PATCH] the MARglf.nc was not exported at the end of the run and thus not availaible at the first time of a slice --- couplage/MAR_n5 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/couplage/MAR_n5 b/couplage/MAR_n5 index d660dde..cce4578 100644 --- a/couplage/MAR_n5 +++ b/couplage/MAR_n5 @@ -1094,6 +1094,9 @@ BCH " " BCH "smget \"$CARfil\" \"$CARcou\" \"\${WRKdir}\"" BCH "tar -xzf \"\${WRKdir}\"/\"$CARcou\"" BCH "rm -rf \${WRKdir}/CARAIB_couplage.tar.gz" +BCH "if [ -f "CARAIB_couplage/MARglf.nc" ]; then" +BCH " mv CARAIB_couplage/MARglf.nc ." +BCH "fi" # BCH " " # BCH "rm -rf \${WRKdir}/CARAIB_couplage/results/Belgium/*" # BCH " " @@ -1623,12 +1626,14 @@ echo "Back up the caraib files" BCH " for fil in \`ls *CAR*.nc\` ; do" BCH " smput \"\${WRKdir}\" \"\$fil\" \"$STKcar\"" BCH " done" - +BCH #Back up of the results in .res BCH " for fil in \`ls CARAIB_couplage/results/Belgium/*${yr}*\` ; do" BCH " smput \"\${WRKdir}/\" \"\$fil\" \"$STKcar\"" BCH " done" - +BCH +BCH " mv -f MARglf.nc CARAIB_couplage/ " +BCH BCH " tar -czf \${WRKdir}/CARAIB_couplage.tar.gz \${WRKdir}/CARAIB_couplage " BCH " smput \"\${WRKdir}/\" \"CARAIB_couplage.tar.gz\" \"$CARfil\"" -- GitLab