New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
AA_job in branches/2015/dev_r5021_UKMO1_CICE_coupling/NEMOGCM/CONFIG/ORCA2_LIM/EXP00 – NEMO

source: branches/2015/dev_r5021_UKMO1_CICE_coupling/NEMOGCM/CONFIG/ORCA2_LIM/EXP00/AA_job @ 5445

Last change on this file since 5445 was 5445, checked in by davestorkey, 9 years ago

Clear SVN keywords from 2015/dev_r5021_UKMO1_CICE_coupling branch.

  • Property svn:executable set to *
File size: 5.9 KB
RevLine 
[207]1#-Q- sxnec ##################
2#-Q- sxnec ## SXNEC IDRIS
3#-Q- sxnec ##################
4#-Q- sxnec #@$-r :XXX:XXX:XXX:           # job name
5#-Q- sxnec #@$-o output_XXXXXXX.1        # outputfile name
6#-Q- sxnec #@$-me                        # sends a mail at the end of execution
7#-Q- sxnec #@$-eo                        # merge standard error and output
8#-Q- sxnec #@$-jo                        # print a short performance analysis
9#-Q- sxnec #@$-lT 1:00:00                # Max total CPU time
10#-Q- sxnec #@$-lt 0:59:00                # Max CPU time per process
11#-Q- sxnec #@$-lM 2Gb                    # Max memory
12#-Q- sxnec ##@$-c 4                     # Max number of simultaneous procs used (here=4)
13#-Q- sxnec ##@$-q multi                 # Use more than 1 proc
14#-Q- aix ##################
15#-Q- aix ## IBM   IDRIS  ##
16#-Q- aix ##################
17#-Q- aix #@job_name= :XXX:XXX:XXX:         
18#-Q- aix #@output= output_XXXXXXX.1         
19#-Q- aix #@error= error_XXXXXXX.1         
20#-Q- aix #@cpu_limit= 5000
21#-Q- aix #@stack_limit= 200Mb       
22#-Q- aix #@data_limit= 1.8Gb         
23#-Q- aix #@notification= complete
24#-Q- aix #@total_tasks= 1
25#-Q- aix #@job_type= parallel
26#-Q- aix #@queue
[573]27#-Q- sx8brodie ##################
28#-Q- sx8brodie ## SX8NEC IDRIS ##
29#-Q- sx8brodie ##################
30#-Q- sx8brodie #PBS -N :XXX:XXX:XXX:        # job name
31#-Q- sx8brodie #PBS -o output_XXXXXXX.1     # outputfile name
32#-Q- sx8brodie #PBS -j o                    # merge standard error and output
33#-Q- sx8brodie #PBS -S /usr/bin/ksh         # user shell
34#-Q- sx8brodie #PBS -l memsz_job=3.6gb      # Max memory
35#-Q- sx8brodie #PBS -l cputim_prc=1:01:00   # Max CPU time/prc
36#-Q- sx8brodie #PBS -l cputim_job=1:01:00   # Max CPU time/job
[590]37#-Q- sx8brodie ##PBS -l cpunum_job=4
[573]38#-Q- sx8brodie ##PBS -q multi
[1354]39#-Q- sx8mercure ##################
40#-Q- sx8mercure ## SX8NEC   CEA ##
41#-Q- sx8mercure ##################
42#-Q- sx8mercure #PBS -N :XXX:XXX:XXX:        # job name
43#-Q- sx8mercure #PBS -o output_XXXXXXX.1     # outputfile name
44#-Q- sx8mercure #PBS -j o                    # merge standard error and output
45#-Q- sx8mercure #PBS -S /usr/bin/ksh         # user shell
46#-Q- sx8mercure #PBS -l memsz_job=3.6gb      # Max memory
47#-Q- sx8mercure #PBS -l cputim_job=0:40:00   # Max CPU time
48#-Q- sx8mercure ##PBS -l cpunum_job=4
[8]49########################################################################
50##
[207]51##      Script to run a short experiment when installing the
[241]52##      ORCA2_LIM configuration
[8]53##
[207]54##            Rachid Benshila, OPA System Team
[8]55##
56##
57#########################################################################
58##-- print echo of commands before and after shell interpretation
59date
60set -vx
61
[207]62#################################
63# Beginning of user modification
64#################################
[8]65
[213]66##-- define some directories :
[207]67#- Input file storing
[213]68#-Q- sxnec R_FORCING="gaya:/u/rech/eee/reee512/NEMO"
[573]69#-Q- sx8brodie R_FORCING="gaya:/u/rech/eee/reee512/NEMO"
[213]70#-Q- aix R_FORCING="gaya:/u/rech/eee/reee512/NEMO"
[1354]71#-Q- sx8mercure R_FORCING="/dmnfs10/cont003/p48ethe/FORCINGS/ORCA_R2/NEMO"
[207]72#- Launching run repository
73#-Q- sxnec R_EXPER=${QSUB_WORKDIR:-${PWD}}
[573]74#-Q- sx8brodie R_EXPER=${PBS_O_WORKDIR}
[207]75#-Q- aix R_EXPER=${QSUB_WORKDIR:-${PWD}}
[1354]76#-Q- sx8mercure R_EXPER=${PWD}
[207]77#- modipsl repository
78R_EXEDIR=MMMMMMM     
79#- output files storing
[213]80R_SORTIE_OCE=AAAAAAA/ORCA2_LIM
[207]81#- execution repository
82R_TMP=$TMPDIR         
[8]83
[207]84##-- define processus number : to change when running in mpp
85NB_PROC=1
[8]86
[207]87#################################
88# End of user modification
89#################################
[8]90
[207]91#--  define a fonction to get the input tarfile
[213]92#-Q- sxnec Rapatrie () { [ -f $1/$2 ] || ( rcp ${R_FORCING}/$2 $1 ; cd $1; tar xvf $2 ;) }
[573]93#-Q- sx8brodie Rapatrie () { [ -f $1/$2 ] || ( rcp ${R_FORCING}/$2 $1 ; cd $1; tar xvf $2 ;) }
[213]94#-Q- aix Rapatrie () { [ -f $1/$2 ] || ( rcp ${R_FORCING}/$2 $1 ; cd $1; tar xvf $2 ;) }
[1354]95#-Q- sx8mercure Rapatrie () { [ -f $1/$2 ] || ( cp ${R_FORCING}/$2 $1 ; cd $1; tar xvf $2 ;) }
[8]96
[207]97[ -d ${R_TMP} ] || mkdir ${R_TMP}
98cd ${R_TMP}
[8]99
[207]100#--  get the executable
101#-Q- sxnec rcp ${LOGNAME}@rhodes:${R_EXEDIR}/bin/opa opa.xx
[573]102#-Q- sx8brodie rcp ${LOGNAME}@brodie:${R_EXEDIR}/bin/opa opa.xx
[207]103#-Q- aix cp ${R_EXEDIR}/bin/opa opa.xx
[1354]104#-Q- sx8mercure cp ${R_EXEDIR}/bin/opa opa.xx
[207]105chmod 777 opa.xx
[8]106
[207]107## --  Copy ancillary files
[8]108#
[207]109#- Namelist for ocean and ice
[1159]110cp ${R_EXPER}/namelist_ice_lim2 namelist_ice
[207]111cp ${R_EXPER}/namelist namelist
[8]112
[451]113#- Namelist for ocean and ice (agrif fine grid)
[1159]114cp ${R_EXPER}/1_namelist_ice_lim2 1_namelist_ice
[451]115cp ${R_EXPER}/1_namelist 1_namelist
116cp ${R_EXPER}/AGRIF_FixedGrids.in AGRIF_FixedGrids.in
117
[207]118#- Files for the configuration and ocean dynamics
[1782]119Rapatrie ${R_TMP} ORCA2_LIM_nemo_v3.2.tar
[8]120
121ls -alF
122
[207]123#-Q- sxnec export F_PROGINF=yes
124#-Q- sxnec export F_ERRCNT=5
[573]125#-Q- sx8brodie export F_PROGINF=yes
126#-Q- sx8brodie export F_ERRCNT=5
[1354]127#-Q- sx8mercure export F_PROGINF=yes
128#-Q- sx8mercure export F_ERRCNT=5
[8]129
[213]130#-Q- sxnec #- To be use for a mpp run
131#-Q- sxnec #mpirun -np ${NB_PROC} ./opa.xx
[573]132#-Q- sx8brodie #- To be use for a mpp run
133#-Q- sx8brodie #mpirun -np ${NB_PROC} ./opa.xx
[1354]134#-Q- sx8mercure #- To be use for a mpp run
135#-Q- sx8mercure #mpirun -np ${NB_PROC} ./opa.xx
[213]136
[207]137./opa.xx
[8]138
[207]139## -- Save output files
[8]140ls -alF
[207]141#- to copy on a storage machine
142#-Q- sxnec DPUT=mfput
[573]143#-Q- sx8brodie DPUT=mfput
[207]144#-Q- aix DPUT=mfput
[1354]145#-Q- sx8mercure DPUT=cp
146#-Q- sx8mercure [ -d ${R_SORTIE_OCE} ] || mkdir -p ${R_SORTIE_OCE}
[8]147
[207]148#- Save ocean output files
[451]149$DPUT *ocean.output ${R_SORTIE_OCE}/.
150$DPUT *solver.stat ${R_SORTIE_OCE}/.
151[ -f *mpp.output* ] && $DPUT *mpp.output* ${R_SORTIE_OCE}/.
[207]152for file_netcdf in *_grid_*.nc
153do
154$DPUT ${file_netcdf} ${R_SORTIE_OCE}/${file_netcdf}
155done
[8]156#
[207]157#- Save ice output files
[451]158for file_netcdf in *icemod*
[207]159do
160$DPUT ${file_netcdf} ${R_SORTIE_OCE}/${file_netcdf}
161done
[241]162$DPUT ice.evolu ${R_SORTIE_OCE}/ice.evolu
[8]163#
[207]164#- Save restart files
165for restart in *restart*
166do
167$DPUT ${restart} ${R_SORTIE_OCE}/${restart}
168done
[8]169#
[207]170#- Save ftrace file
[241]171[ -f ftrace.out* ] && $DPUT ftrace.out* ${R_SORTIE_OCE}/.
Note: See TracBrowser for help on using the repository browser.