Skip to content
Snippets Groups Projects
Commit 9b9b7563 authored by Dethinne Thomas's avatar Dethinne Thomas
Browse files

Update MAR_n5

parent 4251ff24
No related branches found
No related tags found
No related merge requests found
...@@ -1082,7 +1082,7 @@ echo "job command file < MAR*.DAT input data files" ...@@ -1082,7 +1082,7 @@ echo "job command file < MAR*.DAT input data files"
#caraib input files #caraib input files
yl= $(($yr - 1)) yl=$((yr - 1))
CARfil=$STKmar/$domain/ CARfil=$STKmar/$domain/
CARcou="CARAIB_couplage.tar.gz" CARcou="CARAIB_couplage.tar.gz"
...@@ -1090,20 +1090,16 @@ CARfilres=$STKmar/$domain/CARAIB_couplage/results/Belgium ...@@ -1090,20 +1090,16 @@ CARfilres=$STKmar/$domain/CARAIB_couplage/results/Belgium
BCH "echo \" $CARfil \${WRKdir}\ \"" BCH "echo \" $CARfil \${WRKdir}\ \""
BCH "if [ ! -f \"$WRKtmp/$CARcou\" ] ; then" BCH " "
BCH " smget \"$CARfil\" \"$CARcou\" \"\${WRKdir}\"" BCH "smget \"$CARfil\" \"$CARcou\" \"\${WRKdir}\""
BCH " tar -xzf \"\${WRKdir}\"/\"$CARcou\"" BCH "tar -xzf \"\${WRKdir}\"/\"$CARcou\""
BCH " rm -rf \${WRKdir}/CARAIB_couplage.tar.gz" BCH "rm -rf \${WRKdir}/CARAIB_couplage.tar.gz"
BCH "else" BCH " "
BCH " tar -xzf \"\${WRKdir}\"/\"$CARcou\""
BCH " rm -rf \${WRKdir}/CARAIB_couplage.tar.gz"
BCH "fi"
BCH "rm -rf \${WRKdir}/CARAIB_couplage/results/Belgium/*" BCH "rm -rf \${WRKdir}/CARAIB_couplage/results/Belgium/*"
BCH " "
BCH " for fil in \`ls \${CARfilres}/*\${yl}*\` ; do" BCH "for fil in \`ls \${CARfilres}/*"${yl}"*\` ; do"
BCH " smput \"\$CARfilres/\" \"\$fil\" \"\${WRKdir}/CARAIB_couplage/results/Belgium/\"" BCH " smput \"\$CARfilres/\" \"\$fil\" \"\${WRKdir}/CARAIB_couplage/results/Belgium/\""
BCH " done" BCH "done"
echo "job command file < CARAIB input data files" echo "job command file < CARAIB input data files"
...@@ -1312,10 +1308,6 @@ echo "job command file < MARctr.dat input data file" ...@@ -1312,10 +1308,6 @@ echo "job command file < MARctr.dat input data file"
#--------------------------------------- #---------------------------------------
BCHt "Stock initialisation" BCHt "Stock initialisation"
BCH "#creating CAR folders"
BCH "mkdir -p $STKmar/$domain/$runnam/caraib"
BCH "mkdir -p $STKmar/$domain/$runnam/caraib/$yr"
#creating needed directory on stock #creating needed directory on stock
if [ -z ${FTPout} ] ; then if [ -z ${FTPout} ] ; then
case $cluster in case $cluster in
...@@ -1326,6 +1318,10 @@ BCH "mkdir -p $STKmar/$domain/crash" ...@@ -1326,6 +1318,10 @@ BCH "mkdir -p $STKmar/$domain/crash"
BCH "mkdir -p $STKmar/$domain/$runnam/log" BCH "mkdir -p $STKmar/$domain/$runnam/log"
BCH "mkdir -p $STKmar/$domain/$runnam/$yr" BCH "mkdir -p $STKmar/$domain/$runnam/$yr"
BCH "mkdir -p $STKmar/$domain/input/MARsim/$runnam/$yrN" BCH "mkdir -p $STKmar/$domain/input/MARsim/$runnam/$yrN"
BCH "#creating CAR folders"
BCH "mkdir -p $STKmar/$domain/$runnam/caraib"
BCH "mkdir -p $STKmar/$domain/$runnam/caraib/$yr"
fi fi
;; ;;
(foehn|froggy) (foehn|froggy)
...@@ -1343,7 +1339,7 @@ fi ...@@ -1343,7 +1339,7 @@ fi
STKcrash=$STKmar/$domain/crash STKcrash=$STKmar/$domain/crash
STKlog=$STKmar/$domain/$runnam/log STKlog=$STKmar/$domain/$runnam/log
STKout=$STKmar/$domain/$runnam/$yr STKout=$STKmar/$domain/$runnam/mar/$yr
STKsim=$STKmar/$domain/input/MARsim/$runnam/$yrN STKsim=$STKmar/$domain/input/MARsim/$runnam/$yrN
STKcar=$STKmar/$domain/$runnam/caraib/$yr STKcar=$STKmar/$domain/$runnam/caraib/$yr
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment