Changeset 3294 for trunk/NEMOGCM/SETTE
- Timestamp:
- 2012-01-28T17:44:18+01:00 (12 years ago)
- Location:
- trunk/NEMOGCM/SETTE
- Files:
-
- 11 edited
- 11 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMOGCM/SETTE/BATCH_TEMPLATE/batch-ALTIX_NAUTILUS_MPT
r3050 r3294 8 8 #PBS -W group_list=nemo 9 9 #PBS -j oe 10 10 # 11 OCEANCORES=NPROCS 12 export SETTE_DIR=DEF_SETTE_DIR 13 # 14 # load sette functions (only post_test_tidyup needed) 15 # 16 . ${SETTE_DIR}/all_functions.sh 11 17 ############################################################### 12 18 # … … 27 33 export SVN_HOME=/fibre/acc/UTILS/svn/v1.5/svn 28 34 # 29 #30 # Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these31 # (via sed operating on this template job file). Note that the number of compute nodes required32 # (half-populated on the NOCS ALTIX system) is also set by the fcm_job.sh on the PBS select33 # header line above.34 #35 OCEANCORES=NPROCS36 export SETTE_DIR=DEF_SETTE_DIR37 #38 # These variables are needed by post_test_tidyup function in all_functions.sh39 #40 export INPUT_DIR=DEF_INPUT_DIR41 export OUTPUT_DIR=DEF_OUTPUT_DIR42 export CONFIG_DIR=DEF_CONFIG_DIR43 export NEMO_VALIDATION_DIR=DEF_NEMO_VALIDATION44 export NEW_CONF=DEF_NEW_CONF45 export CMP_NAM=DEF_CMP_NAM46 export TEST_NAME=DEF_TEST_NAME47 export EXE_DIR=DEF_EXE_DIR48 #49 # end of set up50 ###############################################################51 #52 # change to the working directory53 #54 cd $PBS_O_WORKDIR55 #56 # load sette functions (only post_test_tidyup needed)57 #58 . ${SETTE_DIR}/all_functions.sh59 #60 35 echo Running on host `hostname` 61 36 echo Time is `date` 62 echo Directory is `pwd`63 37 echo PBS job ID is $PBS_JOBID 64 38 echo This jobs runs on the following machines: … … 79 53 echo export OMP_NUM_THREADS=1 80 54 # 55 # Don't remove neither change the following line 56 # BODY 57 # 58 # Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these 59 # (via sed operating on this template job file). Note that the number of compute nodes required 60 # (half-populated on the NOCS ALTIX system) is also set by the fcm_job.sh on the PBS select 61 # header line above. 62 # 63 # These variables are needed by post_test_tidyup function in all_functions.sh 64 # 65 export INPUT_DIR=DEF_INPUT_DIR 66 export CONFIG_DIR=DEF_CONFIG_DIR 67 export NEMO_VALIDATION_DIR=DEF_NEMO_VALIDATION 68 export NEW_CONF=DEF_NEW_CONF 69 export CMP_NAM=DEF_CMP_NAM 70 export TEST_NAME=DEF_TEST_NAME 71 export EXE_DIR=DEF_EXE_DIR 72 # 73 # end of set up 74 ############################################################### 75 # 76 # change to the working directory 77 # 78 # cd $PBS_O_WORKDIR 79 cd $EXE_DIR 80 echo Directory is `pwd` 81 # 82 # 81 83 # Run the parallel MPI executable 82 84 # … … 86 88 # 87 89 post_test_tidyup 90 # END_BODY 91 # Don't remove neither change the previous line 88 92 exit -
trunk/NEMOGCM/SETTE/BATCH_TEMPLATE/batch-PW6_VARGAS
r2890 r3294 14 14 # @ queue 15 15 16 # 17 # Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these 18 # (via sed operating on this template job file). 19 # 20 OCEANCORES=NPROCS 21 export SETTE_DIR=DEF_SETTE_DIR 22 16 23 ############################################################### 17 24 # … … 20 27 # Local settings for machine IBM Power6 (VARGAS at IDRIS France) 21 28 # 22 export MPIRUN="mpiexec -n" 29 export MPIRUN="mpiexec -n $OCEANCORES" 30 23 31 # 24 # Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these 25 # (via sed operating on this template job file). 32 # load sette functions (only post_test_tidyup needed) 26 33 # 27 OCEANCORES=NPROCS 28 export SETTE_DIR=DEF_SETTE_DIR 34 . ${SETTE_DIR}/all_functions.sh 35 # 36 37 # Don't remove neither change the following line 38 # BODY 39 29 40 # 30 41 # These variables are needed by post_test_tidyup function in all_functions.sh … … 45 56 cd ${EXE_DIR} 46 57 47 #48 # load sette functions (only post_test_tidyup needed)49 #50 . ${SETTE_DIR}/all_functions.sh51 #52 58 echo Running on host `hostname` 53 59 echo Time is `date` … … 56 62 # Run the parallel MPI executable 57 63 # 58 echo "Running time ${MPIRUN} " $OCEANCORES "./opa"64 echo "Running time ${MPIRUN} ./opa" 59 65 # 60 time ${MPIRUN} " $OCEANCORES" ./opa 66 if [ MPI_FLAG == "yes" ]; then 67 time ${MPIRUN} ./opa 68 else 69 time ./opa 70 fi 71 61 72 # 62 73 post_test_tidyup 74 75 # END_BODY 76 # Don't remove neither change the previous line 77 78 63 79 exit -
trunk/NEMOGCM/SETTE/BATCH_TEMPLATE/batch-X64_TITANE
r3029 r3294 6 6 ########################################################################## 7 7 # 8 # set up mpp computing environment9 #10 # Local settings for machine BULL (TITANE at CCRT France)11 #12 export MPIRUN="mpirun -np"13 #14 8 # Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these 15 9 # (via sed operating on this template job file). … … 17 11 OCEANCORES=NPROCS 18 12 export SETTE_DIR=DEF_SETTE_DIR 13 # 14 # set up mpp computing environment 15 # 16 # Local settings for machine BULL (TITANE at CCRT France) 17 # 18 export MPIRUN="mpirun -np $OCEANCORES" 19 20 # 21 # load sette functions (only post_test_tidyup needed) 22 # 23 . ${SETTE_DIR}/all_functions.sh 24 # 25 26 # modules to load 27 module load netcdf 28 29 # Don't remove neither change the following line 30 # BODY 31 19 32 # 20 33 # These variables are needed by post_test_tidyup function in all_functions.sh … … 27 40 export CMP_NAM=DEF_CMP_NAM 28 41 export TEST_NAME=DEF_TEST_NAME 29 # modules to load30 module load netcdf31 42 # 32 43 # end of set up … … 37 48 cd ${EXE_DIR} 38 49 39 #40 # load sette functions (only post_test_tidyup needed)41 #42 . ${SETTE_DIR}/all_functions.sh43 #44 50 echo Running on host `hostname` 45 51 echo Time is `date` … … 48 54 # Run the parallel MPI executable 49 55 # 50 echo "Running time ${MPIRUN} " $OCEANCORES "./opa"56 echo "Running time ${MPIRUN} ./opa" 51 57 # 52 time ${MPIRUN} " $OCEANCORES" ./opa 58 if [ MPI_FLAG == "yes" ]; then 59 time ${MPIRUN} ./opa 60 else 61 time ./opa 62 fi 63 53 64 # 54 65 post_test_tidyup 66 67 # END_BODY 68 # Don't remove neither change the previous line 69 70 55 71 exit 56 72 -
trunk/NEMOGCM/SETTE/BATCH_TEMPLATE/sette_batch_template
r2890 r3294 14 14 # @ queue 15 15 16 # 17 # Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these 18 # (via sed operating on this template job file). 19 # 20 OCEANCORES=NPROCS 21 export SETTE_DIR=DEF_SETTE_DIR 22 16 23 ############################################################### 17 24 # … … 20 27 # Local settings for machine IBM Power6 (VARGAS at IDRIS France) 21 28 # 22 export MPIRUN="mpiexec -n" 29 export MPIRUN="mpiexec -n $OCEANCORES" 30 23 31 # 24 # Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these 25 # (via sed operating on this template job file). 32 # load sette functions (only post_test_tidyup needed) 26 33 # 27 OCEANCORES=NPROCS 28 export SETTE_DIR=DEF_SETTE_DIR 34 . ${SETTE_DIR}/all_functions.sh 35 36 # Don't remove neither change the following comment line 37 # BODY 38 39 29 40 # 30 41 # These variables are needed by post_test_tidyup function in all_functions.sh … … 39 50 # 40 51 # end of set up 52 53 41 54 ############################################################### 42 55 # … … 45 58 cd ${EXE_DIR} 46 59 47 #48 # load sette functions (only post_test_tidyup needed)49 #50 . ${SETTE_DIR}/all_functions.sh51 #52 60 echo Running on host `hostname` 53 61 echo Time is `date` … … 56 64 # Run the parallel MPI executable 57 65 # 58 echo "Running time ${MPIRUN} " $OCEANCORES "./opa"66 echo "Running time ${MPIRUN} ./opa" 59 67 # 60 time ${MPIRUN} " $OCEANCORES" ./opa 68 69 if [ MPI_FLAG == "yes" ]; then 70 time ${MPIRUN} ./opa 71 else 72 time ./opa 73 fi 74 75 61 76 # 62 77 post_test_tidyup 78 79 # END_BODY 80 # Don't remove neither change the previous comment line 81 63 82 exit -
trunk/NEMOGCM/SETTE/README
r2757 r3294 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 files 33 NEMO_VALIDATION_DIR : directory in which create NEMO_VALIDATION tree, and store restart, solver.stat and ocean.output files in 42 NEMO_VALIDATION_DIR : directory in which create NEMO_VALIDATION tree, and store restart, solver.stat, tracer.stat and ocean.output files in 34 43 tree NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/TEST_NAME/REVISION_NUMBER(or DATE) 35 44 in fcm_job.sh : 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") -
trunk/NEMOGCM/SETTE/all_functions.sh
r2756 r3294 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, tracer.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 [ -f ${EXE_DIR}/*tracer.stat ] && cp ${EXE_DIR}/*tracer.stat ${NEMO_VALID}/. 196 if [ -n "$(ls ${NEMO_VALID}/*solver*)" ] ; then 197 echo "moved solver.stat in ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette 198 echo "moved solver.stat in ${NEMO_VALID} directory" 199 else 200 echo "problem in looking for solver.stat file in ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette 201 echo "solver.stat IS NOT in ${NEMO_VALID} directory" 202 fi 203 if [ -n "$(ls ${NEMO_VALID}/*ocean.output*)" ] ; then 204 echo "moved ocean.output in ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette 205 echo "moved ocean.output in ${NEMO_VALID} directory" 206 else 207 echo "problem in looking for ocean.output file in ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette 208 echo "ocean.output IS NOT in ${NEMO_VALID} directory" 209 fi 210 if [ -n "$(ls ${NEMO_VALID}/*tracer.stat*)" ] ; then 211 echo "moved tracer.stat in ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette 212 echo "moved tracer.stat in ${NEMO_VALID} directory" 213 else 214 echo "problem in looking for tracer.stat file in ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette 215 echo "tracer.stat IS NOT in ${NEMO_VALID} directory" 216 fi 217 } -
trunk/NEMOGCM/SETTE/fcm_job.sh
r2687 r3294 25 25 # :: 26 26 # 27 # $ ./fcm_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME 27 # $ ./fcm_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME MPI_INTERACT MPI_FLAG 28 28 # 29 29 # … … 31 31 # =========== 32 32 # 33 # Simple job for SET TESTS for NEMO (SETTE) 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) 33 37 # 34 # Simple job for SET TESTS for NEMO (SETTE)38 # runs job in interactive or batch mode : all jobs using 1 process are run interactive, and all MPP jobs are 35 39 # 36 # this job creates tree of validation in NEMO_VALIDATION_DIR as follows :40 # run in batch (MPI_INTERACT="no") or interactive (MPI_INTERACT="yes") see sette.sh and BATCH_TEMPLATE directory 37 41 # 38 # NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/TEST_NAME/REVISION_NUMBER(or DATE) 39 # 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 42 # and call post_test_tidyup function (that moves in NEMO_VALIDATION_DIR solver.stat, tracer.stat (for LOBSTER & PISCES) & ocean.output) 49 43 # 50 44 # EXAMPLES … … 53 47 # :: 54 48 # 55 # $ ./fcm_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME 49 # $ ./fcm_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME MPI_INTERACT MPI_FLAG 56 50 # 57 # run a job of config GYRE with 1 processor test REPRODUCTINILITY58 # $ ./fcm_job.sh input_GYRE.cfg 1 SHORT 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 59 53 # 60 # run a job of config ORCA2_LIM_PISCES with 8 processors test RESTARTABILITY 61 # $ ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 8 LONG 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 62 56 # 63 57 # … … 80 74 # 81 75 82 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"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" 84 78 85 79 86 minargcount= 380 minargcount=2 87 81 if [ ${#} -lt ${minargcount} ] 88 82 then … … 97 91 fi 98 92 99 echo "date: `date`" >> ${SETTE_DIR}/output.sette100 echo "" >> ${SETTE_DIR}/output.sette101 echo "running config: ${NEW_CONF}" >> ${SETTE_DIR}/output.sette102 echo "" >> ${SETTE_DIR}/output.sette103 echo "list of cpp_keys: " >> ${SETTE_DIR}/output.sette104 echo "`more ../CONFIG/${NEW_CONF}/cpp_${NEW_CONF}.fcm`" >> ${SETTE_DIR}/output.sette105 echo "" >> ${SETTE_DIR}/output.sette106 echo "compiling with: ${CMP_NAM}" >> ${SETTE_DIR}/output.sette107 echo "" >> ${SETTE_DIR}/output.sette108 echo "executing script : \"fcm_job $@\" " >> ${SETTE_DIR}/output.sette109 echo " " >> ${SETTE_DIR}/output.sette110 93 111 ################################################################ 112 # SET INPUT 113 # get the input tarfile if needed 114 tar_file=$(sed -ne "1,1p" $1) 115 if [ "$(cat $1 | grep -c ".tar" )" -ne 0 ] ; then 116 echo "looking for tar file" >> ${SETTE_DIR}/output.sette 117 echo " " >> ${SETTE_DIR}/output.sette 118 cp ${FORCING_DIR}/${tar_file} ${INPUT_DIR}/. 119 if [ ! -f ${INPUT_DIR}/${tar_file} ] ; then 120 echo "PROBLEM during copy of tar file" >> ${SETTE_DIR}/output.sette 121 echo "tar file IS NOT present in ${INPUT_DIR} directory " >> ${SETTE_DIR}/output.sette 122 echo " " >> ${SETTE_DIR}/output.sette 123 echo "PROBLEM during copy of tar file" 124 exit 1 125 else 126 cd ${INPUT_DIR} ; tar xvof ${INPUT_DIR}/*.tar ; gunzip -f *gz 127 fi 128 fi 129 130 if [ -f ${INPUT_DIR}/namelist_ice_lim2 ] ; then 131 echo "choosing for namelist ice " >> ${SETTE_DIR}/output.sette 132 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 136 fi 137 138 139 if [ "$(cat ${CONFIG_DIR}/${NEW_CONF}/cpp_${NEW_CONF}.fcm | grep -c "agrif" )" -ne 0 ] ; then 140 #- Namelist for ocean and ice (agrif fine grid) 141 echo "choosing for namelist for AGRIF" >> ${SETTE_DIR}/output.sette 142 echo " " >> ${SETTE_DIR}/output.sette 143 cp ${INPUT_DIR}/1_namelist_ice_lim2 ${INPUT_DIR}/1_namelist_ice 144 fi 145 ################################################################ 146 94 export NB_PROCS=$1 95 export JOB_FILE=$2 147 96 ################################################################ 148 97 # RUN OPA 149 cd ${INPUT_DIR} 150 NB_PROC=$2 151 if [ ! -r ${INPUT_DIR}/opa ] 152 then 153 echo "executable opa does not exist" 154 echo "executable opa does not exist, exit" >> ${SETTE_DIR}/output.sette 155 exit 1 156 fi 157 if [ ${NB_PROC} == 1 ] ; then 158 echo "running opa" >> ${SETTE_DIR}/output.sette 159 echo " " >> ${SETTE_DIR}/output.sette 160 ./opa 161 else 162 echo "running opa in MPI" >> ${SETTE_DIR}/output.sette 163 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 ################################################################ 98 cd ${EXE_DIR} 184 99 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 ################################################################ 100 # submit job to batch system 101 if [ ${NB_PROC} -eq 1 ]; then 102 eval ${BATCH_COMMAND_SEQ} $JOB_FILE 103 else 104 eval ${BATCH_COMMAND_PAR} $JOB_FILE 105 fi 201 106 202 ################################################################203 # SAVE IN NEMO_VALIDATION tree204 export LANG=en_US205 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 then210 echo "some problems with svn info command"211 echo "some problems with svn info command" >> ${SETTE_DIR}/output.sette212 REVISION_NB=`date +%Y%m%d`213 echo "put in ${REVISION_NB} date"214 echo "put in ${REVISION_NB} date" >> ${SETTE_DIR}/output.sette215 else216 echo "value of revision number of NEMOGCM: ${REVISION_NB}"217 fi218 cd ${NEMO_VALIDATION_DIR}219 export TEST_NAME=$3220 `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} ] ; then223 echo "created ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette224 else225 echo "problems in creating ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette226 echo "EXIT,"227 exit 1228 fi229 [ -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*)" ] ; then234 echo "moved solver.stat in ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette235 echo "moved solver.stat in ${NEMO_VALID} directory"236 else237 echo "problem in looking for solver.stat file in ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette238 echo "solver.stat IS NOT in ${NEMO_VALID} directory"239 fi240 if [ -n "$(ls ${NEMO_VALID}/*ocean.output*)" ] ; then241 echo "moved ocean.output in ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette242 echo "moved ocean.output in ${NEMO_VALID} directory"243 else244 echo "problem in looking for ocean.output file in ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette245 echo "ocean.output IS NOT in ${NEMO_VALID} directory"246 fi247 if [ -n "`ls ${NEMO_VALID}/*restart*`" ] ; then248 echo "moved restart files in ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette249 echo "moved restart files in ${NEMO_VALID} directory"250 else251 echo "problem in looking for restart files in ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette252 echo "restart files ARE NOT in ${NEMO_VALID} directory"253 fi254 if [ -n "$(ls ${NEMO_VALID}/ice_evolu)" ] ; then255 echo "moved ice_evolu in ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette256 echo "moved ice_evolu in ${NEMO_VALID} directory"257 else258 echo "problem looking for ice_evolu file in ${NEMO_VALID} directory" >> ${SETTE_DIR}/output.sette259 echo "ice_evolu IS NOT in ${NEMO_VALID} directory"260 fi261 ################################################################ -
trunk/NEMOGCM/SETTE/param.cfg
r2675 r3294 1 #- execution directory2 EXE_DIR=${CONFIG_DIR}3 1 #- forcing files storing 4 2 FORCING_DIR=~/FORCING … … 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 -
trunk/NEMOGCM/SETTE/sette.sh
r2756 r3294 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 … … 112 129 #- 113 130 # Compiler among those in NEMOGCM/ARCH 114 COMPILER=PW6_VARGAS 131 COMPILER=PW6_CALYPSO 132 export BATCH_COMMAND_PAR="bsub < " 133 export BATCH_COMMAND_SEQ=$BATCH_COMMAND_PAR 134 115 135 116 136 # Directory to run the tests … … 122 142 123 143 CMP_NAM=${1:-$COMPILER} 124 # # NBTEST=8125 ## echo "TOTAL NUMBER OF TEST" ${NBTEST}126 ## for (( config=2; config<=${NBTEST}; config++ )) 127 128 for config in 1 2 3 4 5 6 7 8 144 # Copy job_batch_COMPILER file for specific compiler into job_batch_template 145 cd ${SETTE_DIR} 146 cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 147 148 for config in 1 2 3 4 5 6 7 8 9 129 149 do 130 150 151 # TESTS FOR GYRE_LOBSTER CONFIGURATION 131 152 if [ ${config} -eq 1 ] ; then 132 # Restartability tests for GYRE_LOBSTER 133 cd ${SETTE_DIR} 134 . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRELOB_LONG -r GYRE_LOBSTER del_key "key_diatrc" 135 cd ${SETTE_DIR} 136 . param.cfg 137 . all_functions.sh 138 copy_original namelist 139 copy_original namelist_top 153 ## Restartability tests for GYRE_LOBSTER 154 export TEST_NAME="LONG" 155 cd ${SETTE_DIR} 156 . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRELOB_LONG -r GYRE_LOBSTER -j 8 157 cd ${SETTE_DIR} 158 . param.cfg 159 . all_functions.sh 160 . prepare_exe_dir.sh 161 JOB_FILE=${EXE_DIR}/run_job.sh 162 MPIRUN_FLAG="yes" 163 NPROC=1 164 rm $JOB_FILE 165 cd ${EXE_DIR} 140 166 set_namelist namelist cn_exp \"GYRELOB_LONG\" 141 167 set_namelist namelist nn_it000 1 … … 143 169 set_namelist namelist nn_stock 60 144 170 set_namelist namelist ln_clobber .true. 145 set_namelist namelist_top ln_trcrad .false. 146 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 171 set_namelist namelist nn_solv 2 172 set_namelist namelist_top ln_diatrc .false. 173 cd ${SETTE_DIR} 174 . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 175 176 cd ${SETTE_DIR} 177 export TEST_NAME="SHORT" 178 . prepare_exe_dir.sh 179 cd ${EXE_DIR} 152 180 set_namelist namelist cn_exp \"GYRELOB_SHORT\" 153 181 set_namelist namelist nn_it000 61 … … 157 185 set_namelist namelist nn_rstctl 2 158 186 set_namelist namelist ln_clobber .true. 159 set_namelist namelist cn_ocerst_in \"GYRELOB_LONG_00000060_restart.nc\" 160 set_namelist namelist_top ln_trcrad .false. 187 set_namelist namelist nn_solv 2 188 ln -s -f ..\/LONG\/GYRELOB_LONG_00000060_restart.nc 189 ln -s -f ..\/LONG\/GYRELOB_LONG_00000060_restart_trc.nc 190 set_namelist namelist cn_ocerst_in \"GYRELOB_LONG_00000060_restart\" 191 set_namelist namelist_top ln_diatrc .false. 161 192 set_namelist namelist_top ln_rsttr .true. 162 193 set_namelist namelist_top nn_rsttr 2 163 194 set_namelist namelist_top cn_trcrst_in \"GYRELOB_LONG_00000060_restart_trc\" 164 195 cd ${SETTE_DIR} 165 . ./fcm_job.sh input_GYRE.cfg 1 SHORT 196 . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 197 cd ${SETTE_DIR} 198 . ./fcm_job.sh $NPROC $JOB_FILE 166 199 fi 167 200 168 201 if [ ${config} -eq 2 ] ; then 169 # Restartability tests for ORCA2_LIM_PISCES 170 cd ${SETTE_DIR} 171 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_LONG -r ORCA2_LIM_PISCES del_key "key_dtatrc key_diatrc" 172 cd ${SETTE_DIR} 173 copy_original namelist 174 copy_original namelist_top 175 copy_original namelist_pisces 176 . param.cfg 177 . all_functions.sh 202 ## Reproducibility tests for GYRE_LOBSTER 203 export TEST_NAME="REPRO_1_4" 204 cd ${SETTE_DIR} 205 . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRELOB_4 -r GYRE_LOBSTER -j 8 add_key "key_mpp_rep key_mpp_mpi" 206 cd ${SETTE_DIR} 207 . param.cfg 208 . all_functions.sh 209 . prepare_exe_dir.sh 210 JOB_FILE=${EXE_DIR}/run_job.sh 211 MPIRUN_FLAG="yes" 212 NPROC=4 213 rm $JOB_FILE 214 cd ${EXE_DIR} 215 set_namelist namelist cn_exp \"GYRELOB_14\" 216 set_namelist namelist nn_it000 1 217 set_namelist namelist nn_itend 60 218 set_namelist namelist nn_fwb 0 219 set_namelist namelist nn_bench 0 220 set_namelist namelist ln_ctl .false. 221 set_namelist namelist ln_clobber .true. 222 set_namelist namelist nn_solv 2 223 set_namelist namelist_top ln_diatrc .false. 224 set_namelist namelist_top ln_trcdta .false. 225 set_namelist namelist jpni 1 226 set_namelist namelist jpnj 4 227 set_namelist namelist jpnij 4 228 cd ${SETTE_DIR} 229 . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 230 cd ${SETTE_DIR} 231 . ./fcm_job.sh $NPROC $JOB_FILE 232 233 cd ${SETTE_DIR} 234 export TEST_NAME="REPRO_2_2" 235 . prepare_exe_dir.sh 236 JOB_FILE=${EXE_DIR}/run_job.sh 237 MPIRUN_FLAG="yes" 238 NPROC=4 239 rm $JOB_FILE 240 cd ${EXE_DIR} 241 set_namelist namelist cn_exp \"GYRELOB_22\" 242 set_namelist namelist nn_it000 1 243 set_namelist namelist nn_itend 60 244 set_namelist namelist nn_fwb 0 245 set_namelist namelist ln_ctl .false. 246 set_namelist namelist ln_clobber .true. 247 set_namelist namelist nn_solv 2 248 set_namelist namelist_top ln_diatrc .false. 249 set_namelist namelist_top ln_trcdta .false. 250 set_namelist namelist jpni 2 251 set_namelist namelist jpnj 2 252 set_namelist namelist jpnij 4 253 cd ${SETTE_DIR} 254 . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 255 cd ${SETTE_DIR} 256 . ./fcm_job.sh $NPROC $JOB_FILE 257 fi 258 259 # TESTS FOR ORCA2_LIM_PISCES CONFIGURATION 260 if [ ${config} -eq 3 ] ; then 261 ## Restartability tests for ORCA2_LIM_PISCES 262 export TEST_NAME="LONG" 263 cd ${SETTE_DIR} 264 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_LONG -r ORCA2_LIM_PISCES -j 8 265 cd ${SETTE_DIR} 266 . param.cfg 267 . all_functions.sh 268 . prepare_exe_dir.sh 269 JOB_FILE=${EXE_DIR}/run_job.sh 270 MPIRUN_FLAG="yes" 271 NPROC=1 272 rm $JOB_FILE 273 cd ${EXE_DIR} 178 274 set_namelist namelist cn_exp \"O2LP_LONG\" 179 275 set_namelist namelist nn_it000 1 … … 181 277 set_namelist namelist nn_stock 75 182 278 set_namelist namelist ln_clobber .true. 183 set_namelist namelist_top ln_trcrad .false. 184 # put ln_pisdmp, ln_dustfer, ln_river, ln_ndepo, ln_sedinput to false 185 # if not you need input files, and for tests is not necessary 186 set_namelist namelist_pisces ln_pisdmp .false. 187 set_namelist namelist_pisces ln_dustfer .false. 188 set_namelist namelist_pisces ln_river .false. 189 set_namelist namelist_pisces ln_ndepo .false. 190 set_namelist namelist_pisces ln_sedinput .false. 191 cd ${SETTE_DIR} 192 . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 1 LONG 279 set_namelist namelist nn_solv 2 280 set_namelist namelist_top ln_trcdta .false. 281 set_namelist namelist_top ln_diatrc .false. 282 # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false 283 # if not you need input files, and for tests is not necessary 284 set_namelist namelist_pisces ln_ironsed .false. 285 set_namelist namelist_pisces ln_river .false. 286 set_namelist namelist_pisces ln_ndepo .false. 287 set_namelist namelist_pisces ln_dust .false. 288 set_namelist namelist_pisces ln_presatm .false. 289 cd ${SETTE_DIR} 290 . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 193 291 194 292 cd ${SETTE_DIR} 195 copy_original namelist 196 copy_original namelist_ice 197 copy_original namelist_top 198 copy_original namelist_pisces 293 export TEST_NAME="SHORT" 294 . prepare_exe_dir.sh 295 cd ${EXE_DIR} 199 296 set_namelist namelist cn_exp \"O2LP_SHORT\" 200 297 set_namelist namelist nn_it000 76 … … 204 301 set_namelist namelist nn_rstctl 2 205 302 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\" 208 set_namelist namelist_top ln_trcrad .false. 303 set_namelist namelist nn_solv 2 304 ln -s -f ../LONG/O2LP_LONG_00000075_restart.nc 305 ln -s -f ../LONG/O2LP_LONG_00000075_restart_ice.nc 306 ln -s -f ../LONG/O2LP_LONG_00000075_restart_trc.nc 307 set_namelist namelist cn_ocerst_in \"O2LP_LONG_00000075_restart\" 308 set_namelist namelist_ice cn_icerst_in \"O2LP_LONG_00000075_restart_ice\" 309 set_namelist namelist_top ln_diatrc .false. 209 310 set_namelist namelist_top ln_rsttr .true. 210 311 set_namelist namelist_top nn_rsttr 2 211 312 set_namelist namelist_top cn_trcrst_in \"O2LP_LONG_00000075_restart_trc\" 212 # put ln_pisdmp, ln_dustfer, ln_river, ln_ndepo, ln_sedinput 213 # if not you need input files, and for tests is not necessary 214 set_namelist namelist_pisces ln_pisdmp .false. 215 set_namelist namelist_pisces ln_dustfer .false. 216 set_namelist namelist_pisces ln_river .false. 217 set_namelist namelist_pisces ln_ndepo .false. 218 set_namelist namelist_pisces ln_sedinput .false. 219 cd ${SETTE_DIR} 220 . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 1 SHORT 221 fi 222 223 if [ ${config} -eq 3 ] ; then 224 ## Restartability tests for POMME 225 cd ${SETTE_DIR} 226 . ../CONFIG/makenemo -m ${CMP_NAM} -n POMME_LONG -r POMME 227 cd ${SETTE_DIR} 228 . param.cfg 229 . all_functions.sh 230 copy_original namelist 231 set_namelist namelist cn_exp \"POMME_LONG\" 232 set_namelist namelist nn_it000 1 233 set_namelist namelist nn_itend 600 234 set_namelist namelist ln_clobber .true. 235 cd ${SETTE_DIR} 236 . ./fcm_job.sh input_POMME.cfg 1 LONG 237 238 cd ${SETTE_DIR} 239 copy_original namelist 240 set_namelist namelist cn_exp \"POMME_SHORT\" 241 set_namelist namelist nn_it000 301 242 set_namelist namelist nn_itend 600 243 set_namelist namelist nn_stock 300 244 set_namelist namelist ln_rstart .true. 245 set_namelist namelist nn_rstctl 2 246 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 313 # put ln_ironsed, ln_river, ln_ndepo, ln_dust 314 # if not you need input files, and for tests is not necessary 315 set_namelist namelist_pisces ln_ironsed .false. 316 set_namelist namelist_pisces ln_river .false. 317 set_namelist namelist_pisces ln_ndepo .false. 318 set_namelist namelist_pisces ln_dust .false. 319 set_namelist namelist_pisces ln_presatm .false. 320 cd ${SETTE_DIR} 321 . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 322 cd ${SETTE_DIR} 323 . ./fcm_job.sh $NPROC $JOB_FILE 251 324 fi 252 325 253 326 if [ ${config} -eq 4 ] ; then 254 ## Reproducilibity tests for GYRE_LOBSTER 255 cd ${SETTE_DIR} 256 . ../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" 257 cd ${SETTE_DIR} 258 . param.cfg 259 . all_functions.sh 260 copy_original namelist 261 set_namelist namelist cn_exp \"GYRELOB_14\" 327 ## Reproducibility tests for ORCA2_LIM_PISCES 328 export TEST_NAME="REPRO_4_4" 329 cd ${SETTE_DIR} 330 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_16 -r ORCA2_LIM_PISCES -j 8 add_key "key_mpp_rep key_mpp_mpi" 331 cd ${SETTE_DIR} 332 . param.cfg 333 . all_functions.sh 334 . prepare_exe_dir.sh 335 JOB_FILE=${EXE_DIR}/run_job.sh 336 MPIRUN_FLAG="yes" 337 NPROC=16 338 rm $JOB_FILE 339 cd ${EXE_DIR} 262 340 set_namelist namelist nn_it000 1 263 341 set_namelist namelist nn_itend 75 264 342 set_namelist namelist nn_fwb 0 265 set_namelist namelist nn_bench 0266 set_namelist namelist ln_ctl .false.267 set_namelist namelist ln_clobber .true.268 set_namelist namelist jpni 1269 set_namelist namelist jpnj 4270 set_namelist namelist jpnij 4271 cd ${SETTE_DIR}272 . ./fcm_job.sh input_GYRE.cfg 4 REPRO_1_4273 274 cd ${SETTE_DIR}275 copy_original namelist276 set_namelist namelist cn_exp \"GYRELOB_22\"277 set_namelist namelist nn_it000 1278 set_namelist namelist nn_itend 75279 set_namelist namelist nn_fwb 0280 set_namelist namelist ln_ctl .false.281 set_namelist namelist ln_clobber .true.282 set_namelist namelist jpni 2283 set_namelist namelist jpnj 2284 set_namelist namelist jpnij 4285 cd ${SETTE_DIR}286 . ./fcm_job.sh input_GYRE.cfg 4 REPRO_2_2287 fi288 289 if [ ${config} -eq 5 ] ; then290 ## Repropducilibity tests for ORCA2_LIM_PISCES291 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.cfg295 . all_functions.sh296 copy_original namelist297 copy_original namelist_pisces298 set_namelist namelist nn_it000 1299 set_namelist namelist nn_itend 75300 set_namelist namelist nn_fwb 0301 set_namelist namelist ln_ctl .false.302 343 set_namelist namelist ln_clobber .true. 303 344 set_namelist namelist jpni 4 304 345 set_namelist namelist jpnj 4 305 set_namelist namelist jpnij 16 306 # put ln_pisdmp, ln_dustfer, ln_river, ln_ndepo, ln_sedinput to false 307 # if not you need input files, and for tests is not necessary 308 set_namelist namelist_pisces ln_pisdmp .false. 309 set_namelist namelist_pisces ln_dustfer .false. 310 set_namelist namelist_pisces ln_river .false. 311 set_namelist namelist_pisces ln_ndepo .false. 312 set_namelist namelist_pisces ln_sedinput .false. 313 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 346 set_namelist namelist jpnij 16 347 set_namelist namelist nn_solv 2 348 set_namelist namelist_top ln_trcdta .false. 349 set_namelist namelist_top ln_diatrc .false. 350 # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false 351 # if not you need input files, and for tests is not necessary 352 set_namelist namelist_pisces ln_ironsed .false. 353 set_namelist namelist_pisces ln_river .false. 354 set_namelist namelist_pisces ln_ndepo .false. 355 set_namelist namelist_pisces ln_dust .false. 356 set_namelist namelist_pisces ln_presatm .false. 357 cd ${SETTE_DIR} 358 . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 359 cd ${SETTE_DIR} 360 . ./fcm_job.sh $NPROC $JOB_FILE 361 362 cd ${SETTE_DIR} 363 export TEST_NAME="REPRO_2_8" 364 . prepare_exe_dir.sh 365 JOB_FILE=${EXE_DIR}/run_job.sh 366 MPIRUN_FLAG="yes" 367 NPROC=16 368 rm $JOB_FILE 369 cd ${EXE_DIR} 319 370 set_namelist namelist nn_it000 1 320 371 set_namelist namelist nn_itend 75 321 372 set_namelist namelist nn_fwb 0 322 set_namelist namelist ln_ctl .false.323 373 set_namelist namelist ln_clobber .true. 324 374 set_namelist namelist jpni 2 325 375 set_namelist namelist jpnj 8 326 376 set_namelist namelist jpnij 16 327 # put ln_pisdmp, ln_dustfer, ln_river, ln_ndepo, ln_sedinput to false 328 # if not you need input files, and for tests is not necessary 329 set_namelist namelist_pisces ln_pisdmp .false. 330 set_namelist namelist_pisces ln_dustfer .false. 331 set_namelist namelist_pisces ln_river .false. 332 set_namelist namelist_pisces ln_ndepo .false. 333 set_namelist namelist_pisces ln_sedinput .false. 334 cd ${SETTE_DIR} 335 . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 16 REPRO_2_8 377 set_namelist namelist nn_solv 2 378 set_namelist namelist_top ln_trcdta .false. 379 set_namelist namelist_top ln_diatrc .false. 380 # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false 381 # if not you need input files, and for tests is not necessary 382 set_namelist namelist_pisces ln_ironsed .false. 383 set_namelist namelist_pisces ln_river .false. 384 set_namelist namelist_pisces ln_ndepo .false. 385 set_namelist namelist_pisces ln_dust .false. 386 set_namelist namelist_pisces ln_presatm .false. 387 cd ${SETTE_DIR} 388 . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 389 cd ${SETTE_DIR} 390 . ./fcm_job.sh $NPROC $JOB_FILE 391 fi 392 393 # TESTS FOR ORCA2_OFF_PISCES CONFIGURATION 394 if [ ${config} -eq 5 ] ; then 395 ## Restartability tests for ORCA2_OFF_PISCES 396 export TEST_NAME="LONG" 397 cd ${SETTE_DIR} 398 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_LONG -r ORCA2_OFF_PISCES -j 8 399 cd ${SETTE_DIR} 400 . param.cfg 401 . all_functions.sh 402 . prepare_exe_dir.sh 403 JOB_FILE=${EXE_DIR}/run_job.sh 404 MPIRUN_FLAG="yes" 405 NPROC=1 406 rm $JOB_FILE 407 cd ${EXE_DIR} 408 set_namelist namelist cn_exp \"OFFP_LONG\" 409 set_namelist namelist nn_it000 1 410 set_namelist namelist nn_itend 40 411 set_namelist namelist nn_stock 20 412 set_namelist namelist ln_clobber .true. 413 set_namelist namelist_top ln_trcdta .false. 414 set_namelist namelist_top ln_diatrc .false. 415 # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false 416 # if not you need input files, and for tests is not necessary 417 set_namelist namelist_pisces ln_ironsed .false. 418 set_namelist namelist_pisces ln_river .false. 419 set_namelist namelist_pisces ln_ndepo .false. 420 set_namelist namelist_pisces ln_dust .false. 421 set_namelist namelist_pisces ln_presatm .false. 422 cd ${SETTE_DIR} 423 . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 424 425 cd ${SETTE_DIR} 426 export TEST_NAME="SHORT" 427 . prepare_exe_dir.sh 428 cd ${EXE_DIR} 429 set_namelist namelist cn_exp \"OFFP_SHORT\" 430 set_namelist namelist nn_it000 21 431 set_namelist namelist nn_itend 40 432 set_namelist namelist nn_stock 20 433 set_namelist namelist ln_clobber .true. 434 ln -s ../LONG/OFFP_LONG_00000020_restart_trc.nc . 435 set_namelist namelist_top ln_diatrc .false. 436 set_namelist namelist_top ln_rsttr .true. 437 set_namelist namelist_top nn_rsttr 2 438 set_namelist namelist_top cn_trcrst_in \"OFFP_LONG_00000020_restart_trc\" 439 # put ln_ironsed, ln_river, ln_ndepo, ln_dust 440 # if not you need input files, and for tests is not necessary 441 set_namelist namelist_pisces ln_ironsed .false. 442 set_namelist namelist_pisces ln_river .false. 443 set_namelist namelist_pisces ln_ndepo .false. 444 set_namelist namelist_pisces ln_dust .false. 445 set_namelist namelist_pisces ln_presatm .false. 446 cd ${SETTE_DIR} 447 . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 448 cd ${SETTE_DIR} 449 . ./fcm_job.sh $NPROC $JOB_FILE 336 450 fi 337 451 338 452 if [ ${config} -eq 6 ] ; then 339 ## Reproductibility tests for POMME 340 cd ${SETTE_DIR} 341 . ../CONFIG/makenemo -m ${CMP_NAM} -n POMME_4 -r POMME add_key "key_mpp_mpi key_mpp_rep" 342 cd ${SETTE_DIR} 343 . param.cfg 344 . all_functions.sh 345 copy_original namelist 346 set_namelist namelist nn_it000 1 347 set_namelist namelist nn_itend 300 453 ## Reproducibility tests for ORCA2_OFF_PISCES 454 export TEST_NAME="REPRO_4_4" 455 cd ${SETTE_DIR} 456 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_16 -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_rep key_mpp_mpi" 457 cd ${SETTE_DIR} 458 . param.cfg 459 . all_functions.sh 460 . prepare_exe_dir.sh 461 JOB_FILE=${EXE_DIR}/run_job.sh 462 MPIRUN_FLAG="yes" 463 NPROC=16 464 rm $JOB_FILE 465 cd ${EXE_DIR} 466 set_namelist namelist nn_it000 1 467 set_namelist namelist nn_itend 40 468 set_namelist namelist ln_clobber .true. 469 set_namelist namelist jpni 4 470 set_namelist namelist jpnj 4 471 set_namelist namelist jpnij 16 472 set_namelist namelist_top ln_trcdta .false. 473 set_namelist namelist_top ln_diatrc .false. 474 # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false 475 # if not you need input files, and for tests is not necessary 476 set_namelist namelist_pisces ln_ironsed .false. 477 set_namelist namelist_pisces ln_river .false. 478 set_namelist namelist_pisces ln_ndepo .false. 479 set_namelist namelist_pisces ln_dust .false. 480 set_namelist namelist_pisces ln_presatm .false. 481 cd ${SETTE_DIR} 482 . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 483 cd ${SETTE_DIR} 484 . ./fcm_job.sh $NPROC $JOB_FILE 485 486 cd ${SETTE_DIR} 487 export TEST_NAME="REPRO_2_8" 488 . prepare_exe_dir.sh 489 JOB_FILE=${EXE_DIR}/run_job.sh 490 MPIRUN_FLAG="yes" 491 NPROC=16 492 rm $JOB_FILE 493 cd ${EXE_DIR} 494 set_namelist namelist nn_it000 1 495 set_namelist namelist nn_itend 40 496 set_namelist namelist ln_clobber .true. 497 set_namelist namelist jpni 2 498 set_namelist namelist jpnj 8 499 set_namelist namelist jpnij 16 500 set_namelist namelist_top ln_trcdta .false. 501 set_namelist namelist_top ln_diatrc .false. 502 # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false 503 # if not you need input files, and for tests is not necessary 504 set_namelist namelist_pisces ln_ironsed .false. 505 set_namelist namelist_pisces ln_river .false. 506 set_namelist namelist_pisces ln_ndepo .false. 507 set_namelist namelist_pisces ln_dust .false. 508 set_namelist namelist_pisces ln_presatm .false. 509 cd ${SETTE_DIR} 510 . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 511 cd ${SETTE_DIR} 512 . ./fcm_job.sh $NPROC $JOB_FILE 513 fi 514 515 # TESTS FOR AMM12 CONFIGURATION 516 if [ ${config} -eq 7 ] ; then 517 ## Reproducibility tests for AMM12 518 export TEST_NAME="REPRO_8_4" 519 cd ${SETTE_DIR} 520 . ../CONFIG/makenemo -m ${CMP_NAM} -n AMM12_32 -r AMM12 -j 8 add_key "key_mpp_rep" 521 cd ${SETTE_DIR} 522 . param.cfg 523 . all_functions.sh 524 . prepare_exe_dir.sh 525 JOB_FILE=${EXE_DIR}/run_job.sh 526 MPIRUN_FLAG="yes" 527 NPROC=32 528 rm $JOB_FILE 529 cd ${EXE_DIR} 530 set_namelist namelist nn_it000 1 531 set_namelist namelist nn_itend 576 348 532 set_namelist namelist nn_fwb 0 349 533 set_namelist namelist ln_ctl .false. 350 534 set_namelist namelist ln_clobber .true. 351 set_namelist namelist jpni 1 535 set_namelist namelist nn_dyn2d 2 536 set_namelist namelist nn_tra_dta 0 537 set_namelist namelist jpni 8 352 538 set_namelist namelist jpnj 4 353 set_namelist namelist jpnij 4 354 cd ${SETTE_DIR} 355 . ./fcm_job.sh input_POMME.cfg 4 REPRO_1_4 356 357 cd ${SETTE_DIR} 358 copy_original namelist 359 set_namelist namelist nn_it000 1 360 set_namelist namelist nn_itend 300 539 set_namelist namelist jpnij 32 540 cd ${SETTE_DIR} 541 . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 542 cd ${SETTE_DIR} 543 . ./fcm_job.sh $NPROC $JOB_FILE 544 545 cd ${SETTE_DIR} 546 export TEST_NAME="REPRO_4_8" 547 . prepare_exe_dir.sh 548 JOB_FILE=${EXE_DIR}/run_job.sh 549 MPIRUN_FLAG="yes" 550 NPROC=32 551 rm $JOB_FILE 552 cd ${EXE_DIR} 553 set_namelist namelist nn_it000 1 554 set_namelist namelist nn_itend 576 361 555 set_namelist namelist nn_fwb 0 362 556 set_namelist namelist ln_ctl .false. 363 set_namelist namelist ln_clobber .true. 364 set_namelist namelist jpni 2 365 set_namelist namelist jpnj 2 366 set_namelist namelist jpnij 4 367 cd ${SETTE_DIR} 368 . ./fcm_job.sh input_POMME.cfg 4 REPRO_2_2 369 fi 370 371 if [ ${config} -eq 7 ] ; then 372 ## 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 557 set_namelist namelist nn_dyn2d 2 558 set_namelist namelist nn_tra_dta 0 559 set_namelist namelist ln_clobber .true. 560 set_namelist namelist jpni 4 561 set_namelist namelist jpnj 8 562 set_namelist namelist jpnij 32 563 cd ${SETTE_DIR} 564 . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 565 cd ${SETTE_DIR} 566 . ./fcm_job.sh $NPROC $JOB_FILE 567 fi 568 569 if [ ${config} -eq 8 ] ; then 570 ## Restartability tests for AMM12 571 export TEST_NAME="LONG" 572 cd ${SETTE_DIR} 573 . ../CONFIG/makenemo -m ${CMP_NAM} -n AMM12_LONG -r AMM12 -j 8 add_key "key_mpp_rep" 574 cd ${SETTE_DIR} 575 . param.cfg 576 . all_functions.sh 577 . prepare_exe_dir.sh 578 JOB_FILE=${EXE_DIR}/run_job.sh 579 MPIRUN_FLAG="yes" 580 NPROC=32 581 rm $JOB_FILE 582 cd ${EXE_DIR} 583 set_namelist namelist nn_it000 1 584 set_namelist namelist nn_itend 12 585 set_namelist namelist nn_stock 6 586 set_namelist namelist nn_fwb 0 587 set_namelist namelist ln_ctl .false. 588 set_namelist namelist ln_clobber .true. 589 set_namelist namelist nn_dyn2d 2 590 set_namelist namelist nn_tra_dta 0 591 set_namelist namelist jpni 8 592 set_namelist namelist jpnj 4 593 set_namelist namelist jpnij 32 594 cd ${SETTE_DIR} 595 . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 596 597 cd ${SETTE_DIR} 598 export TEST_NAME="SHORT" 599 . prepare_exe_dir.sh 600 cd ${EXE_DIR} 601 set_namelist namelist nn_it000 7 602 set_namelist namelist nn_itend 12 603 set_namelist namelist nn_fwb 0 604 set_namelist namelist ln_ctl .false. 605 set_namelist namelist ln_clobber .true. 606 set_namelist namelist nn_dyn2d 2 607 set_namelist namelist nn_tra_dta 0 608 set_namelist namelist jpni 8 609 set_namelist namelist jpnj 4 610 set_namelist namelist jpnij 32 611 set_namelist namelist ln_rstart .true. 612 set_namelist namelist nn_rstctl 2 613 set_namelist namelist cn_ocerst_in \"../LONG/AMM12_00000006_restart\" 614 cd ${SETTE_DIR} 615 . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 616 cd ${SETTE_DIR} 617 . ./fcm_job.sh $NPROC $JOB_FILE 618 fi 619 620 # TEST FOR ORCA2_LIM_AGRIF : simple test of running AGRIF (no restartability neither reproducibility tests) 621 if [ ${config} -eq 9 ] ; then 622 ## ORCA2_LIM with Agulhas AGRIF zoom in MPI 623 export TEST_NAME="SHORT" 624 cd ${SETTE_DIR} 625 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2AGUL_1_2 -r ORCA2_LIM -j 8 add_key "key_mpp_rep key_mpp_mpi key_agrif" del_key "key_zdftmx" 626 cd ${SETTE_DIR} 627 . param.cfg 628 . all_functions.sh 629 . prepare_exe_dir.sh 630 JOB_FILE=${EXE_DIR}/run_job.sh 631 MPIRUN_FLAG="yes" 632 NPROC=2 633 rm $JOB_FILE 634 cd ${EXE_DIR} 380 635 set_namelist namelist nn_it000 1 381 636 set_namelist namelist nn_itend 75 382 637 set_namelist namelist ln_ctl .false. 383 638 set_namelist namelist ln_clobber .true. 639 set_namelist namelist jpni 1 640 set_namelist namelist jpnj 2 641 set_namelist namelist jpnij 2 384 642 set_namelist 1_namelist nn_it000 1 385 643 set_namelist 1_namelist nn_itend 150 … … 387 645 set_namelist 1_namelist ln_clobber .true. 388 646 cd ${SETTE_DIR} 389 . ./fcm_job.sh input_ORCA2_LIM.cfg 1 SHORT 390 fi 391 392 if [ ${config} -eq 8 ] ; then 393 ## 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 401 set_namelist namelist nn_it000 1 402 set_namelist namelist nn_itend 75 403 set_namelist namelist ln_ctl .false. 404 set_namelist namelist ln_clobber .true. 405 set_namelist namelist jpni 1 406 set_namelist namelist jpnj 2 407 set_namelist namelist jpnij 2 408 set_namelist 1_namelist nn_it000 1 409 set_namelist 1_namelist nn_itend 150 410 set_namelist 1_namelist ln_ctl .false. 411 set_namelist 1_namelist ln_clobber .true. 412 cd ${SETTE_DIR} 413 . ./fcm_job.sh input_ORCA2_LIM.cfg 2 SHORT 647 . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 648 cd ${SETTE_DIR} 649 . ./fcm_job.sh $NPROC $JOB_FILE 414 650 fi 415 651 -
trunk/NEMOGCM/SETTE/sette.sh.vargas
r3091 r3294 148 148 do 149 149 150 # TESTS FOR GYRE_LOBSTER CONFIGURATION 150 151 if [ ${config} -eq 1 ] ; then 151 # Restartability tests for GYRE_LOBSTER152 ## Restartability tests for GYRE_LOBSTER 152 153 export TEST_NAME="LONG" 153 154 cd ${SETTE_DIR} … … 168 169 set_namelist namelist jpnj 2 169 170 set_namelist namelist jpnij 4 170 171 171 cd ${SETTE_DIR} 172 172 . ./fcm_job.sh input_GYRE.cfg 4 ${TEST_NAME} … … 184 184 set_namelist namelist ln_clobber .true. 185 185 set_namelist namelist nn_solv 2 186 set_namelist namelist jpni 2 187 set_namelist namelist jpnj 2 188 set_namelist namelist jpnij 4 186 189 cp ..\/LONG\/GYRELOB_LONG_00000060_restart*.nc . 187 190 set_namelist namelist cn_ocerst_in \"GYRELOB_LONG_00000060_restart\" … … 190 193 set_namelist namelist_top nn_rsttr 2 191 194 set_namelist namelist_top cn_trcrst_in \"GYRELOB_LONG_00000060_restart_trc\" 192 set_namelist namelist jpni 2193 set_namelist namelist jpnj 2194 set_namelist namelist jpnij 4195 195 cd ${SETTE_DIR} 196 196 . ./fcm_job.sh input_GYRE.cfg 4 ${TEST_NAME} … … 198 198 199 199 if [ ${config} -eq 2 ] ; then 200 # Restartability tests for ORCA2_LIM_PISCES 200 ## Repropducibility tests for GYRE_LOBSTER 201 export TEST_NAME="REPRO_1_4" 202 cd ${SETTE_DIR} 203 . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRELOB_4 -r GYRE_LOBSTER add_key "key_mpp_rep key_mpp_mpi" 204 cd ${SETTE_DIR} 205 . param.cfg 206 . all_functions.sh 207 . prepare_exe_dir.sh 208 cd ${EXE_DIR} 209 set_namelist namelist cn_exp \"GYRELOB_14\" 210 set_namelist namelist nn_it000 1 211 set_namelist namelist nn_itend 60 212 set_namelist namelist nn_fwb 0 213 set_namelist namelist nn_bench 0 214 set_namelist namelist ln_ctl .false. 215 set_namelist namelist ln_clobber .true. 216 set_namelist namelist nn_solv 2 217 set_namelist namelist_top ln_diatrc .false. 218 set_namelist namelist_top ln_trcdta .false. 219 set_namelist namelist jpni 1 220 set_namelist namelist jpnj 4 221 set_namelist namelist jpnij 4 222 cd ${SETTE_DIR} 223 . ./fcm_job.sh input_GYRE.cfg 4 ${TEST_NAME} 224 225 cd ${SETTE_DIR} 226 export TEST_NAME="REPRO_2_2" 227 . prepare_exe_dir.sh 228 cd ${EXE_DIR} 229 set_namelist namelist cn_exp \"GYRELOB_22\" 230 set_namelist namelist nn_it000 1 231 set_namelist namelist nn_itend 60 232 set_namelist namelist nn_fwb 0 233 set_namelist namelist ln_ctl .false. 234 set_namelist namelist ln_clobber .true. 235 set_namelist namelist nn_solv 2 236 set_namelist namelist_top ln_diatrc .false. 237 set_namelist namelist_top ln_trcdta .false. 238 set_namelist namelist jpni 2 239 set_namelist namelist jpnj 2 240 set_namelist namelist jpnij 4 241 cd ${SETTE_DIR} 242 . ./fcm_job.sh input_GYRE.cfg 4 ${TEST_NAME} 243 fi 244 245 # TESTS FOR ORCA2_LIM_PISCES CONFIGURATION 246 if [ ${config} -eq 3 ] ; then 247 ## Restartability tests for ORCA2_LIM_PISCES 201 248 export TEST_NAME="LONG" 202 249 cd ${SETTE_DIR} … … 218 265 set_namelist namelist_top ln_trcdta .false. 219 266 set_namelist namelist_top ln_diatrc .false. 220 # put ln_pisdmp, ln_ironsed, ln_river, ln_ndepo, ln_dust to false 221 # if not you need input files, and for tests is not necessary 222 set_namelist namelist_pisces ln_pisdmp .false. 267 # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false 268 # if not you need input files, and for tests is not necessary 223 269 set_namelist namelist_pisces ln_ironsed .false. 224 270 set_namelist namelist_pisces ln_river .false. … … 251 297 set_namelist namelist_top nn_rsttr 2 252 298 set_namelist namelist_top cn_trcrst_in \"O2LP_LONG_00000075_restart_trc\" 253 # put ln_pisdmp, ln_ironsed, ln_river, ln_ndepo, ln_dust 254 # if not you need input files, and for tests is not necessary 255 set_namelist namelist_pisces ln_pisdmp .false. 299 # put ln_ironsed, ln_river, ln_ndepo, ln_dust 300 # if not you need input files, and for tests is not necessary 256 301 set_namelist namelist_pisces ln_ironsed .false. 257 302 set_namelist namelist_pisces ln_river .false. … … 263 308 fi 264 309 265 if [ ${config} -eq 3 ] ; then266 ## Restartability tests for POMME267 export TEST_NAME="LONG"268 cd ${SETTE_DIR}269 . ../CONFIG/makenemo -m ${CMP_NAM} -n POMME_LONG -r POMME add_key "key_mpp_mpi key_mpp_rep"270 cd ${SETTE_DIR}271 . param.cfg272 . all_functions.sh273 . prepare_exe_dir.sh274 cd ${EXE_DIR}275 set_namelist namelist cn_exp \"POMME_LONG\"276 set_namelist namelist nn_it000 1277 set_namelist namelist nn_stock 600278 set_namelist namelist nn_itend 600279 set_namelist namelist ln_clobber .true.280 set_namelist namelist nn_solv 2281 set_namelist namelist jpni 2282 set_namelist namelist jpnj 2283 set_namelist namelist jpnij 4284 cd ${SETTE_DIR}285 . ./fcm_job.sh input_POMME.cfg 4 ${TEST_NAME}286 287 cd ${SETTE_DIR}288 export TEST_NAME="SHORT_1"289 . prepare_exe_dir.sh290 cd ${EXE_DIR}291 set_namelist namelist cn_exp \"POMME_SHORT_1\"292 set_namelist namelist nn_it000 1293 set_namelist namelist nn_itend 300294 set_namelist namelist ln_clobber .true.295 set_namelist namelist nn_solv 2296 set_namelist namelist jpni 2297 set_namelist namelist jpnj 2298 set_namelist namelist jpnij 4299 cd ${SETTE_DIR}300 . ./fcm_job.sh input_POMME.cfg 4 ${TEST_NAME}301 302 cd ${SETTE_DIR}303 export TEST_NAME="SHORT_2"304 . prepare_exe_dir.sh305 cd ${EXE_DIR}306 set_namelist namelist cn_exp \"POMME_SHORT_2\"307 set_namelist namelist nn_it000 301308 set_namelist namelist nn_itend 600309 set_namelist namelist ln_rstart .true.310 set_namelist namelist nn_rstctl 2311 set_namelist namelist ln_clobber .true.312 set_namelist namelist nn_solv 2313 cp ../SHORT_1/POMME_SHORT_1_00000300_restart*.nc .314 set_namelist namelist cn_ocerst_in \"POMME_SHORT_1_00000300_restart\"315 cp ../SHORT_1/restart.obc.output restart.obc316 cd ${SETTE_DIR}317 . ./fcm_job.sh input_POMME.cfg 1 ${TEST_NAME}318 fi319 320 310 if [ ${config} -eq 4 ] ; then 321 ## Repropducilibity tests for GYRE_LOBSTER 322 export TEST_NAME="REPRO_1_4" 323 cd ${SETTE_DIR} 324 . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRELOB_4 -r GYRE_LOBSTER -j 8 add_key "key_mpp_rep key_mpp_mpi" 325 cd ${SETTE_DIR} 326 . param.cfg 327 . all_functions.sh 328 . prepare_exe_dir.sh 329 cd ${EXE_DIR} 330 set_namelist namelist cn_exp \"GYRELOB_14\" 331 set_namelist namelist nn_it000 1 332 set_namelist namelist nn_itend 60 333 set_namelist namelist nn_fwb 0 334 set_namelist namelist nn_bench 0 335 set_namelist namelist ln_ctl .false. 336 set_namelist namelist ln_clobber .true. 337 set_namelist namelist nn_solv 2 338 set_namelist namelist_top ln_diatrc .false. 339 set_namelist namelist_top ln_trcdta .false. 340 set_namelist namelist jpni 1 341 set_namelist namelist jpnj 4 342 set_namelist namelist jpnij 4 343 cd ${SETTE_DIR} 344 . ./fcm_job.sh input_GYRE.cfg 4 ${TEST_NAME} 345 346 cd ${SETTE_DIR} 347 export TEST_NAME="REPRO_2_2" 348 . prepare_exe_dir.sh 349 cd ${EXE_DIR} 350 set_namelist namelist cn_exp \"GYRELOB_22\" 351 set_namelist namelist nn_it000 1 352 set_namelist namelist nn_itend 60 353 set_namelist namelist nn_fwb 0 354 set_namelist namelist ln_ctl .false. 355 set_namelist namelist ln_clobber .true. 356 set_namelist namelist nn_solv 2 357 set_namelist namelist_top ln_diatrc .false. 358 set_namelist namelist_top ln_trcdta .false. 359 set_namelist namelist jpni 2 360 set_namelist namelist jpnj 2 361 set_namelist namelist jpnij 4 362 cd ${SETTE_DIR} 363 . ./fcm_job.sh input_GYRE.cfg 4 ${TEST_NAME} 364 fi 365 366 if [ ${config} -eq 5 ] ; then 367 ## Repropducilibity tests for ORCA2_LIM_PISCES 311 ## Repropducibility tests for ORCA2_LIM_PISCES 368 312 export TEST_NAME="REPRO_4_4" 369 313 cd ${SETTE_DIR} … … 383 327 set_namelist namelist jpnij 16 384 328 set_namelist namelist nn_solv 2 385 set_namelist namelist_top ln_trcdta .false. 386 set_namelist namelist_top ln_diatrc .false. 387 # put ln_pisdmp, ln_ironsed, ln_river, ln_ndepo, ln_dust to false 388 # if not you need input files, and for tests is not necessary 389 set_namelist namelist_pisces ln_pisdmp .false. 329 set_namelist namelist_top ln_trcdta .false. 330 set_namelist namelist_top ln_diatrc .false. 331 # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false 332 # if not you need input files, and for tests is not necessary 390 333 set_namelist namelist_pisces ln_ironsed .false. 391 334 set_namelist namelist_pisces ln_river .false. … … 409 352 set_namelist namelist jpnij 16 410 353 set_namelist namelist nn_solv 2 411 set_namelist namelist_top ln_trcdta .false. 412 set_namelist namelist_top ln_diatrc .false. 413 # put ln_pisdmp, ln_ironsed, ln_river, ln_ndepo, ln_dust to false 414 # if not you need input files, and for tests is not necessary 415 set_namelist namelist_pisces ln_pisdmp .false. 354 set_namelist namelist_top ln_trcdta .false. 355 set_namelist namelist_top ln_diatrc .false. 356 # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false 357 # if not you need input files, and for tests is not necessary 416 358 set_namelist namelist_pisces ln_ironsed .false. 417 359 set_namelist namelist_pisces ln_river .false. … … 423 365 fi 424 366 425 if [ ${config} -eq 6 ] ; then 426 ## Reproductibility tests for POMME 427 export TEST_NAME="REPRO_1_4" 428 cd ${SETTE_DIR} 429 . ../CONFIG/makenemo -m ${CMP_NAM} -n POMME_4 -r POMME -j 8 add_key "key_mpp_rep key_mpp_mpi" 430 cd ${SETTE_DIR} 431 . param.cfg 432 . all_functions.sh 433 . prepare_exe_dir.sh 434 cd ${EXE_DIR} 435 set_namelist namelist nn_it000 1 436 set_namelist namelist nn_itend 300 437 set_namelist namelist nn_fwb 0 438 set_namelist namelist ln_ctl .false. 439 set_namelist namelist ln_clobber .true. 440 set_namelist namelist nn_solv 2 441 set_namelist namelist jpni 1 442 set_namelist namelist jpnj 4 443 set_namelist namelist jpnij 4 444 cd ${SETTE_DIR} 445 . ./fcm_job.sh input_POMME.cfg 4 ${TEST_NAME} 446 447 cd ${SETTE_DIR} 448 export TEST_NAME="REPRO_2_2" 449 . prepare_exe_dir.sh 450 cd ${EXE_DIR} 451 set_namelist namelist nn_it000 1 452 set_namelist namelist nn_itend 300 453 set_namelist namelist nn_fwb 0 454 set_namelist namelist ln_ctl .false. 455 set_namelist namelist ln_clobber .true. 456 set_namelist namelist nn_solv 2 457 set_namelist namelist jpni 2 458 set_namelist namelist jpnj 2 459 set_namelist namelist jpnij 4 460 cd ${SETTE_DIR} 461 . ./fcm_job.sh input_POMME.cfg 4 ${TEST_NAME} 462 fi 463 464 465 if [ ${config} -eq 7 ] ; then 466 # Restartability tests for ORCA2_OFF_PISCES 367 # TESTS FOR ORCA2_OFF_PISCES CONFIGURATION 368 if [ ${config} -eq 5 ] ; then 369 ## Restartability tests for ORCA2_OFF_PISCES 467 370 export TEST_NAME="LONG" 468 371 cd ${SETTE_DIR} 469 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_LONG -r ORCA2_OFF_PISCES -j 8 372 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_LONG -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_mpi key_mpp_rep" 470 373 cd ${SETTE_DIR} 471 374 . param.cfg … … 478 381 set_namelist namelist nn_stock 20 479 382 set_namelist namelist ln_clobber .true. 480 set_namelist namelist_top ln_trcdta .false. 481 set_namelist namelist_top ln_diatrc .false. 482 # put ln_pisdmp, ln_ironsed, ln_river, ln_ndepo, ln_dust to false 483 # if not you need input files, and for tests is not necessary 484 set_namelist namelist_pisces ln_pisdmp .false. 485 set_namelist namelist_pisces ln_ironsed .false. 486 set_namelist namelist_pisces ln_river .false. 487 set_namelist namelist_pisces ln_ndepo .false. 488 set_namelist namelist_pisces ln_dust .false. 489 set_namelist namelist_pisces ln_presatm .false. 490 cd ${SETTE_DIR} 491 . ./fcm_job.sh input_ORCA2_OFF_PISCES.cfg 1 ${TEST_NAME} 383 set_namelist namelist jpni 2 384 set_namelist namelist jpnj 2 385 set_namelist namelist jpnij 4 386 set_namelist namelist_top ln_trcdta .false. 387 set_namelist namelist_top ln_diatrc .false. 388 # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false 389 # if not you need input files, and for tests is not necessary 390 set_namelist namelist_pisces ln_ironsed .false. 391 set_namelist namelist_pisces ln_river .false. 392 set_namelist namelist_pisces ln_ndepo .false. 393 set_namelist namelist_pisces ln_dust .false. 394 set_namelist namelist_pisces ln_presatm .false. 395 cd ${SETTE_DIR} 396 . ./fcm_job.sh input_ORCA2_OFF_PISCES.cfg 4 ${TEST_NAME} 492 397 493 398 cd ${SETTE_DIR} … … 500 405 set_namelist namelist nn_stock 20 501 406 set_namelist namelist ln_clobber .true. 407 set_namelist namelist jpni 2 408 set_namelist namelist jpnj 2 409 set_namelist namelist jpnij 4 502 410 cp ../LONG/OFFP_LONG_00000020_restart*nc . 503 411 set_namelist namelist_top ln_diatrc .false. … … 505 413 set_namelist namelist_top nn_rsttr 2 506 414 set_namelist namelist_top cn_trcrst_in \"OFFP_LONG_00000020_restart_trc\" 507 # put ln_pisdmp, ln_ironsed, ln_river, ln_ndepo, ln_dust 508 # if not you need input files, and for tests is not necessary 509 set_namelist namelist_pisces ln_pisdmp .false. 510 set_namelist namelist_pisces ln_ironsed .false. 511 set_namelist namelist_pisces ln_river .false. 512 set_namelist namelist_pisces ln_ndepo .false. 513 set_namelist namelist_pisces ln_dust .false. 514 set_namelist namelist_pisces ln_presatm .false. 515 cd ${SETTE_DIR} 516 . ./fcm_job.sh input_ORCA2_OFF_PISCES.cfg 1 ${TEST_NAME} 517 fi 518 519 if [ ${config} -eq 8 ] ; then 520 ## Repropducilibity tests for ORCA2_OFF_PISCES 415 # put ln_ironsed, ln_river, ln_ndepo, ln_dust 416 # if not you need input files, and for tests is not necessary 417 set_namelist namelist_pisces ln_ironsed .false. 418 set_namelist namelist_pisces ln_river .false. 419 set_namelist namelist_pisces ln_ndepo .false. 420 set_namelist namelist_pisces ln_dust .false. 421 set_namelist namelist_pisces ln_presatm .false. 422 cd ${SETTE_DIR} 423 . ./fcm_job.sh input_ORCA2_OFF_PISCES.cfg 4 ${TEST_NAME} 424 fi 425 426 if [ ${config} -eq 6 ] ; then 427 ## Repropducibility tests for ORCA2_OFF_PISCES 521 428 export TEST_NAME="REPRO_4_4" 522 429 cd ${SETTE_DIR} … … 536 443 set_namelist namelist_top ln_trcdta .false. 537 444 set_namelist namelist_top ln_diatrc .false. 538 # put ln_pisdmp, ln_ironsed, ln_river, ln_ndepo, ln_dust to false 539 # if not you need input files, and for tests is not necessary 540 set_namelist namelist_pisces ln_pisdmp .false. 445 # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false 446 # if not you need input files, and for tests is not necessary 541 447 set_namelist namelist_pisces ln_ironsed .false. 542 448 set_namelist namelist_pisces ln_river .false. … … 560 466 set_namelist namelist_top ln_trcdta .false. 561 467 set_namelist namelist_top ln_diatrc .false. 562 # put ln_pisdmp, ln_ironsed, ln_river, ln_ndepo, ln_dust to false 563 # if not you need input files, and for tests is not necessary 564 set_namelist namelist_pisces ln_pisdmp .false. 468 # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false 469 # if not you need input files, and for tests is not necessary 565 470 set_namelist namelist_pisces ln_ironsed .false. 566 471 set_namelist namelist_pisces ln_river .false. … … 572 477 fi 573 478 574 ###### agrif tests are not run on vargas because we need to change compiler version and this is not possible because compiler is chosen once for all tests 575 ###### tests for agrif need to be done by hand on vargas 479 # TESTS FOR AMM12 CONFIGURATION 480 if [ ${config} -eq 7 ] ; then 481 ## Reproducibility tests for AMM12 482 export TEST_NAME="REPO_8_4" 483 cd ${SETTE_DIR} 484 . ../CONFIG/makenemo -m ${CMP_NAM} -n AMM12_32 -r AMM12 add_key "key_mpp_rep" 485 cd ${SETTE_DIR} 486 . param.cfg 487 . all_functions.sh 488 . prepare_exe_dir.sh 489 cd ${EXE_DIR} 490 set_namelist namelist nn_it000 1 491 set_namelist namelist nn_itend 576 492 set_namelist namelist nn_fwb 0 493 set_namelist namelist ln_ctl .false. 494 set_namelist namelist ln_clobber .true. 495 set_namelist namelist nn_dyn2d 2 496 set_namelist namelist nn_tra_dta 0 497 set_namelist namelist jpni 8 498 set_namelist namelist jpnj 4 499 set_namelist namelist jpnij 32 500 cd ${SETTE_DIR} 501 . ./fcm_job.sh input_AMM12.cfg 32 ${TEST_NAME} 502 503 cd ${SETTE_DIR} 504 export TEST_NAME="REPO_4_8" 505 . prepare_exe_dir.sh 506 cd ${EXE_DIR} 507 set_namelist namelist nn_it000 1 508 set_namelist namelist nn_itend 576 509 set_namelist namelist nn_fwb 0 510 set_namelist namelist ln_ctl .false. 511 set_namelist namelist nn_dyn2d 2 512 set_namelist namelist nn_tra_dta 0 513 set_namelist namelist ln_clobber .true. 514 set_namelist namelist jpni 4 515 set_namelist namelist jpnj 8 516 set_namelist namelist jpnij 32 517 cd ${SETTE_DIR} 518 . ./fcm_job.sh input_AMM12.cfg 32 ${TEST_NAME} 519 fi 520 521 if [ ${config} -eq 8 ] ; then 522 ## Restartability tests for AMM12 523 export TEST_NAME="LONG" 524 cd ${SETTE_DIR} 525 . ../CONFIG/makenemo -m ${CMP_NAM} -n AMM12_LONG -r AMM12 add_key "key_mpp_rep" 526 cd ${SETTE_DIR} 527 . param.cfg 528 . all_functions.sh 529 . prepare_exe_dir.sh 530 cd ${EXE_DIR} 531 set_namelist namelist nn_it000 1 532 set_namelist namelist nn_itend 12 533 set_namelist namelist nn_stock 6 534 set_namelist namelist nn_fwb 0 535 set_namelist namelist ln_ctl .false. 536 set_namelist namelist ln_clobber .true. 537 set_namelist namelist nn_dyn2d 2 538 set_namelist namelist nn_tra_dta 0 539 set_namelist namelist jpni 8 540 set_namelist namelist jpnj 4 541 set_namelist namelist jpnij 32 542 cd ${SETTE_DIR} 543 . ./fcm_job.sh input_AMM12.cfg 32 ${TEST_NAME} 544 545 cd ${SETTE_DIR} 546 export TEST_NAME="SHORT" 547 . prepare_exe_dir.sh 548 cd ${EXE_DIR} 549 set_namelist namelist nn_it000 7 550 set_namelist namelist nn_itend 12 551 set_namelist namelist nn_fwb 0 552 set_namelist namelist ln_ctl .false. 553 set_namelist namelist ln_clobber .true. 554 set_namelist namelist nn_dyn2d 2 555 set_namelist namelist nn_tra_dta 0 556 set_namelist namelist jpni 8 557 set_namelist namelist jpnj 4 558 set_namelist namelist jpnij 32 559 set_namelist namelist ln_rstart .true. 560 set_namelist namelist nn_rstctl 2 561 cp ../LONG/AMM12_00000006_restart*.nc . 562 set_namelist namelist cn_ocerst_in \"AMM12_00000006_restart\" 563 cd ${SETTE_DIR} 564 . ./fcm_job.sh input_AMM12.cfg 32 ${TEST_NAME} 565 fi 566 567 # TEST FOR ORCA2_LIM_AGRIF : simple test of running AGRIF (no restartability neither reproducibility tests) 576 568 if [ ${config} -eq 9 ] ; then 577 ## ORCA2_LIM with Agulhas AGRIF zoom578 export TEST_NAME="SHORT"579 cd ${SETTE_DIR}580 . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2AGUL -r ORCA2_LIM -j 8 add_key "key_mpp_rep key_mpp_mpi key_agrif" del_key "key_zdftmx"581 cd ${SETTE_DIR}582 . param.cfg583 . all_functions.sh584 . prepare_exe_dir.sh585 cd ${EXE_DIR}586 set_namelist namelist nn_it000 1587 set_namelist namelist nn_itend 75588 set_namelist namelist ln_ctl .false.589 set_namelist namelist ln_clobber .true.590 set_namelist 1_namelist nn_it000 1591 set_namelist 1_namelist nn_itend 150592 set_namelist 1_namelist ln_ctl .false.593 set_namelist 1_namelist ln_clobber .true.594 cd ${SETTE_DIR}595 . ./fcm_job.sh input_ORCA2_LIM_AGRIF.cfg 2 ${TEST_NAME}596 fi597 598 if [ ${config} -eq 10 ] ; then599 569 ## ORCA2_LIM with Agulhas AGRIF zoom in MPI 600 570 export TEST_NAME="SHORT" -
trunk/NEMOGCM/SETTE/sette_beginner.sh
r2754 r3294 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.