Changeset 44 for vendor/nemo/current/NEMOGCM/SETTE/prepare_job.sh
- Timestamp:
- 08/31/12 15:41:37 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/nemo/current/NEMOGCM/SETTE/prepare_job.sh
r4 r44 6 6 # prepare_job.sh : create the job script for running job 7 7 ###################################################### 8 #set - x8 #set -vx 9 9 set -o posix 10 10 #set -u 11 11 #set -e 12 # 12 #+ 13 13 # 14 14 # ================ … … 25 25 # :: 26 26 # 27 # $ ./prepare_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME MPI_ INTERACT MPI_FLAG27 # $ ./prepare_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME MPI_FLAG JOB_FILE 28 28 # 29 29 # … … 31 31 # =========== 32 32 # 33 # Simple job for SET TESTS for NEMO (SETTE)33 # Part of the SETTE package to run tests for NEMO 34 34 # 35 # get input files (if needed) : tar file 36 # (note this job needs to have an input_CONFIG.cfg in which can be found input tar file name) 37 # 38 # runs job in interactive or batch mode : all jobs using 1 process are run interactive, and all MPP jobs are 39 # 40 # run in batch (MPI_INTERACT="no") or interactive (MPI_INTERACT="yes") see sette.sh and BATCH_TEMPLATE directory 41 # 42 # and call post_test_tidyup function (that moves in NEMO_VALIDATION_DIR solver.stat, tracer.stat (for LOBSTER & PISCES) & ocean.output) 35 # prepare the script $JOB_FILE to run the tests 43 36 # 44 37 # EXAMPLES … … 47 40 # :: 48 41 # 49 # $ ./fcm_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME MPI_INTERACT MPI_FLAG 50 # 51 # run a job of config GYRE with 1 processor SHORT test ( 5 days ) using an interactive run without mpirun 52 # $ ./fcm_job.sh input_GYRE.cfg 1 SHORT yes no 53 # 54 # run a job of config ORCA2_LIM_PISCES with 8 processors test RESTARTABILITY submitting the job to the batch queue system and using mpirun 55 # $ ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 8 LONG no yes 42 # $ ./prepare_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME MPI_FLAG $JOB_FILE 43 # 44 # prepare the $JOB_FILE for execution 56 45 # 57 46 # … … 65 54 # ========== 66 55 # 67 # $Id: fcm_job.sh 3050 2011-11-07 14:11:34Z acc $56 # $Id: prepare_job.sh 3050 2011-11-07 14:11:34Z acc $ 68 57 # 69 58 # … … 74 63 # 75 64 76 usage=" Usage : ./ fcm_job.sh input_CONFIG_NAME.cfg NUMBER_OF_PROCS TEST_NAME INTERACT MPI_FLAG"77 usage=" example : ./ fcm_job.sh input_ORCA2_LIM_PISCES.cfg 8 SHORT no/yes no/yes"65 usage=" Usage : ./prepare_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME MPI_FLAG JOB_FILE" 66 usage=" example : ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg 8 SHORT no/yes $JOB_FILE" 78 67 79 68 … … 81 70 if [ ${#} -lt ${minargcount} ] 82 71 then 83 echo "not enough t arguments for fcm_job.sh script"84 echo "control number of argument of fcm_job.sh in sette.sh"72 echo "not enough arguments for prepare_job.sh script" 73 echo "control number of argument of prepare_job.sh in sette.sh" 85 74 echo "${usage}" 86 75 exit 1 … … 165 154 exit 1 166 155 fi 167 #if [ ${NB_PROC} == 1 ] ; then 168 # echo "running opa" >> ${SETTE_DIR}/output.sette 169 # echo " " >> ${SETTE_DIR}/output.sette 170 # ./opa 171 # 172 # Tidy out output from this test and populate the NEMO_VALIDATION_DIR tree 173 # 174 # post_test_tidyup 175 #else 176 # echo "running opa in MPI" >> ${SETTE_DIR}/output.sette 177 # echo " " >> ${SETTE_DIR}/output.sette 178 179 # if [ ${MPI_INTERACT} == "yes" ] ; then 180 # # 181 # # example for brodie (NEC SX8) machine 182 # # mpirun -np ${NB_PROC} opa 183 # # example for dedale machine 184 # # mpirun --mca btl self,tcp -np ${NB_PROC} opa 185 # # example for vargas (IBM Power6) machine 186 # mpiexec -n ${NB_PROC} opa 187 # # 188 # post_test_tidyup 189 # fi 190 # 156 191 157 # example for NOCS Altix system using PBS batch submission (requires ${SETTE_DIR}/sette_batch_template file) 192 158 # 193 # if [ ${MPI_ INTERACT} == "no" ] ; then159 # if [ ${MPI_FLAG} == "no" ] ; then 194 160 case ${COMPILER} in 195 161 ALTIX_NAUTILUS_MPT) … … 239 205 fi 240 206 241 chmod a+x $JOB_FILE 207 chmod a+x $JOB_FILE ; echo "$JOB_FILE is ready" 242 208 243 209 #fi
Note: See TracChangeset
for help on using the changeset viewer.