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 trunk/CONFIG/ORCA2_LIM/EXP00 – NEMO

source: trunk/CONFIG/ORCA2_LIM/EXP00/AA_job @ 1134

Last change on this file since 1134 was 590, checked in by opalod, 17 years ago

nemo_v2_compil_001: CT : - correct the key word cpunum_prc to cpunum_job in headers of batch jobs (AA_job) for SX8-NEC Brodie (IDRIS)

  • add -I $(NETCDF_INC) in the compilation line for lxiv8 targets (fait_AA_make)
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 5.8 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
[207]39#-Q- sx6nec ##################
40#-Q- sx6nec ## SX6NEC   CEA ##
41#-Q- sx6nec ##################
42#-Q- sx6nec #PBS -N :XXX:XXX:XXX:        # job name
43#-Q- sx6nec #PBS -o output_XXXXXXX.1     # outputfile name
44#-Q- sx6nec #PBS -j o                    # merge standard error and output
45#-Q- sx6nec #PBS -S /usr/bin/ksh         # user shell
46#-Q- sx6nec #PBS -l memsz_job=3.6gb      # Max memory
47#-Q- sx6nec #PBS -l cputim_job=1:01:00   # Max CPU time
48#-Q- sx6nec #PBS -q prod
49#-Q- sx6nec ##PBS -l cpunum_prc=4
50#-Q- sx6nec ##PBS -q parallel
[8]51########################################################################
52##
[207]53##      Script to run a short experiment when installing the
[241]54##      ORCA2_LIM configuration
[8]55##
[207]56##            Rachid Benshila, OPA System Team
[8]57##
58##
59#########################################################################
60##-- print echo of commands before and after shell interpretation
61date
62set -vx
63
[207]64#################################
65# Beginning of user modification
66#################################
[8]67
[213]68##-- define some directories :
[207]69#- Input file storing
[213]70#-Q- sxnec R_FORCING="gaya:/u/rech/eee/reee512/NEMO"
[573]71#-Q- sx8brodie R_FORCING="gaya:/u/rech/eee/reee512/NEMO"
[213]72#-Q- aix R_FORCING="gaya:/u/rech/eee/reee512/NEMO"
73#-Q- sx6nec R_FORCING="/dmnfs/p86bensh/NEMO"
[207]74#- Launching run repository
75#-Q- sxnec R_EXPER=${QSUB_WORKDIR:-${PWD}}
[573]76#-Q- sx8brodie R_EXPER=${PBS_O_WORKDIR}
[207]77#-Q- aix R_EXPER=${QSUB_WORKDIR:-${PWD}}
[213]78#-Q- sx6nec R_EXPER=${PWD}
[207]79#- modipsl repository
80R_EXEDIR=MMMMMMM     
81#- output files storing
[213]82R_SORTIE_OCE=AAAAAAA/ORCA2_LIM
[207]83#- execution repository
84R_TMP=$TMPDIR         
[8]85
[207]86##-- define processus number : to change when running in mpp
87NB_PROC=1
[8]88
[207]89#################################
90# End of user modification
91#################################
[8]92
[207]93#--  define a fonction to get the input tarfile
[213]94#-Q- sxnec Rapatrie () { [ -f $1/$2 ] || ( rcp ${R_FORCING}/$2 $1 ; cd $1; tar xvf $2 ;) }
[573]95#-Q- sx8brodie Rapatrie () { [ -f $1/$2 ] || ( rcp ${R_FORCING}/$2 $1 ; cd $1; tar xvf $2 ;) }
[213]96#-Q- aix Rapatrie () { [ -f $1/$2 ] || ( rcp ${R_FORCING}/$2 $1 ; cd $1; tar xvf $2 ;) }
97#-Q- sx6nec Rapatrie () { [ -f $1/$2 ] || ( cp ${R_FORCING}/$2 $1 ; cd $1; tar xvf $2 ;) }
[8]98
[207]99[ -d ${R_TMP} ] || mkdir ${R_TMP}
100cd ${R_TMP}
[8]101
[207]102#--  get the executable
103#-Q- sxnec rcp ${LOGNAME}@rhodes:${R_EXEDIR}/bin/opa opa.xx
[573]104#-Q- sx8brodie rcp ${LOGNAME}@brodie:${R_EXEDIR}/bin/opa opa.xx
[207]105#-Q- aix cp ${R_EXEDIR}/bin/opa opa.xx
106#-Q- sx6nec cp ${R_EXEDIR}/bin/opa opa.xx
107chmod 777 opa.xx
[8]108
[207]109## --  Copy ancillary files
[8]110#
[207]111#- Namelist for ocean and ice
112cp ${R_EXPER}/namelist_ice namelist_ice
113cp ${R_EXPER}/namelist namelist
[8]114
[451]115#- Namelist for ocean and ice (agrif fine grid)
116cp ${R_EXPER}/1_namelist_ice 1_namelist_ice
117cp ${R_EXPER}/1_namelist 1_namelist
118cp ${R_EXPER}/AGRIF_FixedGrids.in AGRIF_FixedGrids.in
119
[207]120#- Files for the configuration and ocean dynamics
[586]121Rapatrie ${R_TMP} ORCA2_LIM_nemo_v2.tar
[8]122
123ls -alF
124
[207]125#-Q- sxnec export F_PROGINF=yes
126#-Q- sxnec export F_ERRCNT=5
[573]127#-Q- sx8brodie export F_PROGINF=yes
128#-Q- sx8brodie export F_ERRCNT=5
[207]129#-Q- sx6nec export F_PROGINF=yes
[211]130#-Q- sx6nec export F_ERRCNT=5
[8]131
[213]132#-Q- sxnec #- To be use for a mpp run
133#-Q- sxnec #mpirun -np ${NB_PROC} ./opa.xx
[573]134#-Q- sx8brodie #- To be use for a mpp run
135#-Q- sx8brodie #mpirun -np ${NB_PROC} ./opa.xx
[213]136#-Q- sx6nec #- To be use for a mpp run
[586]137#-Q- sx6nec #mpirun -np ${NB_PROC} ./opa.xx
[213]138
[207]139./opa.xx
[8]140
[207]141## -- Save output files
[8]142ls -alF
[207]143#- to copy on a storage machine
144#-Q- sxnec DPUT=mfput
[573]145#-Q- sx8brodie DPUT=mfput
[207]146#-Q- aix DPUT=mfput
147#-Q- sx6nec DPUT=putfer
148#-Q- sx6nec [ -d ${R_SORTIE_OCE} ] || mkdir -p ${R_SORTIE_OCE}
[8]149
[207]150#- Save ocean output files
[451]151$DPUT *ocean.output ${R_SORTIE_OCE}/.
152$DPUT *solver.stat ${R_SORTIE_OCE}/.
153[ -f *mpp.output* ] && $DPUT *mpp.output* ${R_SORTIE_OCE}/.
[207]154for file_netcdf in *_grid_*.nc
155do
156$DPUT ${file_netcdf} ${R_SORTIE_OCE}/${file_netcdf}
157done
[8]158#
[207]159#- Save ice output files
[451]160for file_netcdf in *icemod*
[207]161do
162$DPUT ${file_netcdf} ${R_SORTIE_OCE}/${file_netcdf}
163done
[241]164$DPUT ice.evolu ${R_SORTIE_OCE}/ice.evolu
[8]165#
[207]166#- Save restart files
167for restart in *restart*
168do
169$DPUT ${restart} ${R_SORTIE_OCE}/${restart}
170done
[8]171#
[207]172#- Save ftrace file
[241]173[ -f ftrace.out* ] && $DPUT ftrace.out* ${R_SORTIE_OCE}/.
Note: See TracBrowser for help on using the repository browser.