diff --git a/couplage/MAR_n5 b/couplage/MAR_n5 index 3edc5580fd694e3e267b03ba92d5594beff62a2a..ea75567dc486fc9c0e1e21d8e267891954ae5bc0 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\""