Download Australian Climate Ocean Model (AusCOM) Users Guide

Transcript
echo
echo "‘date‘ : ${jobnum} ${enddate} - done mpirun/mpiexec!" >> $jobdir/${expid}.log
echo ’Error code at end of simulation :’$?
######################################################################## #
# 5. Postprocessing: Saving the Output Data
# ########################################################################
cd $rundir
rm MATM_input/*.$endyear.nc #remove the used forcing data
#
## 5.1 Output files of the coupler (OASIS3)
#
# Restart files
for resfile in ‘ls ?2?.nc‘; do
mv $resfile ${restdir}/oasis3/${resfile}-${enddate}
done
#
## 5.2 Output files of the ocean (mom4)
#
# Restart files
cd $rundir/MOM4_restart/
for restfile in ‘ls ocean_*‘; do
mv $restfile ${restdir}/mom4/${restfile}-${enddate}
done
# History files
cd $rundir/MOM4_hist
sdir=$rundir/MOM4_hist
tdir=${histdir}/mom4
tool=$bindir/do_mppncombine.ksh
archjob=‘qsub $tool -v bdir=$bindir,sdir=$sdir,tdir=$tdir,idate=${enddate}‘
#
## 5.4 Output files of the ice (cice)
#
cd $rundir
# Restart files
mv CICE_input/A2I_time1.nc
${restdir}/cice/A2I_time1.nc-${enddate}
mv CICE_restart/ice.restart_file ${restdir}/cice/ice.restart_file-${enddate}
mv CICE_restart/iced.*
${restdir}/cice/.
if [ -f u_star.nc ]; then
mv u_star.nc ${restdir}/cice/u_star.nc-${enddate}
fi
# History files (iceh_*.nc)
mv CICE_hist/* ${histdir}/cice/.
69