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 00:30:00 # Max total CPU time |
---|
10 | #-Q- sxnec #@$-lt 00:30:00 # Max CPU time per process |
---|
11 | #-Q- sxnec #@$-lM 500Mb # 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= 1800 |
---|
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- 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 |
---|
37 | #-Q- sx8brodie ##PBS -l cpunum_job=4 |
---|
38 | #-Q- sx8brodie ##PBS -q multi |
---|
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=500mb # Max memory |
---|
47 | #-Q- sx8mercure #PBS -l cputim_job=00:30:00 # Max CPU time |
---|
48 | #-Q- sx8mercure ##PBS -l cpunum_job=4 |
---|
49 | ######################################################################## |
---|
50 | ## |
---|
51 | ## Script to run a short experiment when installing the |
---|
52 | ## GYRE configuration |
---|
53 | ## |
---|
54 | ## Rachid Benshila, OPA System Team |
---|
55 | ## |
---|
56 | ## |
---|
57 | ######################################################################### |
---|
58 | ##-- print echo of commands before and after shell interpretation |
---|
59 | date |
---|
60 | set -vx |
---|
61 | |
---|
62 | ################################# |
---|
63 | # Beginning of user modification |
---|
64 | ################################# |
---|
65 | |
---|
66 | ##-- define some directories: |
---|
67 | #- Launching run repository |
---|
68 | #-Q- sxnec R_EXPER=${QSUB_WORKDIR:-${PWD}} |
---|
69 | #-Q- sx8brodie R_EXPER=${PBS_O_WORKDIR} |
---|
70 | #-Q- aix R_EXPER=${QSUB_WORKDIR:-${PWD}} |
---|
71 | #-Q- sx8mercure R_EXPER=${PWD} |
---|
72 | #- modipsl repository |
---|
73 | R_EXEDIR=MMMMMMM |
---|
74 | #- output files storing |
---|
75 | R_SORTIE_OCE=AAAAAAA/GYRE_PISCES |
---|
76 | #- execution repository |
---|
77 | R_TMP=$TMPDIR |
---|
78 | |
---|
79 | ################################# |
---|
80 | # End of user modification |
---|
81 | ################################# |
---|
82 | |
---|
83 | [ -d ${R_TMP} ] || mkdir ${R_TMP} |
---|
84 | cd ${R_TMP} |
---|
85 | |
---|
86 | #-- get the executable |
---|
87 | #-Q- sxnec rcp ${LOGNAME}@rhodes:${R_EXEDIR}/bin/opa opa.xx |
---|
88 | #-Q- sx8brodie rcp ${LOGNAME}@brodie:${R_EXEDIR}/bin/opa opa.xx |
---|
89 | #-Q- aix cp ${R_EXEDIR}/bin/opa opa.xx |
---|
90 | #-Q- sx8mercure cp ${R_EXEDIR}/bin/opa opa.xx |
---|
91 | chmod 777 opa.xx |
---|
92 | |
---|
93 | ## -- Copy ancillary files |
---|
94 | # |
---|
95 | #- Namelist for the configuration |
---|
96 | cp ${R_EXPER}/namelist namelist |
---|
97 | cp ${R_EXPER}/namelist_top namelist_top |
---|
98 | cp ${R_EXPER}/namelist_pisces namelist_pisces |
---|
99 | ls -alF |
---|
100 | |
---|
101 | #-Q- sxnec export F_PROGINF=yes |
---|
102 | #-Q- sxnec export F_ERRCNT=5 |
---|
103 | #-Q- sx8brodie export F_PROGINF=yes |
---|
104 | #-Q- sx8brodie export F_ERRCNT=5 |
---|
105 | #-Q- sx8mercure export F_PROGINF=yes |
---|
106 | #-Q- sx8mercure export F_ERRCNT=5 |
---|
107 | |
---|
108 | #-Q- sxnec #- To be use for a mpp run |
---|
109 | #-Q- sxnec #mpirun -np ${NB_PROC} ./opa.xx |
---|
110 | #-Q- sx8brodie #- To be use for a mpp run |
---|
111 | #-Q- sx8brodie #mpirun -np ${NB_PROC} ./opa.xx |
---|
112 | #-Q- sx8mercure #- To be use for a mpp run |
---|
113 | #-Q- sx8mercure #mpirun -np ${NB_PROC} ./opa.xx |
---|
114 | |
---|
115 | ./opa.xx |
---|
116 | |
---|
117 | ## -- Save output files |
---|
118 | ls -alF |
---|
119 | #- to copy on a storage machine |
---|
120 | #-Q- sxnec DPUT=mfput |
---|
121 | #-Q- sx8brodie DPUT=mfput |
---|
122 | #-Q- aix DPUT=mfput |
---|
123 | #-Q- sx8mercure DPUT=cp |
---|
124 | #-Q- sx8mercure [ -d ${R_SORTIE_OCE} ] || mkdir -p ${R_SORTIE_OCE} |
---|
125 | |
---|
126 | #- Save ocean output files |
---|
127 | $DPUT ocean.output ${R_SORTIE_OCE}/ocean.output |
---|
128 | $DPUT solver.stat ${R_SORTIE_OCE}/solver.stat |
---|
129 | [ -f mpp.output* ] && $DPUT mpp.output* ${R_SORTIE_OCE}/. |
---|
130 | for file_netcdf in *_grid_*.nc *_diad_T*.nc *_ptrc_T*.nc |
---|
131 | do |
---|
132 | $DPUT $file_netcdf ${R_SORTIE_OCE}/$file_netcdf |
---|
133 | done |
---|
134 | # |
---|
135 | #- Save restart files |
---|
136 | for restart in *restart* |
---|
137 | do |
---|
138 | $DPUT $restart ${R_SORTIE_OCE}/$restart |
---|
139 | done |
---|
140 | # |
---|
141 | #- Save ftrace file |
---|
142 | [ -f ftrace.out* ] && $DPUT ftrace.out* ${R_SORTIE_OCE}/. |
---|