New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 8896 – NEMO

Changeset 8896


Ignore:
Timestamp:
2017-12-05T10:38:40+01:00 (6 years ago)
Author:
flavoni
Message:

merge of sette tests and report with the new ones of the trunk

Location:
branches/2017/dev_CNRS_2017/NEMOGCM
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_CNRS_2017/NEMOGCM/SETTE/sette.sh

    r8882 r8896  
    133133cp BATCH_TEMPLATE/${JOB_PREFIX}-${COMPILER} job_batch_template || exit 
    134134# Description of configuration tested: 
    135 # GYRE_PISCES       :  1 &  2 
    136 # ORCA2_LIM3_PISCES :  3 &  4 
    137 # ORCA2_OFF_PISCES  :  5 &  6 
    138 # AMM12             :  7 &  8  
    139 # SAS               :  9     fos SAS there is no run.stat so is useless to test REPRO 
    140 # ISOMIP            : 10 & 11 
    141 # ORCA2_LIM3_OBS    : 12 
    142 # ORCA2_AGRIF_LIM3  : 13 & 14  
    143 #                     15 & 16  
    144  
    145 for config in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16  
     135# GYRE_PISCES       :  1  
     136# ORCA2_LIM3_PISCES :  2  
     137# ORCA2_OFF_PISCES  :  3  
     138# AMM12             :  4  
     139# SAS               :  5     fos SAS there is no run.stat so is useless to test REPRO 
     140# ISOMIP            :  6 
     141# ORCA2_LIM3_OBS    :  7 
     142# ORCA2_AGRIF_LIM3  :  8  
     143# ORCA2AGR          :  9 & 10  AGRIF active with no zoom, compared to no AGRIF cpp key 
     144 
     145for config in 1 2 3 4 5 6 7 8 9 10 
    146146do 
    147147 
     
    151151    export TEST_NAME="LONG" 
    152152    cd ${CONFIG_DIR0} 
    153     . ./makenemo -m ${CMP_NAM} -n GYREPIS_LONG -r GYRE_PISCES -j 8 del_key ${DEL_KEYS} 
     153    . ./makenemo -m ${CMP_NAM} -n GYREPIS_ST -r GYRE_PISCES -j 8 del_key ${DEL_KEYS} 
    154154    cd ${SETTE_DIR} 
    155155    . ./param.cfg 
     
    220220    cd ${SETTE_DIR} 
    221221    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    222 fi 
    223  
    224 if [ ${config} -eq 2 ] ;  then 
     222 
    225223    ## Reproducibility tests for GYRE_PISCES 
    226224    export TEST_NAME="REPRO_4_8" 
    227225    cd ${CONFIG_DIR0} 
    228     . ./makenemo -m ${CMP_NAM} -n GYREPIS_32 -r GYRE_PISCES -j 8 del_key ${DEL_KEYS} 
    229226    cd ${SETTE_DIR} 
    230227    . ./param.cfg 
     
    287284 
    288285# TESTS FOR ORCA2_LIM3_PISCES CONFIGURATION 
    289 if [ ${config} -eq 3 ] ;  then 
     286if [ ${config} -eq 2 ] ;  then 
    290287    ## Restartability tests for ORCA2_LIM3_PISCES 
    291288    export TEST_NAME="LONG" 
    292289    cd ${CONFIG_DIR0} 
    293     . ./makenemo -m ${CMP_NAM} -n ORCA2LIM3PIS_LONG -r ORCA2_LIM3_PISCES -j 8 del_key ${DEL_KEYS} 
     290    . ./makenemo -m ${CMP_NAM} -n ORCA2LIM3PIS_ST -r ORCA2_LIM3_PISCES -j 8 del_key ${DEL_KEYS} 
    294291    cd ${SETTE_DIR} 
    295292    . ./param.cfg 
     
    388385    cd ${SETTE_DIR} 
    389386    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    390 fi 
    391  
    392 if [ ${config} -eq 4 ] ;  then 
     387 
    393388    ## Reproducibility tests for ORCA2_LIM3_PISCES 
    394389    export TEST_NAME="REPRO_4_8" 
    395390    cd ${CONFIG_DIR0} 
    396     . ./makenemo -m ${CMP_NAM} -n ORCA2LIM3PIS_32 -r ORCA2_LIM3_PISCES -j 8 del_key ${DEL_KEYS} 
    397391    cd ${SETTE_DIR} 
    398392    . ./param.cfg 
     
    485479 
    486480# TESTS FOR ORCA2_OFF_PISCES CONFIGURATION 
    487 if [ ${config} -eq 5 ] ;  then 
     481if [ ${config} -eq 3 ] ;  then 
    488482    ## Restartability tests for ORCA2_OFF_PISCES 
    489483    export TEST_NAME="LONG" 
    490484    cd ${CONFIG_DIR0} 
    491     . ./makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_LONG -r ORCA2_OFF_PISCES -j 8 del_key ${DEL_KEYS} 
     485    . ./makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_ST -r ORCA2_OFF_PISCES -j 8 del_key ${DEL_KEYS} 
    492486    cd ${SETTE_DIR} 
    493487    . ./param.cfg 
     
    574568    cd ${SETTE_DIR} 
    575569    . ./fcm_job.sh $NPROC  ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    576 fi 
    577  
    578 if [ ${config} -eq 6 ] ;  then 
     570 
    579571    ## Reproducibility tests for ORCA2_OFF_PISCES 
    580572    export TEST_NAME="REPRO_4_8" 
    581573    cd ${CONFIG_DIR0} 
    582     . ./makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_32 -r ORCA2_OFF_PISCES -j 8 del_key ${DEL_KEYS} 
    583574    cd ${SETTE_DIR} 
    584575    . ./param.cfg 
     
    664655 
    665656# TESTS FOR AMM12 CONFIGURATION 
    666 if [ ${config} -eq 7 ] ;  then 
     657if [ ${config} -eq 4 ] ;  then 
    667658    ## Restartability tests for AMM12 
    668659    export TEST_NAME="LONG" 
    669660    cd ${CONFIG_DIR0} 
    670     . ./makenemo -m ${CMP_NAM} -n AMM12_LONG -r AMM12 -j 8 del_key ${DEL_KEYS} 
     661    . ./makenemo -m ${CMP_NAM} -n AMM12_ST -r AMM12 -j 8 del_key ${DEL_KEYS} 
    671662    cd ${SETTE_DIR} 
    672663    . ./param.cfg 
     
    728719    cd ${SETTE_DIR} 
    729720    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    730 fi 
    731  
    732 if [ ${config} -eq 8 ] ;  then 
     721 
    733722## Reproducibility tests for AMM12 
    734723    export TEST_NAME="REPRO_8_4" 
    735724    cd ${CONFIG_DIR0} 
    736     . ./makenemo -m ${CMP_NAM} -n AMM12_32 -r AMM12 -j 8 del_key ${DEL_KEYS} 
    737725    cd ${SETTE_DIR} 
    738726    . ./param.cfg 
     
    792780 
    793781# TESTS FOR ORCA2_SAS_LIM3 CONFIGURATION 
    794 if [ ${config} -eq 9 ] ;  then 
     782if [ ${config} -eq 5 ] ;  then 
    795783    ## Restartability tests for SAS 
    796784    export TEST_NAME="LONG" 
    797785    cd ${CONFIG_DIR0} 
    798     . ./makenemo -m ${CMP_NAM} -n SAS_LONG -r ORCA2_SAS_LIM3 -j 8 del_key ${DEL_KEYS} 
     786    . ./makenemo -m ${CMP_NAM} -n SAS_ST -r ORCA2_SAS_LIM3 -j 8 del_key ${DEL_KEYS} 
    799787    cd ${SETTE_DIR} 
    800788    . ./param.cfg 
     
    845833    set_namelist namelist_cfg ln_rstart .true. 
    846834    set_namelist namelist_cfg nn_rstctl 2 
    847     set_namelist namelist_cfg nn_date0 010106 
     835    set_namelist namelist_cfg nn_date0 010109 
    848836    set_namelist namelist_cfg cn_ocerst_in \"SAS_00000120_restart\" 
    849837    set_namelist namelist_ice_cfg cn_icerst_in \"SAS_00000120_restart_ice\" 
     
    866854 
    867855# TESTS FOR ISOMIP CONFIGURATION 
    868 if [ ${config} -eq 10 ] ;  then 
     856if [ ${config} -eq 6 ] ;  then 
    869857    ## Restartability tests for ISOMIP 
    870858    export TEST_NAME="LONG" 
    871859    cd ${CONFIG_DIR0} 
    872     . ./makenemo -m ${CMP_NAM} -n ISOMIP_LONG -r ISOMIP -a TEST_CASES -j 8 del_key ${DEL_KEYS} 
     860    . ./makenemo -m ${CMP_NAM} -n ISOMIP_ST -r ISOMIP -a TEST_CASES -j 8 del_key ${DEL_KEYS} 
    873861    cd ${SETTE_DIR} 
    874862    . ./param.cfg 
     
    939927    cd ${SETTE_DIR} 
    940928    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    941 fi 
    942 if [ ${config} -eq 11 ] ;  then 
     929 
    943930    ## Reproducibility tests for ISOMIP 
    944931    export TEST_NAME="REPRO_4_8" 
    945932    cd ${CONFIG_DIR0} 
    946     . ./makenemo -m ${CMP_NAM} -n ISOMIP_32 -r ISOMIP -a TEST_CASES -j 8 del_key ${DEL_KEYS} 
    947933    cd ${SETTE_DIR} 
    948934    . ./param.cfg 
     
    1010996## Test assimilation interface code, OBS and ASM for reproducibility 
    1011997## Restartability not tested (ASM code not restartable while increments are being applied) 
    1012 if [ ${config} -eq 12 ] ; then 
     998if [ ${config} -eq 7 ] ; then 
    1013999   ## Reproducibility tests for ORCA2_LIM3_OBS 
    10141000    export TEST_NAME="REPRO_4_8" 
    10151001    cd ${CONFIG_DIR0} 
    1016     . ./makenemo -m ${CMP_NAM} -n ORCA2_LIM3_OBS -r ORCA2_LIM3_PISCES -d "OPA_SRC LIM_SRC_3"  -j 8 add_key "key_asminc" del_key "key_top" 
     1002    . ./makenemo -m ${CMP_NAM} -n ORCA2_LIM3_OBS_ST -r ORCA2_LIM3_PISCES -d "OPA_SRC LIM_SRC_3"  -j 8 add_key "key_asminc" del_key "key_top" 
    10171003    cd ${SETTE_DIR} 
    10181004    . ./param.cfg 
     
    11221108    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    11231109fi 
    1124 # TEST FOR ORCA2_LIM3_AGRIF : simple test of running AGRIF (no restartability neither reproducibility tests) 
    1125 if [ ${config} -eq 13 ] ;  then 
    1126     ## ORCA2_LIM3 with Agulhas AGRIF zoom in MPI 
    1127     export TEST_NAME="SHORT" 
    1128     cd ${CONFIG_DIR0} 
    1129     . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_1_2 -r ORCA2_LIM3_PISCES -d "OPA_SRC LIM_SRC_3 NST_SRC" -j 8 add_key "key_agrif" del_key "key_top" 
    1130     cd ${SETTE_DIR} 
    1131     . ./param.cfg 
    1132     . ./all_functions.sh 
    1133     . ./prepare_exe_dir.sh 
    1134     JOB_FILE=${EXE_DIR}/run_job.sh 
    1135     NPROC=2 
    1136     if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
    1137     cd ${EXE_DIR} 
    1138     set_namelist namelist_cfg nn_it000 1 
    1139     set_namelist namelist_cfg nn_itend 75 
    1140     set_namelist namelist_cfg ln_ctl .false. 
    1141     set_namelist namelist_cfg ln_clobber .true. 
    1142     set_namelist namelist_cfg ln_read_cfg .true. 
    1143     set_namelist namelist_cfg ln_linssh .true. 
    1144     set_namelist namelist_cfg ln_hpg_sco .false. 
    1145     set_namelist namelist_cfg ln_hpg_zps .true.  
    1146     set_namelist namelist_cfg nn_fwb 0 
    1147     set_namelist namelist_cfg jpni 1 
    1148     set_namelist namelist_cfg jpnj 2 
    1149     set_namelist namelist_cfg jpnij 2 
    1150     set_namelist 1_namelist_cfg nn_it000 1 
    1151     set_namelist 1_namelist_cfg nn_itend 150 
    1152     set_namelist 1_namelist_cfg nn_fsbc 1 
    1153     set_namelist 1_namelist_cfg ln_ctl .false. 
    1154     set_namelist 1_namelist_cfg ln_clobber .true. 
    1155     set_namelist 1_namelist_cfg ln_read_cfg .true. 
    1156     set_namelist 1_namelist_cfg ln_linssh .true. 
    1157     set_namelist 1_namelist_cfg ln_zdfiwm .false. 
    1158     set_namelist 1_namelist_cfg ln_hpg_sco .false. 
    1159     set_namelist 1_namelist_cfg ln_hpg_zps .true.  
    1160     if [ ${USING_MPMD} == "yes" ] ; then 
    1161        set_xio_using_server iodef.xml true 
    1162     else 
    1163        set_xio_using_server iodef.xml false 
    1164     fi 
    1165     cd ${SETTE_DIR} 
    1166     . ./prepare_job.sh input_ORCA2_LIM3_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
    1167     cd ${SETTE_DIR} 
    1168     . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    1169 fi 
    1170  
    1171 # test code corruption with AGRIF 
    1172 # Compile and run with or without AGRIF ORCA2_LIM3 
    1173 if [ ${config} -eq 14 ] ;  then 
    1174     # First run same as 15 but without zoom 
    1175     export TEST_NAME="SHORT_NOZOOM" 
    1176     cd ${CONFIG_DIR0} 
    1177     . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_2_2 -r ORCA2_LIM3_PISCES -d "OPA_SRC LIM_SRC_3 NST_SRC" -j 8 add_key "key_agrif" del_key "key_top" 
    1178     cd ${SETTE_DIR} 
    1179     . ./param.cfg 
    1180     . ./all_functions.sh 
    1181     . ./prepare_exe_dir.sh 
    1182     JOB_FILE=${EXE_DIR}/run_job.sh 
    1183     NPROC=4 
    1184     if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
    1185     cd ${EXE_DIR} 
    1186     set_namelist namelist_cfg nn_it000 1 
    1187     set_namelist namelist_cfg nn_itend 75 
    1188     set_namelist namelist_cfg ln_ctl .false. 
    1189     set_namelist namelist_cfg ln_clobber .true. 
    1190     set_namelist namelist_cfg ln_read_cfg .true. 
    1191     set_namelist namelist_cfg ln_linssh .true. 
    1192     set_namelist namelist_cfg ln_hpg_sco .false. 
    1193     set_namelist namelist_cfg ln_hpg_zps .true.  
    1194     set_namelist namelist_cfg nn_fwb 0 
    1195     set_namelist namelist_cfg jpni 2 
    1196     set_namelist namelist_cfg jpnj 2 
    1197     set_namelist namelist_cfg jpnij 4 
    1198 #  
    1199 #   Set the number of fine grids to zero:     
    1200     sed -i "1s/.*/0/" ${EXE_DIR}/AGRIF_FixedGrids.in 
    1201  
    1202     if [ ${USING_MPMD} == "yes" ] ; then 
    1203        set_xio_using_server iodef.xml true 
    1204     else 
    1205        set_xio_using_server iodef.xml false 
    1206     fi 
    1207     cd ${SETTE_DIR} 
    1208     . ./prepare_job.sh input_ORCA2_LIM3_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
    1209     cd ${SETTE_DIR} 
    1210     . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    1211  
    1212     export TEST_NAME="SHORT_NOAGRIF" 
    1213     cd ${CONFIG_DIR0} 
    1214     . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_2_2_NAG -r ORCA2_LIM3_PISCES -d "OPA_SRC LIM_SRC_3 NST_SRC" -j 8 del_key "key_top" 
    1215     cd ${SETTE_DIR} 
    1216     . ./param.cfg 
    1217     . ./all_functions.sh 
    1218     . ./prepare_exe_dir.sh 
    1219     JOB_FILE=${EXE_DIR}/run_job.sh 
    1220     NPROC=4 
    1221     if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
    1222     cd ${EXE_DIR} 
    1223     set_namelist namelist_cfg nn_it000 1 
    1224     set_namelist namelist_cfg nn_itend 75 
    1225     set_namelist namelist_cfg ln_ctl .false. 
    1226     set_namelist namelist_cfg ln_clobber .true. 
    1227     set_namelist namelist_cfg ln_read_cfg .true. 
    1228     set_namelist namelist_cfg ln_linssh .true. 
    1229     set_namelist namelist_cfg ln_hpg_sco .false. 
    1230     set_namelist namelist_cfg ln_hpg_zps .true.  
    1231     set_namelist namelist_cfg nn_fwb 0 
    1232     set_namelist namelist_cfg jpni 2 
    1233     set_namelist namelist_cfg jpnj 2 
    1234     set_namelist namelist_cfg jpnij 4 
    1235 # 
    1236     if [ ${USING_MPMD} == "yes" ] ; then 
    1237        set_xio_using_server iodef.xml true 
    1238     else 
    1239        set_xio_using_server iodef.xml false 
    1240     fi 
    1241     cd ${SETTE_DIR} 
    1242     . ./prepare_job.sh input_ORCA2_LIM3_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
    1243     cd ${SETTE_DIR} 
    1244     . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    1245  
    1246 fi 
    1247  
    1248 ## Restartability tests for ORCA2_LIM3_AGRIF  
    1249 if [ ${config} -eq 15 ] ;  then 
     1110# TEST FOR ORCA2_LIM3_AGRIF : AGULHAS AGRIF 
     1111if [ ${config} -eq 8 ] ;  then 
     1112## Restartability tests 
    12501113    export TEST_NAME="LONG" 
    12511114    cd ${CONFIG_DIR0} 
    1252     . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_LONG -r ORCA2_LIM3_PISCES -d "OPA_SRC LIM_SRC_3 NST_SRC" -j 8 add_key "key_agrif" del_key "key_top" 
     1115    . ./makenemo -m ${CMP_NAM} -n ORCA2AGR_ST -r ORCA2_LIM3_PISCES -d "OPA_SRC LIM_SRC_3 NST_SRC" -j 8 add_key "key_agrif" del_key "key_top" 
    12531116    cd ${SETTE_DIR} 
    12541117    . ./param.cfg 
     
    13471210    cd ${SETTE_DIR} 
    13481211    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    1349 fi 
     1212 
    13501213 
    13511214## Reproducibility tests for ORCA2_LIM3_AGRIF 
    1352 if [ ${config} -eq 16 ] ;  then 
    13531215    export TEST_NAME="REPRO_4_4" 
    13541216    cd ${CONFIG_DIR0} 
    1355     . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_16 -r ORCA2_LIM3_PISCES -d "OPA_SRC LIM_SRC_3 NST_SRC" -j 8 add_key "key_agrif" del_key "key_top" 
    13561217    cd ${SETTE_DIR} 
    13571218    . ./param.cfg 
     
    13821243    set_namelist 1_namelist_cfg ln_zdfiwm .false. 
    13831244    set_namelist 1_namelist_cfg ln_linssh .true. 
    1384     set_namelist 1_namelist_cfg ln_zdfiwm .false. 
    13851245    set_namelist 1_namelist_cfg ln_hpg_sco .false. 
    13861246    set_namelist 1_namelist_cfg ln_hpg_zps .true.  
     
    14381298fi 
    14391299 
     1300# test code corruption with AGRIF 
     1301if [ ${config} -eq 9 ] ;  then 
     1302 
     1303# Compile with AGRIF but run with no zoom 
     1304    export TEST_NAME="AGRIFNOZ" 
     1305    cd ${CONFIG_DIR0} 
     1306    . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_NOZOOM_ST -r ORCA2_LIM3_PISCES -d "OPA_SRC LIM_SRC_3 NST_SRC" -j 8 add_key "key_agrif" del_key "key_top" 
     1307    cd ${SETTE_DIR} 
     1308    . ./param.cfg 
     1309    . ./all_functions.sh 
     1310    . ./prepare_exe_dir.sh 
     1311    JOB_FILE=${EXE_DIR}/run_job.sh 
     1312    NPROC=4 
     1313    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
     1314    cd ${EXE_DIR} 
     1315    set_namelist namelist_cfg nn_it000 1 
     1316    set_namelist namelist_cfg nn_itend 75 
     1317    set_namelist namelist_cfg ln_ctl .false. 
     1318    set_namelist namelist_cfg ln_clobber .true. 
     1319    set_namelist namelist_cfg ln_read_cfg .true. 
     1320    set_namelist namelist_cfg ln_linssh .true. 
     1321    set_namelist namelist_cfg ln_hpg_sco .false. 
     1322    set_namelist namelist_cfg ln_hpg_zps .true.  
     1323    set_namelist namelist_cfg nn_fwb 0 
     1324    set_namelist namelist_cfg jpni 2 
     1325    set_namelist namelist_cfg jpnj 2 
     1326    set_namelist namelist_cfg jpnij 4 
     1327    set_namelist namelist_cfg ln_icebergs .false.    
     1328#  
     1329#   Set the number of fine grids to zero:     
     1330    sed -i "1s/.*/0/" ${EXE_DIR}/AGRIF_FixedGrids.in 
     1331 
     1332    if [ ${USING_MPMD} == "yes" ] ; then 
     1333       set_xio_using_server iodef.xml true 
     1334    else 
     1335       set_xio_using_server iodef.xml false 
     1336    fi 
     1337    cd ${SETTE_DIR} 
     1338    . ./prepare_job.sh input_ORCA2_LIM3_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
     1339    cd ${SETTE_DIR} 
     1340    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     1341 
     1342fi 
     1343 
     1344if [ ${config} -eq 10 ] ;  then 
     1345# Compile with same option as 9 = ORCA2AGUL_NOZOOM, except ne key_agrif to check AGRIF does not hurt... 
     1346    export TEST_NAME="AGRIFNO" 
     1347    cd ${CONFIG_DIR0} 
     1348    . ./makenemo -m ${CMP_NAM} -n ORCA2AGUL_NOAGR_ST -r ORCA2_LIM3_PISCES -d "OPA_SRC LIM_SRC_3 NST_SRC" -j 8 del_key "key_top" 
     1349    cd ${SETTE_DIR} 
     1350    . ./param.cfg 
     1351    . ./all_functions.sh 
     1352    . ./prepare_exe_dir.sh 
     1353    JOB_FILE=${EXE_DIR}/run_job.sh 
     1354    NPROC=4 
     1355    if [ -f ${JOB_FILE} ] ; then \rm ${JOB_FILE} ; fi 
     1356    cd ${EXE_DIR} 
     1357    set_namelist namelist_cfg nn_it000 1 
     1358    set_namelist namelist_cfg nn_itend 75 
     1359    set_namelist namelist_cfg ln_ctl .false. 
     1360    set_namelist namelist_cfg ln_clobber .true. 
     1361    set_namelist namelist_cfg ln_read_cfg .true. 
     1362    set_namelist namelist_cfg ln_linssh .true. 
     1363    set_namelist namelist_cfg ln_hpg_sco .false. 
     1364    set_namelist namelist_cfg ln_hpg_zps .true.  
     1365    set_namelist namelist_cfg nn_fwb 0 
     1366    set_namelist namelist_cfg jpni 2 
     1367    set_namelist namelist_cfg jpnj 2 
     1368    set_namelist namelist_cfg jpnij 4 
     1369    set_namelist namelist_cfg ln_icebergs .false.        
     1370# 
     1371    if [ ${USING_MPMD} == "yes" ] ; then 
     1372       set_xio_using_server iodef.xml true 
     1373    else 
     1374       set_xio_using_server iodef.xml false 
     1375    fi 
     1376    cd ${SETTE_DIR} 
     1377    . ./prepare_job.sh input_ORCA2_LIM3_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} 
     1378    cd ${SETTE_DIR} 
     1379    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     1380 
     1381fi 
     1382 
    14401383done 
  • branches/2017/dev_CNRS_2017/NEMOGCM/SETTE/sette_rpt.sh

    r8882 r8896  
    1515# For Stand Alone Surface configuration ocean is not running, just run ice model; so no outputs ocean files. 
    1616# Compares LONG rebuild restart ice file with equivalent entry from the SHORT rebuild restart ice file. 
     17# 
     18# check nco module loaded, and load it if not 
     19if [ ! $( echo $LOADEDMODULES | grep cdo ) ]; then module load cdo >& /dev/null ; fi 
    1720# 
    1821  vdir=$1 
     
    3134    cd ${TOOLS_DIR}/REBUILD_NEMO 
    3235    #SF echo "REBUILD LONG restart SAS files, without standard output" 
    33     ./rebuild_nemo -t 4 ../../CONFIG/SAS_LONG/LONG/SAS_00000240_restart_ice  $NPROC > /dev/null 2>&1 
     36    ./rebuild_nemo -t 4 ../../CONFIG/SAS_ST/LONG/SAS_00000240_restart_ice  $NPROC > /dev/null 2>&1 
    3437    #SF echo "REBUILD SHORT restart SAS files, without standard output" 
    35     ./rebuild_nemo -t 4 ../../CONFIG/SAS_LONG/SHORT/SAS_00000240_restart_ice $NPROC >&- 
     38    ./rebuild_nemo -t 4 ../../CONFIG/SAS_ST/SHORT/SAS_00000240_restart_ice $NPROC >&- 
    3639    cd ${SAS_RESTART_DIR}/LONG 
    3740    #SF echo "COPY rebuild restart files" 
     
    4851    done_oce=0 
    4952    # 
    50     if  [  -f $f1o ] && [  -f $f2o ]; then 
    51       cmp -s $f1o $f2o  
    52       #SF  cmp SAS_00000240_restart_ice.nc  ../SHORT/SAS_00000240_restart_ice.nc  > diff_restart.txt 
    53       if [ $? == 0 ]; then 
    54         if [ $pass == 0 ]; then 
    55           printf "%-20s %s %s\n" $nam  " SAS restart files are IDENTICAL :  passed : " $dorv 
    56         fi 
    57       else 
    58         printf "%-20s %s %s\n" $nam  " SAS restart files are DIFFERENT : FAILED : " $dorv  
     53  if  [  -f $f1o ] && [  -f $f2o ]; then 
     54## Compare the two netcdf files 
     55    cdo diffn $f1o $f2o > cdo_diff.out 2> /dev/null 
     56## Identical if cdo_diff.out exists but has zero size 
     57    if [ ! -s cdo_diff.out ]; then 
     58       difi=0 
     59    else 
     60## Identical if first character of $dif ==0 
     61       dif=$( grep -om1 '[0-9]* of [0-9]* records differ' cdo_diff.out ) 
     62# difi contains the first character of summary of cdo dif. if = 0, then 0 record differ between the 2 files     
     63       if [ -n "$dif" ]; then 
     64           difi=`echo $dif | cut -c -1` 
     65       fi 
     66    fi 
     67    \rm cdo_diff.out  
     68 
     69    if [ $difi == 0 ]; then    
     70       if [ $pass == 0 ]; then 
     71         printf "%-20s %s %s\n" $nam  " ice restarts are IDENTICAL  passed : " $dorv 
     72       fi 
     73    else 
     74       printf "%-20s %s %s\n" $nam  " ice restarts are DIFFERENT  FAILED : " $dorv  
    5975        # 
    6076   # Offer view of differences on the second pass 
    6177   # 
    6278        if [ $pass == 1 ]; then 
    63           echo "BE CAREFUL:  NEED cdo to see differences!!!!! " 
    64           echo "DO which cdo and replace cdo PATH to the cdo command in SETTE_rpt.sh " 
    65           echo "IF cdo is not available you need to do difference of netcdf file by hand" 
    6679          echo "<return> to view restart_ice.nc differences" 
    6780          read y 
     
    7184          #read y 
    7285        fi 
    73       fi 
    74     fi 
     86    fi 
     87  else 
     88      printf "%-20s %s\n" $nam " incomplete test"; 
     89      return; 
     90  fi 
    7591# 
    7692fi 
     
    182198    dorv=`ls -1rt $vdir/$nam/$mach/ | tail -1l ` 
    183199    dorv=`echo $dorv | sed -e 's:.*/::'` 
    184     rep1=`ls -1rt $vdir/$nam/$mach/$dorv/ | tail -2l | head -1 ` 
    185     rep2=`ls -1rt $vdir/$nam/$mach/$dorv/ | tail -1l` 
     200    rep1=`ls -1rt $vdir/$nam/$mach/$dorv/ | grep REPRO | tail -2l | head -1 ` 
     201    rep2=`ls -1rt $vdir/$nam/$mach/$dorv/ | grep REPRO | tail -1l` 
    186202    f1o=$vdir/$nam/$mach/$dorv/$rep1/ocean.output 
    187203    f1s=$vdir/$nam/$mach/$dorv/$rep1/run.stat 
     
    256272      fi 
    257273    fi 
     274  fi 
     275} 
     276 
     277function identictest(){ 
     278# 
     279#  checks AGRIF does not corrupe results with no AGRIF zoom. Expects ORCA2AGUL/AGRIFNOZ and ORCA2AGUL_NAGR/AGRIFNO  run directories 
     280# Compares solver.stat files for each 
     281# 
     282  vdir=$1 
     283  dir1=$2 
     284  dir2=$3 
     285  pass=$4 
     286# 
     287  if [ -d $vdir/$dir1 ] && [ -d $vdir/$dir2 ]; then 
     288    dorv1=`ls -1rt $vdir/$dir1/$mach/ | tail -1l ` 
     289    dorv1=`echo $dorv1 | sed -e 's:.*/::'` 
     290    dorv2=`ls -1rt $vdir/$dir2/$mach/ | tail -1l ` 
     291    dorv2=`echo $dorv2 | sed -e 's:.*/::'` 
     292 
     293    rep1=`ls -1rt $vdir/$dir1/$mach/$dorv1/ |  tail -2l | head -1 ` 
     294    rep2=`ls -1rt $vdir/$dir2/$mach/$dorv2/ |  tail -1l` 
     295    f1s=$vdir/$dir1/$mach/$dorv1/$rep1/run.stat 
     296    f2s=$vdir/$dir2/$mach/$dorv2/$rep2/run.stat 
     297 
     298    if  [ ! -f $f1s ] && [ ! -f $f2s ] ; then  
     299      printf "%-20s %s\n" $dir1 $dir2 " incomplete test"; 
     300      return;  
     301    fi 
     302# 
     303    done_oce=0 
     304 
     305    if  [ -f $f1s ] && [ -f $f2s ] ; then 
     306      cmp -s $f1s $f2s 
     307      if [ $? == 0 ]; then 
     308        if [ $pass == 0 ]; then  
     309          printf "%-20s %s %s %s %s\n" $rep1 $rep2  " AGRIF: run.stat unchanged - test  passed : " $dorv1 $dorv2 
     310        fi 
     311      else 
     312        printf "%-20s %s %s %s %s\n" $rep1 $rep2  " for AGRIF, run.stat test FAILED : " $dorv1 $dorv2 
     313# 
     314# Offer view of differences on the second pass 
     315# 
     316        if [ $pass == 1 ]; then 
     317          echo "<return> to view run.stat differences" 
     318          read y 
     319          sdiff $f1s $f2s 
     320          done_oce=1 
     321          echo "<return> to continue" 
     322          read y 
     323        fi 
     324      fi 
     325    fi 
     326  else 
     327    printf "%-20s %s\n" $dir1 $dir2 " incomplete test"; 
    258328  fi 
    259329} 
     
    274344 NPROC=32 
    275345 
    276   SAS_RESTART_DIR=${CONFIG_DIR0}/SAS_LONG 
     346  SAS_RESTART_DIR=${CONFIG_DIR0}/SAS_ST 
    277347# 
    278348  if [ ! -d $NEMO_VALID ]; then 
     
    281351  fi 
    282352# 
    283  
     353# Show current revision tag and branch name 
     354# 
     355cmd="svn" 
     356[ ! -d "$SETTE_DIR/.svn" ] && cmd="git $cmd" 
     357revision=`$cmd info | grep Revision | cut -d ":" -f 2 | tr -d ' '` 
     358branchname=`$cmd info | grep URL | rev | cut -d "/" -f 3 | rev` 
     359echo "SETTE validation report : $branchname @ r$revision" 
     360# 
    284361# The script also needs the date or revision tag. Currently this is taken from the latest sub-directory found in each directory 
    285362 
     
    292369# Rebuild and restartability test for SAS 
    293370# 
    294  for restart_file in WSAS_LONG 
     371 for restart_file in WSAS_ST 
    295372 do 
    296  #  restfile $SAS_RESTART_DIR LONG $pass 
    297373   restfile $NEMO_VALID $restart_file $pass 
    298374 done 
     
    300376# Restartability test 
    301377# 
    302  for restart_test in WGYREPIS_LONG WORCA2LIM3PIS_LONG WORCA2OFFPIS_LONG WAMM12_LONG WISOMIP_LONG WORCA2AGUL_LONG 
     378 for restart_test in WGYREPIS_ST WORCA2LIM3PIS_ST WORCA2OFFPIS_ST WAMM12_ST WISOMIP_ST WORCA2AGR_ST 
    303379 do 
    304380   resttest $NEMO_VALID $restart_test $pass 
     
    307383# Reproducibility tests 
    308384# 
    309  for repro_test in WGYREPIS_32 WORCA2LIM3PIS_32 WORCA2OFFPIS_32 WAMM12_32 WISOMIP_32 WORCA2_LIM3_OBS WORCA2AGUL_1_2 WORCA2AGUL_16 WORCA2AGUL_2_2_NAG 
     385 for repro_test in WGYREPIS_ST WORCA2LIM3PIS_ST WORCA2OFFPIS_ST WAMM12_ST WISOMIP_ST WORCA2_LIM3_OBS_ST WORCA2AGR_ST 
    310386 do 
    311387   reprotest $NEMO_VALID $repro_test $pass 
    312388 done 
    313 # 
     389 
     390 
     391 
     392# AGRIF special check 
     393 dir1=WORCA2AGUL_NOZOOM_ST 
     394 dir2=WORCA2AGUL_NOAGR_ST 
     395 identictest $NEMO_VALID $dir1 $dir2 $pass  
     396 
     397 
    314398done 
     399# 
     400## Additional checks for ORCA2AGUL/FIRST standalone AGRIF test 
     401## still to be added 
     402 
     403 
     404 
    315405exit 
Note: See TracChangeset for help on using the changeset viewer.