Changeset 2890
- Timestamp:
- 2011-10-06T13:03:48+02:00 (13 years ago)
- Location:
- branches/2011/dev_r2855_LOCEAN7_SETTE/NEMOGCM/SETTE
- Files:
-
- 7 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2011/dev_r2855_LOCEAN7_SETTE/NEMOGCM/SETTE/README
r2757 r2890 11 11 COMPILER : compiler among those available in NEMOGCM/ARCH, needed for makenemo (see below) 12 12 can also be pass as an argument, e.g. ./sette.sh ifort_osx 13 BATCH_COMMAND : command for job submission in batch mode 14 MPI_INTERACT : "yes" if you want to run in interactive mode for MPI run 15 "no" if you want to run in batch mode for MPI run 16 NOTE : every job using only 1 proc is run in interactive mode 17 13 18 makenemo -m : machine (compilator); see ./makenemo -m help (in NEMOGCM/CONFIG directory) 14 19 -n : config name (in examples config_name_nproci_nprocj), see ./makenemo -n help … … 17 22 del_key : to del list of keys 18 23 and for more details and options of makenemo see ./makenemo -h 24 19 25 set_namelist : to set namelist values 20 26 (example : to set 75 time steps for one test : namelist nn_itend 75) 21 27 ( : to change cn_icerst_in name : namelist_ice cn_icerst_in \"test_00101231_restart_icemod\") 22 28 ( : to activate control print : namelist ln_ctl false ) 23 copy_original : to namelist of reference configuration in configuration directory in which tests are done 29 prepare_exe_dir.sh creates execution directory for each test 30 : NOTE for EACH JOB EXECUTION it is needed to set TEST_NAME variable 31 TEST_NAME variable gives name to execution directory (created in prepare_exe_dir.sh) 32 IT is mandatory to have different TEST_NAME for each job run if not existing files are re-written (for example namelist) 33 24 34 fcm_job.sh needs input: input_CONFIG_NAME TOTAL_NUMBER_OF_PROCS_used TEST_NAME 25 35 (for example if you compile ORCA2_LIM with key_mpp_mpi 26 36 and only run short test ===> ./fcm_job input_ORCA2_LIM.cfg 4 SHORT) 37 27 38 in param.cfg : 28 EXE_DIR : directory in which job s executed (by default CONFIG_DIR)29 39 FORCING_DIR : directory in which will be found input.tar file (same name in input_CONFIG_NAME.cfg) 30 INPUT_DIR : directory in which store input files 40 INPUT_DIR : directory in which store input files (tar file) 31 41 TMPDIR : temporary directory NEEDED ONLY FOR IBM machines (put EXP00 directory) 32 OUTPUT_DIR : directory in which store output files33 42 NEMO_VALIDATION_DIR : directory in which create NEMO_VALIDATION tree, and store restart, solver.stat and ocean.output files in 34 43 tree NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/TEST_NAME/REVISION_NUMBER(or DATE) … … 36 45 IMPORTANT : control that name of tar file in FORCING directory 37 46 is the same of that in input_REF_CONFIG.cfg, if not change one. 38 change in "RUN OPA" part the command line (some examples are already written) 39 TEST_NAME by convention is LONG: 10 days run or SHORT: 5 days run 40 so NEMO_VALIDATION tree is coherent, 41 but user can choise a TEST_NAME that represent his own test. 47 48 change in "RUN OPA" if [ ${MPI_INTERACT} == "yes" ] mpirun command line (some examples are already written) 49 NOTE: if MPI_INTERACT="no" it is neede a batch_file (see below to create a new one) 42 50 43 51 NOTE: … … 62 70 1. add arch-compiler.fcm in NEMOGCM/ARCH directory 63 71 2. makenemo -m new_compiler (see makenemo -h for help) 72 73 TO ADD NEW BATCH-FILE: 74 1. see in SETTE/BATCH_TEMPLATE directory existing examples 75 2. create you own batch file like: batch-${COMPILER} 76 (note: sette.sh will copy it in job_batch_template if you run tests in MPI_INTERACT="no") -
branches/2011/dev_r2855_LOCEAN7_SETTE/NEMOGCM/SETTE/all_functions.sh
r2756 r2890 31 31 # 32 32 # $ ./set_namelist INPUT_NAMELIST VARIABLE VALUE 33 # $ ./copy_original INPUT_NAMELIST33 # $ post_test_tidyup 34 34 # 35 35 # … … 39 39 # function superegrep 40 40 # input variable value 41 #42 # function copy_original43 # input namelist_name44 # output namelist45 41 # 46 42 # function set_namelist … … 48 44 # output namelist 49 45 # 46 # function post_test_tidyup 47 # creates nemo_validation tree, and save output & debug files 48 # this function creates tree of validation in NEMO_VALIDATION_DIR as follows : 49 # 50 # NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/REVISION_NUMBER(or DATE)/TEST_NAME 51 # 52 # NEMO_VALIDATION_DIR : is choosen in param.cfg 53 # 54 # WCONFIG_NAME : set by makenemo at the moment of compilation 55 # 56 # WCOMPILER_NAME : set by makenemo at the moment of compilation 57 # 58 # REVISION_NUMBER(or DATE) : revision number by svn info, if problems with svn date is taken 59 # 60 # TEST_NAME : set in sette.sh for each configuration to be tested (directory TEST_NAME is created under ${NEW_CONF} directory ) 61 # 50 62 # EXAMPLES 51 63 # ======== … … 53 65 # :: 54 66 # 55 # $ ./copy_original namelist_pisces56 67 # $ ./set_namelist namelist nn_itend 75 57 68 # $ ./set_namelist namelist_ice_lim2 cn_icerst_in \"00101231_restart_ice\" 69 # $ post_test_tidyup 58 70 # 59 71 # … … 71 83 # * creation 72 84 #- 73 #74 75 76 # function to copy original namelists in ORIGINAL_namelist directory in ${INPUT_DIR} directory77 # to allow re-run same tests in same directory and start with all correct values of namelist78 copy_original () {79 `mkdir -p ${INPUT_DIR}/ORIGINAL_namelist`80 if [ -d ${INPUT_DIR}/ORIGINAL_namelist ] ; then81 echo "created ${INPUT_DIR}/ORIGINAL_namelist directory in ${INPUT_DIR}" >> ${SETTE_DIR}/output.sette82 else83 echo "problems in creating ${INPUT_DIR}/ORIGINAL_namelist directory" >> ${SETTE_DIR}/output.sette84 echo "EXIT,"85 exit 186 fi87 `cp ${CONFIG_DIR}/${REF_CONF}/EXP00/$1 ${INPUT_DIR}/ORIGINAL_namelist/$1.ori`88 if [ -n "$(ls ${INPUT_DIR}/ORIGINAL_namelist/$1.ori)" ] ; then89 echo "copied namelist of reference configuration in ${INPUT_DIR}/ORIGINAL_namelist/$1.ori " >> ${SETTE_DIR}/output.sette90 else91 echo "problem in copying namelist of reference configuration in ${INPUT_DIR}/ORIGINAL_namelist/$1.ori " >> ${SETTE_DIR}/output.sette92 echo "EXIT,"93 exit 194 fi95 `cp ${INPUT_DIR}/ORIGINAL_namelist/$1.ori ${INPUT_DIR}/$1`96 if [ -n "$(ls ${INPUT_DIR}/$1)" ] ; then97 echo "copied original namelist in ${INPUT_DIR} directory " >> ${SETTE_DIR}/output.sette98 else99 echo "problem in copying original namelist in ${INPUT_DIR} directory" >> ${SETTE_DIR}/output.sette100 echo "EXIT,"101 exit 1102 fi103 }104 105 85 # function to find namelists parameters 106 86 supergrep () { … … 128 108 echo "################" >> ${SETTE_DIR}/output.sette 129 109 130 VAR_NAME=$( supergrep $2 ${ INPUT_DIR}/$1 )110 VAR_NAME=$( supergrep $2 ${EXE_DIR}/$1 ) 131 111 if [ ${#VAR_NAME} -eq 0 ] 132 112 then 133 113 echo "doing \"set_namelist $@\". " 134 114 echo "variable: \"$2\" is empty" 135 echo "control that variable $2 is in \"${ INPUT_DIR}/$1\" "115 echo "control that variable $2 is in \"${EXE_DIR}/$1\" " 136 116 echo "exit" 137 117 echo "error in executing script : set_namelist $@" >> ${SETTE_DIR}/output.sette … … 139 119 exit 1 140 120 fi 141 sed -e "s/${VAR_NAME}.*/${VAR_NAME}/" ${ INPUT_DIR}/$1 > ${INPUT_DIR}/$1.tmp142 mv ${ INPUT_DIR}/$1.tmp ${INPUT_DIR}/$1143 sed -e "s/${VAR_NAME}/$2=$3/" ${ INPUT_DIR}/$1 > ${INPUT_DIR}/$1.tmp144 mv ${ INPUT_DIR}/$1.tmp ${INPUT_DIR}/$1121 sed -e "s/${VAR_NAME}.*/${VAR_NAME}/" ${EXE_DIR}/$1 > ${EXE_DIR}/$1.tmp 122 mv ${EXE_DIR}/$1.tmp ${EXE_DIR}/$1 123 sed -e "s/${VAR_NAME}/$2=$3/" ${EXE_DIR}/$1 > ${EXE_DIR}/$1.tmp 124 mv ${EXE_DIR}/$1.tmp ${EXE_DIR}/$1 145 125 146 126 echo "finished script : set_namelist $@" >> ${SETTE_DIR}/output.sette … … 148 128 echo " " >> ${SETTE_DIR}/output.sette 149 129 } 130 131 # function to tidy up after each test and populate the NEMO_VALIDATION store 132 post_test_tidyup () { 133 # 134 # requires the following variables defined and exported from the calling script: 135 # SETTE_DIR 136 # INPUT_DIR 137 # EXE_DIR 138 # CONFIG_DIR 139 # NEMO_VALIDATION_DIR 140 # NEW_CONF 141 # CMP_NAM 142 # TEST_NAME 143 echo "SETTE directory is : ${SETTE_DIR}" 144 echo "INPUT directory is : ${INPUT_DIR}" 145 echo "EXECUTION directory is : ${EXE_DIR}" 146 echo "CONFIG directory is : ${CONFIG_DIR}" 147 echo "VALIDATION directory is : ${NEMO_VALIDATION_DIR}" 148 echo "NEW CONFIGURATION is : ${NEW_CONF}" 149 echo "COMPILER is : ${CMP_NAM}" 150 echo "TEST is : ${TEST_NAME}" 151 ################################################################ 152 # SMALL DEBUG 153 if [ ! -r ${EXE_DIR}/time.step ] 154 then 155 echo "file time.step does not exist" >> ${SETTE_DIR}/output.sette 156 echo "some problems during execution of model" >> ${SETTE_DIR}/output.sette 157 exit 1 158 else 159 echo "file time.step exists" >> ${SETTE_DIR}/output.sette 160 echo "ok model run" >> ${SETTE_DIR}/output.sette 161 fi 162 ################################################################ 163 164 ################################################################ 165 # Creation of NEMO_VALIDATION tree 166 export LANG=en_US 167 cd ${CONFIG_DIR} 168 cd ../ 169 REVISION_NB=`svn info | grep -i "Revision:" | sed -e "s/ //" | cut -d ":" -f 2` 170 if [ ${#REVISION_NB} -eq 0 ] 171 then 172 echo "some problems with svn info command" 173 echo "some problems with svn info command" >> ${SETTE_DIR}/output.sette 174 REVISION_NB=`date +%Y%m%d` 175 echo "put in ${REVISION_NB} date" 176 echo "put in ${REVISION_NB} date" >> ${SETTE_DIR}/output.sette 177 else 178 echo "value of revision number of NEMOGCM: ${REVISION_NB}" 179 fi 180 cd ${NEMO_VALIDATION_DIR} 181 `mkdir -p ${NEMO_VALIDATION_DIR}/W${NEW_CONF}/${CMP_NAM}/${REVISION_NB}/${TEST_NAME}` 182 NEMO_VALID=${NEMO_VALIDATION_DIR}/W${NEW_CONF}/${CMP_NAM}/${REVISION_NB}/${TEST_NAME} 183 if [ -d ${NEMO_VALID} ] ; then 184 echo "created ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette 185 else 186 echo "problems in creating ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette 187 echo "EXIT," 188 exit 1 189 fi 190 # Save output & debug files in NEMO_VALIDATION tree 191 echo "saving ocean & ice output, solver.stat files ...." >> ${SETTE_DIR}/output.sette 192 echo " " >> ${SETTE_DIR}/output.sette 193 [ -f ${EXE_DIR}/*ocean.output ] && cp ${EXE_DIR}/*ocean.output ${NEMO_VALID}/. 194 [ -f ${EXE_DIR}/*solver.stat ] && cp ${EXE_DIR}/*solver.stat ${NEMO_VALID}/. 195 if [ -n "$(ls ${NEMO_VALID}/*solver*)" ] ; then 196 echo "moved solver.stat in ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette 197 echo "moved solver.stat in ${NEMO_VALID} directory" 198 else 199 echo "problem in looking for solver.stat file in ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette 200 echo "solver.stat IS NOT in ${NEMO_VALID} directory" 201 fi 202 if [ -n "$(ls ${NEMO_VALID}/*ocean.output*)" ] ; then 203 echo "moved ocean.output in ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette 204 echo "moved ocean.output in ${NEMO_VALID} directory" 205 else 206 echo "problem in looking for ocean.output file in ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette 207 echo "ocean.output IS NOT in ${NEMO_VALID} directory" 208 fi 209 } -
branches/2011/dev_r2855_LOCEAN7_SETTE/NEMOGCM/SETTE/fcm_job.sh
r2687 r2890 31 31 # =========== 32 32 # 33 #34 33 # Simple job for SET TESTS for NEMO (SETTE) 35 #36 # this job creates tree of validation in NEMO_VALIDATION_DIR as follows :37 #38 # NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/TEST_NAME/REVISION_NUMBER(or DATE)39 34 # 40 # NEMO_VALIDATION_DIR : is choosen in param.cfg 41 # 42 # WCONFIG_NAME : set by makenemo at the moment of compilation 43 # 44 # WCOMPILER_NAME : set by makenemo at the moment of compilation 45 # 46 # TEST_NAME : convention is LONG=10 days run, SHORT=5 days run 47 # 48 # REVISION_NUMBER(or DATE) : revision number by svn info, if problems with svn date is taken 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 & ocean.output) 49 43 # 50 44 # EXAMPLES … … 55 49 # $ ./fcm_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME 56 50 # 57 # run a job of config GYRE with 1 processor test REPRODUCTINILITY51 # run a job of config GYRE with 1 processor SHORT test ( 5 days ) 58 52 # $ ./fcm_job.sh input_GYRE.cfg 1 SHORT 59 53 # … … 81 75 82 76 usage=" Usage : ./fcm_job.sh input_CONFIG_NAME.cfg NUMBER_OF_PROCS TEST_NAME" 83 usage=" example : ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 8 RUN"77 usage=" example : ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 8 SHORT" 84 78 85 79 … … 97 91 fi 98 92 93 # 94 # set and export TEST_NAME. It will be used within the post_test_tidyup function 95 # 96 export TEST_NAME=$3 97 98 # export EXE_DIR. This directory is used to execute model 99 # 100 export EXE_DIR 101 # 102 # 99 103 echo "date: `date`" >> ${SETTE_DIR}/output.sette 100 104 echo "" >> ${SETTE_DIR}/output.sette … … 117 121 echo " " >> ${SETTE_DIR}/output.sette 118 122 cp ${FORCING_DIR}/${tar_file} ${INPUT_DIR}/. 123 echo "file in ${INPUT_DIR}" 119 124 if [ ! -f ${INPUT_DIR}/${tar_file} ] ; then 120 125 echo "PROBLEM during copy of tar file" >> ${SETTE_DIR}/output.sette … … 124 129 exit 1 125 130 else 126 cd ${ INPUT_DIR} ; tar xvof ${INPUT_DIR}/*.tar ; gunzip -f *gz131 cd ${EXE_DIR} ; tar xvof ${INPUT_DIR}/*.tar ; gunzip -f *gz 127 132 fi 128 133 fi 129 134 130 if [ -f ${INPUT_DIR}/namelist_ice_lim2 ] ; then 135 if [ ! -f ${EXE_DIR}/namelist_ice ] ; then 136 if [ -f ${EXE_DIR}/namelist_ice_lim2 ] ; then 131 137 echo "choosing for namelist ice " >> ${SETTE_DIR}/output.sette 132 138 echo " " >> ${SETTE_DIR}/output.sette 133 cp ${INPUT_DIR}/namelist_ice_lim2 ${INPUT_DIR}/namelist_ice 134 elif [ -f ${INPUT_DIR}/namelist_ice_lim3 ] ; then 135 cp ${INPUT_DIR}/namelist_ice_lim3 ${INPUT_DIR}/namelist_ice 139 cp ${EXE_DIR}/namelist_ice_lim2 ${EXE_DIR}/namelist_ice 140 elif [ -f ${EXE_DIR}/namelist_ice_lim3 ] ; then 141 cp ${EXE_DIR}/namelist_ice_lim3 ${EXE_DIR}/namelist_ice 142 fi 136 143 fi 137 144 … … 141 148 echo "choosing for namelist for AGRIF" >> ${SETTE_DIR}/output.sette 142 149 echo " " >> ${SETTE_DIR}/output.sette 143 cp ${ INPUT_DIR}/1_namelist_ice_lim2 ${INPUT_DIR}/1_namelist_ice150 cp ${EXE_DIR}/1_namelist_ice_lim2 ${EXE_DIR}/1_namelist_ice 144 151 fi 145 152 ################################################################ … … 147 154 ################################################################ 148 155 # RUN OPA 149 cd ${ INPUT_DIR}156 cd ${EXE_DIR} 150 157 NB_PROC=$2 151 if [ ! -r ${ INPUT_DIR}/opa ]158 if [ ! -r ${EXE_DIR}/opa ] 152 159 then 153 160 echo "executable opa does not exist" … … 159 166 echo " " >> ${SETTE_DIR}/output.sette 160 167 ./opa 168 # 169 # Tidy out output from this test and populate the NEMO_VALIDATION_DIR tree 170 # 171 post_test_tidyup 161 172 else 162 173 echo "running opa in MPI" >> ${SETTE_DIR}/output.sette 163 174 echo " " >> ${SETTE_DIR}/output.sette 164 # example for brodie (NEC SX8) machine 165 # mpirun -np ${NB_PROC} opa 166 # example for dedale machine 167 # mpirun --mca btl self,tcp -np ${NB_PROC} opa 168 # example for vargas (IBM Power6) machine 169 mpiexec -n ${NB_PROC} opa 170 fi 171 ################################################################ 172 # SMALL DEBUG 173 # echo "control that time.step exists 174 if [ ! -r ${INPUT_DIR}/time.step ] 175 then 176 echo "file time.step does not exist" >> ${SETTE_DIR}/output.sette 177 echo "some problems during execution of model" >> ${SETTE_DIR}/output.sette 178 exit 1 179 else 180 echo "file time.step exists" >> ${SETTE_DIR}/output.sette 181 echo "ok model run" >> ${SETTE_DIR}/output.sette 182 fi 183 ################################################################ 184 185 ################################################################ 186 # SAVE OUTPUT, DEBUG & RESTART FILES 187 echo "saving ocean & ice output, debug & restart files" >> ${SETTE_DIR}/output.sette 188 echo " " >> ${SETTE_DIR}/output.sette 189 [ ! -d ${OUTPUT_DIR} ] && mkdir ${OUTPUT_DIR} 190 [ -f *ocean.output ] && mv *ocean.output ${OUTPUT_DIR}/. 191 [ -f *solver.stat ] && mv *solver.stat ${OUTPUT_DIR}/. 192 [ -n "$(ls *_grid_*)" ] && mv *_grid_*.nc ${OUTPUT_DIR}/. 193 [ -n "$(ls *_ptrc_*)" ] && mv *_ptrc_*.nc ${OUTPUT_DIR}/. 194 [ -n "$(ls *_diad_*)" ] && mv *_diad_*.nc ${OUTPUT_DIR}/. 195 [ -n "`ls *restart*`" ] && cp *restart*.nc ${OUTPUT_DIR}/. 196 [ -f ice_evolu ] && mv ice_evolu ${OUTPUT_DIR}/. 197 [ -n "`ls *icemod*`" ] && mv *icemod* ${OUTPUT_DIR}/. 198 #- Save ftrace file 199 [ -f ftrace.out* ] && cp ftrace.out* ${OUTPUT_DIR}/. 200 ################################################################ 201 202 ################################################################ 203 # SAVE IN NEMO_VALIDATION tree 204 export LANG=en_US 205 cd ${CONFIG_DIR} 206 cd ../ 207 REVISION_NB=`svn info | grep -i "Revision:" | sed -e "s/ //" | cut -d ":" -f 2` 208 if [ ${#REVISION_NB} -eq 0 ] 209 then 210 echo "some problems with svn info command" 211 echo "some problems with svn info command" >> ${SETTE_DIR}/output.sette 212 REVISION_NB=`date +%Y%m%d` 213 echo "put in ${REVISION_NB} date" 214 echo "put in ${REVISION_NB} date" >> ${SETTE_DIR}/output.sette 215 else 216 echo "value of revision number of NEMOGCM: ${REVISION_NB}" 217 fi 218 cd ${NEMO_VALIDATION_DIR} 219 export TEST_NAME=$3 220 `mkdir -p ${NEMO_VALIDATION_DIR}/W${NEW_CONF}/${CMP_NAM}/${REVISION_NB}/${TEST_NAME}` 221 NEMO_VALID=${NEMO_VALIDATION_DIR}/W${NEW_CONF}/${CMP_NAM}/${REVISION_NB}/${TEST_NAME} 222 if [ -d ${NEMO_VALID} ] ; then 223 echo "created ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette 224 else 225 echo "problems in creating ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette 226 echo "EXIT," 227 exit 1 228 fi 229 [ -f ${OUTPUT_DIR}/*ocean.output ] && mv ${OUTPUT_DIR}/*ocean.output ${NEMO_VALID}/. 230 [ -f ${OUTPUT_DIR}/*solver.stat ] && mv ${OUTPUT_DIR}/*solver.stat ${NEMO_VALID}/. 231 [ -n "`ls ${OUTPUT_DIR}/*restart*`" ] && mv ${OUTPUT_DIR}/*restart* ${NEMO_VALID}/. 232 [ -f ${OUTPUT_DIR}/ice_evolu ] && mv ${OUTPUT_DIR}/ice_evolu ${NEMO_VALID}/. 233 if [ -n "$(ls ${NEMO_VALID}/*solver*)" ] ; then 234 echo "moved solver.stat in ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette 235 echo "moved solver.stat in ${NEMO_VALID} directory" 236 else 237 echo "problem in looking for solver.stat file in ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette 238 echo "solver.stat IS NOT in ${NEMO_VALID} directory" 239 fi 240 if [ -n "$(ls ${NEMO_VALID}/*ocean.output*)" ] ; then 241 echo "moved ocean.output in ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette 242 echo "moved ocean.output in ${NEMO_VALID} directory" 243 else 244 echo "problem in looking for ocean.output file in ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette 245 echo "ocean.output IS NOT in ${NEMO_VALID} directory" 246 fi 247 if [ -n "`ls ${NEMO_VALID}/*restart*`" ] ; then 248 echo "moved restart files in ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette 249 echo "moved restart files in ${NEMO_VALID} directory" 250 else 251 echo "problem in looking for restart files in ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette 252 echo "restart files ARE NOT in ${NEMO_VALID} directory" 253 fi 254 if [ -n "$(ls ${NEMO_VALID}/ice_evolu)" ] ; then 255 echo "moved ice_evolu in ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette 256 echo "moved ice_evolu in ${NEMO_VALID} directory" 257 else 258 echo "problem looking for ice_evolu file in ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette 259 echo "ice_evolu IS NOT in ${NEMO_VALID} directory" 260 fi 261 ################################################################ 175 176 if [ ${MPI_INTERACT} == "yes" ] ; then 177 # 178 # example for brodie (NEC SX8) machine 179 # mpirun -np ${NB_PROC} opa 180 # example for dedale machine 181 # mpirun --mca btl self,tcp -np ${NB_PROC} opa 182 # example for vargas (IBM Power6) machine 183 mpiexec -n ${NB_PROC} opa 184 # 185 post_test_tidyup 186 fi 187 # 188 # example for NOCS Altix system using PBS batch submission (requires ${SETTE_DIR}/sette_batch_template file) 189 # 190 if [ ${MPI_INTERACT} == "no" ] ; then 191 case ${COMPILER} in 192 ALTIX_NAUTILUS_MPT) 193 if [ ${NB_REM} == 0 ] ; then 194 # number of processes required is an integer multiple of 4 195 # 196 NB_NODES=$( echo $NB_PROC | awk '{print $1 / 4}') 197 else 198 # 199 # number of processes required is not an integer multiple of 4 200 # round up the number of nodes required. 201 # 202 NB_NODES=$( echo $NB_PROC | awk '{printf("%d",$1 / 4 + 1 )}') 203 fi 204 ;; 205 *) 206 NB_NODES=${NB_PROC} 207 ;; 208 209 esac 210 # 211 # Pass settings into job file by using sed to edit predefined strings 212 # 213 cat ${SETTE_DIR}/job_batch_template | sed -e"s/NODES/${NB_NODES}/" -e"s/NPROCS/${NB_PROC}/" \ 214 -e"s:DEF_SETTE_DIR:${SETTE_DIR}:" -e"s:DEF_INPUT_DIR:${INPUT_DIR}:" \ 215 -e"s:DEF_EXE_DIR:${EXE_DIR}:" \ 216 -e"s:DEF_CONFIG_DIR:${CONFIG_DIR}:" \ 217 -e"s:DEF_NEMO_VALIDATION:${NEMO_VALIDATION_DIR}:" -e"s:DEF_NEW_CONF:${NEW_CONF}:" \ 218 -e"s:DEF_CMP_NAM:${CMP_NAM}:" -e"s:DEF_TEST_NAME:${TEST_NAME}:" > run_sette_test.job 219 # 220 # submit job to batch system 221 ${BATCH_COMMAND} run_sette_test.job 222 fi 223 224 fi -
branches/2011/dev_r2855_LOCEAN7_SETTE/NEMOGCM/SETTE/param.cfg
r2675 r2890 1 #- execution directory2 EXE_DIR=${CONFIG_DIR}3 1 #- forcing files storing 4 FORCING_DIR= ~/FORCING2 FORCING_DIR=/workgpfs/rech/eee/reee605/FORCING 5 3 #- input files storing 6 4 INPUT_DIR=${CONFIG_DIR}/${NEW_CONF}/EXP00 7 5 #- only for IBM 8 # TMPDIR=${CONFIG_DIR}/${NEW_CONF}/EXP00 9 #- output files storing 10 OUTPUT_DIR=${CONFIG_DIR}/${NEW_CONF}/EXP00/OUTPUT 6 TMPDIR=${CONFIG_DIR}/${NEW_CONF}/EXP00 11 7 #- VALIDATION files storing 12 8 NEMO_VALIDATION_DIR=~/NEMO_VALIDATION -
branches/2011/dev_r2855_LOCEAN7_SETTE/NEMOGCM/SETTE/sette.sh
r2756 r2890 35 35 # =========== 36 36 # 37 # principal script is sette.sh, that calls 37 # Variables to be checked by user: 38 # 39 # COMPILER : name of compiler as defined in NEMOGCM/ARCH directory 40 # 41 # BATCH_COMMAND : name of the command for batch submission 42 # 43 # MPI_INTERACT : 44 # 45 # for MPP tests, "no" for batch execution, "yes" for interactive execution 46 # 47 # NOTE: for run with 1 process tests are run always in MPI_INTERACT="yes" 48 # 49 # Principal script is sette.sh, that calls 38 50 # 39 51 # makenemo 40 52 # 41 # creates the exectuable in ${CONFIG_NAME}/BLD/bin/nemo.exe 42 # 43 # (and its link opa in ${CONFIG_NAME}/EXP00) 44 # 45 # param.cfg : sets and loads following directories 46 # 47 # Executing directory (EXE_DIR) 48 # 49 50 # 51 # Input files storing (INPUT_DIR) 52 # 53 # Temporary directory (if needed) (TMPDIR) 53 # creates the exectuable in ${CONFIG_NAME}/BLD/bin/nemo.exe (and its link opa in ${CONFIG_NAME}/EXP00) 54 # 55 # param.cfg : sets and loads following directories: 56 # 57 # FORCING_DIR : is the directory for forcing files (tarfile) 58 # 59 # INPUT_DIR : is the directory for input files storing 60 # 61 # TMPDIR : is the temporary directory (if needed) 54 62 # 55 # Validation directory (NEMO_VALIDATION_DIR) 56 # 57 # (note: this file is the same for all configrations to be tested with sette) 63 # NEMO_VALIDATION_DIR : is the validation directory 64 # 65 # (NOTE: this file is the same for all configrations to be tested with sette) 66 # 58 67 # 59 68 # all_functions.sh : loads functions used by sette (note: new functions can be added here) 60 69 # 61 # set_namelist : function declared in all_functions that set namelist parameters for tests 70 # set_namelist : function declared in all_functions that set namelist parameters for tests 71 # 72 # post_test_tidyup : creates validation storage directory and copy needed output files (solver.stat and ocean.output) in it after execution of test. 73 # 74 # Tree of VALIDATION is: 75 # 76 # NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/TEST_NAME/REVISION_NUMBER(or DATE) 77 # 78 # 79 # prepare_exe_dir.sh : defines and creates directory where the test is executed 80 # 81 # execution directory takes name of TEST_NAME defined in every test in sette.sh 82 # 83 # ( each test in executed in its own directory ) 84 # 62 85 # 63 86 # fcm_job.sh 64 87 # 65 # runs job and saves output files (grid_files, restarts, ice_evolu, ftrace.out) 66 # 67 # and it creates tree of VALIDATION, in which there are restart files, solver.stat and ocean.output 68 # 69 # Tree of VALIDATION is: 70 # 71 # NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/TEST_NAME/REVISION_NUMBER(or DATE) 88 # runs job in interactive or batch mode : all jobs using 1 process are run interactive, and all MPP jobs are 89 # 90 # run in batch (MPI_INTERACT="no") or interactive (MPI_INTERACT="yes") see sette.sh and BATCH_TEMPLATE directory 91 # 92 # (note this job needs to have an input_CONFIG.cfg in which can be found input tar file) 72 93 # 73 # (note this job needs to have an input_CONFIG.cfg in which can be found input tar file)74 # 75 # (note other files can be saved adding at the end of fcm_job list of saved files)94 # NOTE: if job is not launched for some problems you have executable ready in ${EXE_DIR} directory 95 # 96 # NOTE: the changed namelists are leaved in ${EXE_DIR} directory whereas original namelist remains in ${NEW_CONF}/EXP00 76 97 # 77 # NOTE: if job is not launched for some problems you have executable ready in ${CONFIG_NAME}/EXP00 directory 78 # 79 # NOTE: the changed namelists are leaved in ${CONFIG_NAME}/EXP00 directory 80 # 81 # in ${SETTE_DIR} is created output.sette with the echo of commands run 98 # in ${SETTE_DIR} is created output.sette with the echo of executed commands 82 99 # 83 100 # if sette.sh is stopped in output.sette there is written the last command executed by sette.sh … … 113 130 # Compiler among those in NEMOGCM/ARCH 114 131 COMPILER=PW6_VARGAS 132 export BATCH_COMMAND=llsubmit 133 export MPI_INTERACT="no" 115 134 116 135 # Directory to run the tests … … 122 141 123 142 CMP_NAM=${1:-$COMPILER} 124 # # NBTEST=8125 ## echo "TOTAL NUMBER OF TEST" ${NBTEST}126 ## for (( config=2; config<=${NBTEST}; config++ )) 143 # Copy job_batch_COMPILER file for specific compiler into job_batch_template 144 cd ${SETTE_DIR} 145 cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 127 146 128 147 for config in 1 2 3 4 5 6 7 8 … … 131 150 if [ ${config} -eq 1 ] ; then 132 151 # Restartability tests for GYRE_LOBSTER 152 export TEST_NAME="LONG" 133 153 cd ${SETTE_DIR} 134 154 . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRELOB_LONG -r GYRE_LOBSTER del_key "key_diatrc" … … 136 156 . param.cfg 137 157 . all_functions.sh 138 copy_original namelist139 c opy_original namelist_top158 . prepare_exe_dir.sh 159 cd ${EXE_DIR} 140 160 set_namelist namelist cn_exp \"GYRELOB_LONG\" 141 161 set_namelist namelist nn_it000 1 … … 145 165 set_namelist namelist_top ln_trcrad .false. 146 166 cd ${SETTE_DIR} 147 . ./fcm_job.sh input_GYRE.cfg 1 LONG 148 149 cd ${SETTE_DIR} 150 copy_original namelist 151 copy_original namelist_top 167 . ./fcm_job.sh input_GYRE.cfg 1 ${TEST_NAME} 168 169 cd ${SETTE_DIR} 170 export TEST_NAME="SHORT" 171 . prepare_exe_dir.sh 172 cd ${EXE_DIR} 152 173 set_namelist namelist cn_exp \"GYRELOB_SHORT\" 153 174 set_namelist namelist nn_it000 61 … … 157 178 set_namelist namelist nn_rstctl 2 158 179 set_namelist namelist ln_clobber .true. 180 cp ..\/LONG\/GYRELOB_LONG_00000060_restart.nc . 159 181 set_namelist namelist cn_ocerst_in \"GYRELOB_LONG_00000060_restart.nc\" 160 182 set_namelist namelist_top ln_trcrad .false. 161 183 set_namelist namelist_top ln_rsttr .true. 162 184 set_namelist namelist_top nn_rsttr 2 185 cp ..\/LONG\/GYRELOB_LONG_00000060_restart_trc.nc . 163 186 set_namelist namelist_top cn_trcrst_in \"GYRELOB_LONG_00000060_restart_trc\" 164 187 cd ${SETTE_DIR} 165 . ./fcm_job.sh input_GYRE.cfg 1 SHORT188 . ./fcm_job.sh input_GYRE.cfg 1 ${TEST_NAME} 166 189 fi 167 190 168 191 if [ ${config} -eq 2 ] ; then 169 192 # Restartability tests for ORCA2_LIM_PISCES 193 export TEST_NAME="LONG" 170 194 cd ${SETTE_DIR} 171 195 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_LONG -r ORCA2_LIM_PISCES del_key "key_dtatrc key_diatrc" 172 196 cd ${SETTE_DIR} 173 copy_original namelist 174 copy_original namelist_top 175 copy_original namelist_pisces 176 . param.cfg 177 . all_functions.sh 197 . param.cfg 198 . all_functions.sh 199 . prepare_exe_dir.sh 200 cd ${EXE_DIR} 178 201 set_namelist namelist cn_exp \"O2LP_LONG\" 179 202 set_namelist namelist nn_it000 1 … … 190 213 set_namelist namelist_pisces ln_sedinput .false. 191 214 cd ${SETTE_DIR} 192 . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 1 LONG215 . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 1 ${TEST_NAME} 193 216 194 217 cd ${SETTE_DIR} 195 copy_original namelist 196 copy_original namelist_ice 197 copy_original namelist_top 198 copy_original namelist_pisces 218 export TEST_NAME="SHORT" 219 . prepare_exe_dir.sh 220 cd ${EXE_DIR} 199 221 set_namelist namelist cn_exp \"O2LP_SHORT\" 200 222 set_namelist namelist nn_it000 76 … … 204 226 set_namelist namelist nn_rstctl 2 205 227 set_namelist namelist ln_clobber .true. 206 set_namelist namelist cn_ocerst_in \"O2LP_LONG_00000075_restart.nc\" 207 set_namelist namelist_ice cn_icerst_in \"O2LP_LONG_00000075_restart_ice.nc\" 228 cp ../LONG/O2LP_LONG_00000075_restart.nc . 229 set_namelist namelist cn_ocerst_in \"O2LP_LONG_00000075_restart\" 230 cp ../LONG/O2LP_LONG_00000075_restart_ice.nc . 231 set_namelist namelist_ice cn_icerst_in \"O2LP_LONG_00000075_restart_ice\" 208 232 set_namelist namelist_top ln_trcrad .false. 209 233 set_namelist namelist_top ln_rsttr .true. 210 234 set_namelist namelist_top nn_rsttr 2 235 cp ../LONG/O2LP_LONG_00000075_restart_trc.nc . 211 236 set_namelist namelist_top cn_trcrst_in \"O2LP_LONG_00000075_restart_trc\" 212 237 # put ln_pisdmp, ln_dustfer, ln_river, ln_ndepo, ln_sedinput … … 218 243 set_namelist namelist_pisces ln_sedinput .false. 219 244 cd ${SETTE_DIR} 220 . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 1 SHORT245 . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 1 ${TEST_NAME} 221 246 fi 222 247 223 248 if [ ${config} -eq 3 ] ; then 224 249 ## Restartability tests for POMME 250 export TEST_NAME="LONG" 225 251 cd ${SETTE_DIR} 226 252 . ../CONFIG/makenemo -m ${CMP_NAM} -n POMME_LONG -r POMME … … 228 254 . param.cfg 229 255 . all_functions.sh 230 copy_original namelist 256 . prepare_exe_dir.sh 257 cd ${EXE_DIR} 231 258 set_namelist namelist cn_exp \"POMME_LONG\" 232 259 set_namelist namelist nn_it000 1 260 set_namelist namelist nn_stock 300 233 261 set_namelist namelist nn_itend 600 234 262 set_namelist namelist ln_clobber .true. 235 263 cd ${SETTE_DIR} 236 . ./fcm_job.sh input_POMME.cfg 1 LONG264 . ./fcm_job.sh input_POMME.cfg 1 ${TEST_NAME} 237 265 238 266 cd ${SETTE_DIR} 239 copy_original namelist 267 export TEST_NAME="SHORT" 268 . prepare_exe_dir.sh 269 cd ${EXE_DIR} 240 270 set_namelist namelist cn_exp \"POMME_SHORT\" 241 271 set_namelist namelist nn_it000 301 242 272 set_namelist namelist nn_itend 600 243 set_namelist namelist nn_stock 300244 273 set_namelist namelist ln_rstart .true. 245 274 set_namelist namelist nn_rstctl 2 246 275 set_namelist namelist ln_clobber .true. 247 set_namelist namelist cn_ocerst_in \"POMME_LONG_00000075_restart.nc\" 248 mv ${OUTPUT_DIR}/restart.obc.output ${OUTPUT_DIR}/restart.obc 249 cd ${SETTE_DIR} 250 . ./fcm_job.sh input_POMME.cfg 1 SHORT 276 cp ../LONG/POMME_LONG_00000300_restart.nc . 277 set_namelist namelist cn_ocerst_in \"POMME_LONG_00000300_restart\" 278 cp ../LONG/restart.obc.output restart.obc 279 #mv restart.obc.output restart.obc 280 cd ${SETTE_DIR} 281 . ./fcm_job.sh input_POMME.cfg 1 ${TEST_NAME} 251 282 fi 252 283 253 284 if [ ${config} -eq 4 ] ; then 254 ## Reproducilibity tests for GYRE_LOBSTER285 export TEST_NAME="REPRO_1_4" 255 286 cd ${SETTE_DIR} 256 287 . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRELOB_4 -r GYRE_LOBSTER add_key "key_mpp_mpi key_mpp_rep" del_key "key_vectopt_loop key_diatrc" … … 258 289 . param.cfg 259 290 . all_functions.sh 260 copy_original namelist 291 . prepare_exe_dir.sh 292 cd ${EXE_DIR} 261 293 set_namelist namelist cn_exp \"GYRELOB_14\" 262 294 set_namelist namelist nn_it000 1 263 set_namelist namelist nn_itend 75295 set_namelist namelist nn_itend 60 264 296 set_namelist namelist nn_fwb 0 265 297 set_namelist namelist nn_bench 0 … … 270 302 set_namelist namelist jpnij 4 271 303 cd ${SETTE_DIR} 272 . ./fcm_job.sh input_GYRE.cfg 4 REPRO_1_4304 . ./fcm_job.sh input_GYRE.cfg 4 ${TEST_NAME} 273 305 274 306 cd ${SETTE_DIR} 275 copy_original namelist 307 export TEST_NAME="REPRO_2_2" 308 . prepare_exe_dir.sh 309 cd ${EXE_DIR} 276 310 set_namelist namelist cn_exp \"GYRELOB_22\" 277 311 set_namelist namelist nn_it000 1 278 set_namelist namelist nn_itend 75312 set_namelist namelist nn_itend 60 279 313 set_namelist namelist nn_fwb 0 280 314 set_namelist namelist ln_ctl .false. … … 284 318 set_namelist namelist jpnij 4 285 319 cd ${SETTE_DIR} 286 . ./fcm_job.sh input_GYRE.cfg 4 REPRO_2_2320 . ./fcm_job.sh input_GYRE.cfg 4 ${TEST_NAME} 287 321 fi 288 322 289 323 if [ ${config} -eq 5 ] ; then 290 324 ## Repropducilibity tests for ORCA2_LIM_PISCES 291 cd ${SETTE_DIR} 292 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_16 -r ORCA2_LIM_PISCES add_key "key_mpp_mpi key_mpp_rep" del_key "key_vectopt_loop key_dtatrc key_diatrc" 293 cd ${SETTE_DIR} 294 . param.cfg 295 . all_functions.sh 296 copy_original namelist 297 copy_original namelist_pisces 325 export TEST_NAME="REPRO_4_4" 326 cd ${SETTE_DIR} 327 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_16 -r ORCA2_LIM_PISCES add_key "key_mpp_mpi key_mpp_rep" del_key "key_v 328 ectopt_loop key_dtatrc key_diatrc" 329 cd ${SETTE_DIR} 330 . param.cfg 331 . all_functions.sh 332 . prepare_exe_dir.sh 333 cd ${EXE_DIR} 298 334 set_namelist namelist nn_it000 1 299 335 set_namelist namelist nn_itend 75 … … 303 339 set_namelist namelist jpni 4 304 340 set_namelist namelist jpnj 4 305 set_namelist namelist jpnij 16 341 set_namelist namelist jpnij 16 306 342 # put ln_pisdmp, ln_dustfer, ln_river, ln_ndepo, ln_sedinput to false 307 343 # if not you need input files, and for tests is not necessary … … 312 348 set_namelist namelist_pisces ln_sedinput .false. 313 349 cd ${SETTE_DIR} 314 . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 16 REPRO_4_4 315 316 cd ${SETTE_DIR} 317 copy_original namelist 318 copy_original namelist_pisces 350 . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 16 ${TEST_NAME} 351 352 cd ${SETTE_DIR} 353 export TEST_NAME="REPRO_2_8" 354 . prepare_exe_dir.sh 355 cd ${EXE_DIR} 319 356 set_namelist namelist nn_it000 1 320 357 set_namelist namelist nn_itend 75 … … 333 370 set_namelist namelist_pisces ln_sedinput .false. 334 371 cd ${SETTE_DIR} 335 . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 16 REPRO_2_8372 . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 16 ${TEST_NAME} 336 373 fi 337 374 338 375 if [ ${config} -eq 6 ] ; then 339 376 ## Reproductibility tests for POMME 377 export TEST_NAME="REPRO_1_4" 340 378 cd ${SETTE_DIR} 341 379 . ../CONFIG/makenemo -m ${CMP_NAM} -n POMME_4 -r POMME add_key "key_mpp_mpi key_mpp_rep" … … 343 381 . param.cfg 344 382 . all_functions.sh 345 copy_original namelist 383 . prepare_exe_dir.sh 384 cd ${EXE_DIR} 346 385 set_namelist namelist nn_it000 1 347 386 set_namelist namelist nn_itend 300 … … 353 392 set_namelist namelist jpnij 4 354 393 cd ${SETTE_DIR} 355 . ./fcm_job.sh input_POMME.cfg 4 REPRO_1_4 356 357 cd ${SETTE_DIR} 358 copy_original namelist 394 . ./fcm_job.sh input_POMME.cfg 4 ${TEST_NAME} 395 396 cd ${SETTE_DIR} 397 export TEST_NAME="REPRO_2_2" 398 . prepare_exe_dir.sh 399 cd ${EXE_DIR} 359 400 set_namelist namelist nn_it000 1 360 401 set_namelist namelist nn_itend 300 … … 366 407 set_namelist namelist jpnij 4 367 408 cd ${SETTE_DIR} 368 . ./fcm_job.sh input_POMME.cfg 4 REPRO_2_2409 . ./fcm_job.sh input_POMME.cfg 4 ${TEST_NAME} 369 410 fi 370 411 371 412 if [ ${config} -eq 7 ] ; then 372 413 ## ORCA2_LIM with Agulhas AGRIF zoom 373 cd ${SETTE_DIR} 374 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2AGUL -r ORCA2_LIM add_key "key_agrif" del_key "key_vectopt_loop key_zdftmx" 375 cd ${SETTE_DIR} 376 . param.cfg 377 . all_functions.sh 378 copy_original namelist 379 copy_original 1_namelist 414 export TEST_NAME="SHORT" 415 cd ${SETTE_DIR} 416 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2AGUL -r ORCA2_LIM add_key "key_agrif" del_key "key_vectopt_loop key_zdftmx" 417 cd ${SETTE_DIR} 418 . param.cfg 419 . all_functions.sh 420 . prepare_exe_dir.sh 421 cd ${EXE_DIR} 380 422 set_namelist namelist nn_it000 1 381 423 set_namelist namelist nn_itend 75 … … 387 429 set_namelist 1_namelist ln_clobber .true. 388 430 cd ${SETTE_DIR} 389 . ./fcm_job.sh input_ORCA2_LIM .cfg 1 SHORT431 . ./fcm_job.sh input_ORCA2_LIM_AGRIF.cfg 1 ${TEST_NAME} 390 432 fi 391 433 392 434 if [ ${config} -eq 8 ] ; then 393 435 ## ORCA2_LIM with Agulhas AGRIF zoom in MPI 394 cd ${SETTE_DIR} 395 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2AGUL_1_2 -r ORCA2_LIM add_key "key_mpp_mpi key_agrif" del_key "key_vectopt_loop key_zdftmx" 396 cd ${SETTE_DIR} 397 . param.cfg 398 . all_functions.sh 399 copy_original namelist 400 copy_original 1_namelist 436 export TEST_NAME="SHORT" 437 cd ${SETTE_DIR} 438 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2AGUL_1_2 -r ORCA2_LIM add_key "key_mpp_mpi key_agrif" del_key "key_vectopt_loop key_zdftmx" 439 cd ${SETTE_DIR} 440 . param.cfg 441 . all_functions.sh 442 . prepare_exe_dir.sh 443 cd ${EXE_DIR} 401 444 set_namelist namelist nn_it000 1 402 445 set_namelist namelist nn_itend 75 … … 405 448 set_namelist namelist jpni 1 406 449 set_namelist namelist jpnj 2 407 set_namelist namelist jpnij 2 450 set_namelist namelist jpnij 2 408 451 set_namelist 1_namelist nn_it000 1 409 452 set_namelist 1_namelist nn_itend 150 … … 411 454 set_namelist 1_namelist ln_clobber .true. 412 455 cd ${SETTE_DIR} 413 . ./fcm_job.sh input_ORCA2_LIM .cfg 2 SHORT456 . ./fcm_job.sh input_ORCA2_LIM_AGRIF.cfg 2 ${TEST_NAME} 414 457 fi 415 458 -
branches/2011/dev_r2855_LOCEAN7_SETTE/NEMOGCM/SETTE/sette_beginner.sh
r2754 r2890 38 38 # 39 39 # Compiler among those in NEMOGCM/ARCH 40 COMPILER=gfortran_linux 40 COMPILER=PW6_VARGAS 41 export BATCH_COMMAND=llsubmit 42 export MPI_INTERACT="no" 41 43 42 44 # Directory to run the tests … … 48 50 49 51 CMP_NAM=${1:-$COMPILER} 52 # Copy job_batch_COMPILER file for specific compiler into job_batch_template 53 cd ${SETTE_DIR} 54 cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 50 55 51 56 # Run for GYRE CONFIG 52 57 # small test to start 53 58 # compile GYRE configuration with gfortran_osx compiler run with 1 proc, by default in cpp_GYRE.fcm file : 59 export TEST_NAME="TEST01" 54 60 cd ${SETTE_DIR} 55 61 . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRE_SHORT -r GYRE … … 57 63 . param.cfg 58 64 . all_functions.sh 65 # creation of execution directory 66 . prepare_exe_dir.sh 67 cd ${EXE_DIR} 59 68 # setting namelist parameters 60 69 # experience name … … 68 77 cd ${SETTE_DIR} 69 78 # run job, with 1 processor, test named SHORT (= 60 time steps) 70 . ./fcm_job.sh input_GYRE.cfg 1 SHORT79 . ./fcm_job.sh input_GYRE.cfg 1 ${TEST_NAME}
Note: See TracChangeset
for help on using the changeset viewer.