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

source: tags/nemo_v1_12/CONFIG/ORCA2_LIM/EXP00/AA_job @ 8058

Last change on this file since 8058 was 451, checked in by opalod, 18 years ago

nemo_v1_compil_016:RB: update BB_make, add input files for ORCA2_LIM-AGRIF test case

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