#PBS -S /bin/ksh
#PBS -N C901
#PBS -j o
#PBS -T mpisx
#PBS -b 1
#PBS -l elapstim_req="600,590"
#PBS -l cputim_job="430,420"
#PBS -l cpunum_job=1
#PBS -l memsz_job=3000mb
#PBS -q vector
export DR_HOOK=0
export DR_HOOK_IGNORE_SIGNALS=-1
export F_UFMTENDIAN=31
export F_SYSLEN=1000
export F_FMTBUF=131072
export F_PROGINF=DETAIL
export F_FTRACE=FMT2
export F_RECLUNIT=BYTE
export MPIPROGINF=ALL_DETAIL
export MPISEPSELECT=0
export MPIEXPORT="F_FTRACE,F_FMTBUF,F_RECLUNIT,MPIPROGINF,PATH,DR_HOOK,DR_HOOK_IGNORE_SIGNALS"
# basculement sur un espace de travail.
# move on a workspace.
export TEMPORAIRE=$TMP_LOC
cd $TEMPORAIRE
export NPROC=1
date ; set +x ; banner 'suje001'
#
#
# *****************************************************************************
# * *
# * Fichiers d'entree:
# * - ICMGGa001INIT pour le fichier atmospherique pdg *
# * - ICMSHa001INIT pour le fichier atmospherique spectral *
# * - ICMUAa001INIT pour le fichier sol pdg *
# * *
# *****************************************************************************
#
# GRIB MARS.
#
REP_JAG=${WORKDIR}
# a enlever a l'etape 1: LLCLIM=.F.
#
# GRIB ENSEMBLE GUESS.
#
\cp -b 32768 ${REP_JAG}/ana.20051020.12.atm.pdg.grib ICMGGa001INIT
\cp -b 32768 ${REP_JAG}/ana.20051020.12.atm.spe.grib ICMSHa001INIT
\cp -b 32768 ${REP_JAG}/ana.20051020.12.sol.pdg.grib ICMUAa001INIT
\cp -b 32768 ${REP_JAG}/Const.Clim.m10 Const.Clim
ls -lrt
#
#
# *****************************************************************************
# * *
# * Saisie de la namelist de la c901. *
# * *
# *****************************************************************************
#
#
NCONF=901
#VERSION=meteo
VERSION=ecmwf
CNMEXP='a001'
TSTEP=160.
ECHEANCE=d5
ADVT=eul
cat < fort.4
&NAECOAPHY
/
&NAMGOM
/
&NAMHLOPT
/
&NAMJBCODES
/
&NAMNPROF
/
&NAM_CANAPE
/
&NAMCOM
/
&NAMPONG
/
&NAMRCOEF
/
&NAMFPEZO
/
&NACTDO
/
&NACTEX
/
&NACVEG
/
&NADIRS
/
&NAECLA
/
&NAEPHY
LERADI=.FALSE.,
/
&NAERAD
LSRTM=.FALSE.,
/
&NAFORC
/
&NAIMPO
/
&NALBAR
/
&NALINO
/
&NALORI
/
&NAMAFN
/
&NAMANCS
/
&NAMARPHY
/
&NAMCAPE
/
&NAMCFU
/
&NAMCHET
/
&NAMCHK
/
&NAMCOK
/
&NAEAER
/
&NAMMWAVE
/
&NAMSATS
/
&NAMTRM
/
&NAMCT0
LFDBOP=.FALSE.,
NPRINTLEV=2,
LALLOPR=.TRUE.,
LARPEGEF=.TRUE., # vrai si on fabrique un FA en sortie.
LGRBOP=.FALSE., # initialisations relatives au GRIB en sortie.
/
&NAMCVER
/
&NAMGFL
YO3_NL%LGP=.FALSE.,
/
&NAMMCUF
/
&NAMMODERR
/
&NAMMTS
/
&NAMCUMFS
/
&NAMCT1
/
&NAMCVER
/
&NAMDDH
/
&NAMDFI
/
&NAMDIF
/
&NAM_DISTRIBUTED_VECTORS
/
&NAMDIM
/
&NAMDPHY
/
&NAMDYN
LREPHD=.TRUE.,
/
&NAMDYNA
/
&NAMEROB
/
&NAMFA
/
&NAMFFT
/
&NAMFPC
/
&NAMFPD
/
&NAMFPF
/
&NAMFPG
/
&NAMFPIOS
/
&NAMFPSC2
/
&NAMGEM
/
&NAMGERCO
/
&NAMGOES
/
&NAMGRIB
/
&NAMINI
/
&NAMIOMI
LINMEM=.TRUE., # ?
/
&NAMIOS
/
&NAMJFH
/
&NAMJG
/
&NAMJK
/
&NAMJO
/
&NAMKAP
/
&NAMLCZ
/
&NAMLEG
/
&NAMMARS
LLCLIM=.TRUE.,
LLALBEDO2=.TRUE.,
LLGLACE=.TRUE.,
TSRESERV1=273.15,
TSRESERV2=273.15,
TDELTA1=3.0,
TDELTA2=7.0,
CLFILN(1)='ICMGGa001INIT', 'ICMUAa001INIT', 'ICMSHa001INIT',
/
&NAMMCC
/
&NAMMKODB
/
&NAMMTT
/
&NAMMUL
/
&NAMNMI
/
&NAMNN
/
&NAMNUD
/
&NAMOBS
/
&NAMONEDVAR
/
&NAMOPH
/
&NAMPAR0
LMPOFF=.FALSE.,
NPROC=$NPROC,
NPRGPNS=$NPROC,
NPRTRW=$NPROC,
NPRGPEW=1,
NPRTRV=1,
NOUTPUT=1,
/
&NAMPAR1
LSPLIT=.FALSE.,
NSTRIN=1,
NSTROUT=1,
/
&NAMPARAR
/
&NAMPHY
LRELAXT=.TRUE.,
LRELAXW=.TRUE.,
/
&NAMPHY0
RCVEVAP=0.25,
/
&NAMPHY1
/
&NAMPHY2
/
&NAMPHY3
/
&NAMPHYDS
/
&NAMPPC
/
&NAMPRE
/
&NAMRCF
/
&NAMRES
/
&NAMRGRI
/
&NAMRINC
/
&NAMRIP
/
&NAMSCAT
/
&NAMSCEN
/
&NAMSCM
/
&NAMSENS
/
&NAMSIMPHL
/
&NAMSKF
/
&NAMSSMI
/
&NAMSTA
/
&NAMSWE
/
&NAMTESTVAR
/
&NAMTLEVOL
/
&NAMTOPH
/
&NAMTRAJP
/
&NAMTRANS
/
&NAMTRMM
/
&NAMTS
/
&NAMTSK
/
&NAMSTOPH
/
&NAMVAR
/
&NAMVAREPS
/
&NAMVARBC
/
&NAMVDOZ
/
&NAMVFP
/
&NAMVRTL
/
&NAMVV1
/
&NAMVWRK
/
&NAMXFU
/
&NAMZDI
/
&NAPHLC
/
&NASTAT
/
FIN
cat fort.4
\cp fort.4 fort.25
#
#
#
# ***************
# * Execution *
# ***************
#
#
set -x
\cp -b 32768 /mf/dp/marp/marp001/tampon/bin/arp/cy32/cy32t0_901.01.SX8RV20.x.exe MASTER
mpirun -nn 1 -nnp 1 MASTER -c $NCONF -v $VERSION -e $CNMEXP -t $TSTEP -f $ECHEANCE -a $ADVT >lola 2>&1
set +x
echo ""
echo " Listing d execution pour partie non parallelisee: fichier lola "
echo ""
set -x
cat lola
#
if [ -a NODE.001_01 ]
then
for file in NODE*
do
set +x
echo ""
echo " Listing d execution pour partie parallelisee: fichier $file "
echo ""
set -x
/bin/cat $file
done
fi
#
set +x
echo ""
echo " Fichier ifs.disp "
echo ""
set -x
cat -s ifs.disp
set +x
echo ""
echo " Fichier ifs.stat "
echo ""
set -x
cat -s ifs.stat
#
ls -lrt
rm -f core
#
#-----------------------------------------------
# Sauvegarde des résultats.
#-----------------------------------------------
#
for i in CN90xa001INIT
do
\cp -b 32768 $i ${WORKDIR}/${i}.T
done
/usr/local/bin/ja