From ecf8ce6709b23dc7d517e12f5bd4c4112c156ff2 Mon Sep 17 00:00:00 2001 From: Dethinne Thomas <tdethinne@uliege.be> Date: Fri, 6 Dec 2024 11:26:10 +0000 Subject: [PATCH] Update MAR_n5 --- couplage/MAR_n5 | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/couplage/MAR_n5 b/couplage/MAR_n5 index 3edc558..ea75567 100644 --- a/couplage/MAR_n5 +++ b/couplage/MAR_n5 @@ -1627,14 +1627,15 @@ 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 +#Back up of the results in .res +BCH "for fil in CARAIB_couplage/results/Belgium/*${yr}*; do" +BCH " filename=\$(basename \"\$fil\")" +BCH " smput \"\${WRKdir}/CARAIB_couplage/results/Belgium/\" \"\$filename\" \"$STKcar\"" +BCH "done" +BCH BCH " mv -f MARglf.nc CARAIB_couplage/ " BCH -BCH " tar -czf \${WRKdir}/CARAIB_couplage.tar.gz \${WRKdir}/CARAIB_couplage " +BCH " tar -czf CARAIB_couplage.tar.gz CARAIB_couplage " BCH " smput \"\${WRKdir}/\" \"CARAIB_couplage.tar.gz\" \"$CARfil\"" -- GitLab