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- 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=500mb # Max memory |
---|
35 | #-Q- sx6nec #PBS -l cputim_job=00:30: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 | ## GYRE configuration |
---|
43 | ## |
---|
44 | ## Rachid Benshila, OPA System Team |
---|
45 | ## |
---|
46 | ## |
---|
47 | ######################################################################### |
---|
48 | ##-- print echo of commands before and after shell interpretation |
---|
49 | date |
---|
50 | set -vx |
---|
51 | |
---|
52 | ################################# |
---|
53 | # Beginning of user modification |
---|
54 | ################################# |
---|
55 | |
---|
56 | ##-- define some directories: |
---|
57 | #- Launching run repository |
---|
58 | #-Q- sxnec R_EXPER=${QSUB_WORKDIR:-${PWD}} |
---|
59 | #-Q- aix R_EXPER=${QSUB_WORKDIR:-${PWD}} |
---|
60 | #-Q- sx6nec R_EXPER=${PWD} |
---|
61 | #- modipsl repository |
---|
62 | R_EXEDIR=MMMMMMM |
---|
63 | #- output files storing |
---|
64 | R_SORTIE_OCE=AAAAAAA/GYRE |
---|
65 | #- execution repository |
---|
66 | R_TMP=$TMPDIR |
---|
67 | |
---|
68 | ################################# |
---|
69 | # End of user modification |
---|
70 | ################################# |
---|
71 | |
---|
72 | [ -d ${R_TMP} ] || mkdir ${R_TMP} |
---|
73 | cd ${R_TMP} |
---|
74 | |
---|
75 | #-- get the executable |
---|
76 | #-Q- sxnec rcp ${LOGNAME}@rhodes:${R_EXEDIR}/bin/opa opa.xx |
---|
77 | #-Q- aix cp ${R_EXEDIR}/bin/opa opa.xx |
---|
78 | #-Q- sx6nec cp ${R_EXEDIR}/bin/opa opa.xx |
---|
79 | chmod 777 opa.xx |
---|
80 | |
---|
81 | ## -- Copy ancillary files |
---|
82 | # |
---|
83 | #- Namelist for the configuration |
---|
84 | cp ${R_EXPER}/namelist namelist |
---|
85 | ls -alF |
---|
86 | |
---|
87 | #-Q- sxnec export F_PROGINF=yes |
---|
88 | #-Q- sxnec export F_ERRCNT=5 |
---|
89 | #-Q- sx6nec export F_PROGINF=yes |
---|
90 | #-Q- sx6nec export F_ERRCNT=5 |
---|
91 | |
---|
92 | #-Q- sxnec #- To be use for a mpp run |
---|
93 | #-Q- sxnec #mpirun -np ${NB_PROC} ./opa.xx |
---|
94 | #-Q- sx6nec #- To be use for a mpp run |
---|
95 | #-Q- sxn6ec #mpirun -np ${NB_PROC} ./opa.xx |
---|
96 | |
---|
97 | ./opa.xx |
---|
98 | |
---|
99 | ## -- Save output files |
---|
100 | ls -alF |
---|
101 | #- to copy on a storage machine |
---|
102 | #-Q- sxnec DPUT=mfput |
---|
103 | #-Q- aix DPUT=mfput |
---|
104 | #-Q- sx6nec DPUT=putfer |
---|
105 | #-Q- sx6nec [ -d ${R_SORTIE_OCE} ] || mkdir -p ${R_SORTIE_OCE} |
---|
106 | |
---|
107 | #- Save ocean output files |
---|
108 | $DPUT ocean.output ${R_SORTIE_OCE}/ocean.output |
---|
109 | $DPUT solver.stat ${R_SORTIE_OCE}/solver.stat |
---|
110 | [ -f mpp.output* ] && $DPUT mpp.output* ${R_SORTIE_OCE}/. |
---|
111 | for file_netcdf in *_grid_*.nc |
---|
112 | do |
---|
113 | $DPUT $file_netcdf ${R_SORTIE_OCE}/$file_netcdf |
---|
114 | done |
---|
115 | # |
---|
116 | #- Save restart files |
---|
117 | for restart in *restart* |
---|
118 | do |
---|
119 | $DPUT $restart ${R_SORTIE_OCE}/$restart |
---|
120 | done |
---|
121 | # |
---|
122 | #- Save ftrace file |
---|
123 | [ -f ftrace.out* ] && $DPUT ftrace.out* ${R_SORTIE_OCE}/. |
---|