Changeset 8896
- Timestamp:
- 2017-12-05T10:38:40+01:00 (7 years ago)
- 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 133 133 cp BATCH_TEMPLATE/${JOB_PREFIX}-${COMPILER} job_batch_template || exit 134 134 # Description of configuration tested: 135 # GYRE_PISCES : 1 & 2136 # ORCA2_LIM3_PISCES : 3 & 4137 # ORCA2_OFF_PISCES : 5 & 6138 # AMM12 : 7 & 8139 # SAS : 9fos SAS there is no run.stat so is useless to test REPRO140 # ISOMIP : 10 & 11141 # ORCA2_LIM3_OBS : 12142 # ORCA2_AGRIF_LIM3 : 13 & 14143 # 15 & 16144 145 for config in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16135 # 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 145 for config in 1 2 3 4 5 6 7 8 9 10 146 146 do 147 147 … … 151 151 export TEST_NAME="LONG" 152 152 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} 154 154 cd ${SETTE_DIR} 155 155 . ./param.cfg … … 220 220 cd ${SETTE_DIR} 221 221 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 222 fi 223 224 if [ ${config} -eq 2 ] ; then 222 225 223 ## Reproducibility tests for GYRE_PISCES 226 224 export TEST_NAME="REPRO_4_8" 227 225 cd ${CONFIG_DIR0} 228 . ./makenemo -m ${CMP_NAM} -n GYREPIS_32 -r GYRE_PISCES -j 8 del_key ${DEL_KEYS}229 226 cd ${SETTE_DIR} 230 227 . ./param.cfg … … 287 284 288 285 # TESTS FOR ORCA2_LIM3_PISCES CONFIGURATION 289 if [ ${config} -eq 3] ; then286 if [ ${config} -eq 2 ] ; then 290 287 ## Restartability tests for ORCA2_LIM3_PISCES 291 288 export TEST_NAME="LONG" 292 289 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} 294 291 cd ${SETTE_DIR} 295 292 . ./param.cfg … … 388 385 cd ${SETTE_DIR} 389 386 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 390 fi 391 392 if [ ${config} -eq 4 ] ; then 387 393 388 ## Reproducibility tests for ORCA2_LIM3_PISCES 394 389 export TEST_NAME="REPRO_4_8" 395 390 cd ${CONFIG_DIR0} 396 . ./makenemo -m ${CMP_NAM} -n ORCA2LIM3PIS_32 -r ORCA2_LIM3_PISCES -j 8 del_key ${DEL_KEYS}397 391 cd ${SETTE_DIR} 398 392 . ./param.cfg … … 485 479 486 480 # TESTS FOR ORCA2_OFF_PISCES CONFIGURATION 487 if [ ${config} -eq 5] ; then481 if [ ${config} -eq 3 ] ; then 488 482 ## Restartability tests for ORCA2_OFF_PISCES 489 483 export TEST_NAME="LONG" 490 484 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} 492 486 cd ${SETTE_DIR} 493 487 . ./param.cfg … … 574 568 cd ${SETTE_DIR} 575 569 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 576 fi 577 578 if [ ${config} -eq 6 ] ; then 570 579 571 ## Reproducibility tests for ORCA2_OFF_PISCES 580 572 export TEST_NAME="REPRO_4_8" 581 573 cd ${CONFIG_DIR0} 582 . ./makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_32 -r ORCA2_OFF_PISCES -j 8 del_key ${DEL_KEYS}583 574 cd ${SETTE_DIR} 584 575 . ./param.cfg … … 664 655 665 656 # TESTS FOR AMM12 CONFIGURATION 666 if [ ${config} -eq 7] ; then657 if [ ${config} -eq 4 ] ; then 667 658 ## Restartability tests for AMM12 668 659 export TEST_NAME="LONG" 669 660 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} 671 662 cd ${SETTE_DIR} 672 663 . ./param.cfg … … 728 719 cd ${SETTE_DIR} 729 720 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 730 fi 731 732 if [ ${config} -eq 8 ] ; then 721 733 722 ## Reproducibility tests for AMM12 734 723 export TEST_NAME="REPRO_8_4" 735 724 cd ${CONFIG_DIR0} 736 . ./makenemo -m ${CMP_NAM} -n AMM12_32 -r AMM12 -j 8 del_key ${DEL_KEYS}737 725 cd ${SETTE_DIR} 738 726 . ./param.cfg … … 792 780 793 781 # TESTS FOR ORCA2_SAS_LIM3 CONFIGURATION 794 if [ ${config} -eq 9] ; then782 if [ ${config} -eq 5 ] ; then 795 783 ## Restartability tests for SAS 796 784 export TEST_NAME="LONG" 797 785 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} 799 787 cd ${SETTE_DIR} 800 788 . ./param.cfg … … 845 833 set_namelist namelist_cfg ln_rstart .true. 846 834 set_namelist namelist_cfg nn_rstctl 2 847 set_namelist namelist_cfg nn_date0 01010 6835 set_namelist namelist_cfg nn_date0 010109 848 836 set_namelist namelist_cfg cn_ocerst_in \"SAS_00000120_restart\" 849 837 set_namelist namelist_ice_cfg cn_icerst_in \"SAS_00000120_restart_ice\" … … 866 854 867 855 # TESTS FOR ISOMIP CONFIGURATION 868 if [ ${config} -eq 10] ; then856 if [ ${config} -eq 6 ] ; then 869 857 ## Restartability tests for ISOMIP 870 858 export TEST_NAME="LONG" 871 859 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} 873 861 cd ${SETTE_DIR} 874 862 . ./param.cfg … … 939 927 cd ${SETTE_DIR} 940 928 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 941 fi 942 if [ ${config} -eq 11 ] ; then 929 943 930 ## Reproducibility tests for ISOMIP 944 931 export TEST_NAME="REPRO_4_8" 945 932 cd ${CONFIG_DIR0} 946 . ./makenemo -m ${CMP_NAM} -n ISOMIP_32 -r ISOMIP -a TEST_CASES -j 8 del_key ${DEL_KEYS}947 933 cd ${SETTE_DIR} 948 934 . ./param.cfg … … 1010 996 ## Test assimilation interface code, OBS and ASM for reproducibility 1011 997 ## Restartability not tested (ASM code not restartable while increments are being applied) 1012 if [ ${config} -eq 12] ; then998 if [ ${config} -eq 7 ] ; then 1013 999 ## Reproducibility tests for ORCA2_LIM3_OBS 1014 1000 export TEST_NAME="REPRO_4_8" 1015 1001 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" 1017 1003 cd ${SETTE_DIR} 1018 1004 . ./param.cfg … … 1122 1108 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 1123 1109 fi 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 1111 if [ ${config} -eq 8 ] ; then 1112 ## Restartability tests 1250 1113 export TEST_NAME="LONG" 1251 1114 cd ${CONFIG_DIR0} 1252 . ./makenemo -m ${CMP_NAM} -n ORCA2AG UL_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" 1253 1116 cd ${SETTE_DIR} 1254 1117 . ./param.cfg … … 1347 1210 cd ${SETTE_DIR} 1348 1211 . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 1349 fi 1212 1350 1213 1351 1214 ## Reproducibility tests for ORCA2_LIM3_AGRIF 1352 if [ ${config} -eq 16 ] ; then1353 1215 export TEST_NAME="REPRO_4_4" 1354 1216 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"1356 1217 cd ${SETTE_DIR} 1357 1218 . ./param.cfg … … 1382 1243 set_namelist 1_namelist_cfg ln_zdfiwm .false. 1383 1244 set_namelist 1_namelist_cfg ln_linssh .true. 1384 set_namelist 1_namelist_cfg ln_zdfiwm .false.1385 1245 set_namelist 1_namelist_cfg ln_hpg_sco .false. 1386 1246 set_namelist 1_namelist_cfg ln_hpg_zps .true. … … 1438 1298 fi 1439 1299 1300 # test code corruption with AGRIF 1301 if [ ${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 1342 fi 1343 1344 if [ ${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 1381 fi 1382 1440 1383 done -
branches/2017/dev_CNRS_2017/NEMOGCM/SETTE/sette_rpt.sh
r8882 r8896 15 15 # For Stand Alone Surface configuration ocean is not running, just run ice model; so no outputs ocean files. 16 16 # 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 19 if [ ! $( echo $LOADEDMODULES | grep cdo ) ]; then module load cdo >& /dev/null ; fi 17 20 # 18 21 vdir=$1 … … 31 34 cd ${TOOLS_DIR}/REBUILD_NEMO 32 35 #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>&136 ./rebuild_nemo -t 4 ../../CONFIG/SAS_ST/LONG/SAS_00000240_restart_ice $NPROC > /dev/null 2>&1 34 37 #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 >&- 36 39 cd ${SAS_RESTART_DIR}/LONG 37 40 #SF echo "COPY rebuild restart files" … … 48 51 done_oce=0 49 52 # 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 59 75 # 60 76 # Offer view of differences on the second pass 61 77 # 62 78 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"66 79 echo "<return> to view restart_ice.nc differences" 67 80 read y … … 71 84 #read y 72 85 fi 73 fi 74 fi 86 fi 87 else 88 printf "%-20s %s\n" $nam " incomplete test"; 89 return; 90 fi 75 91 # 76 92 fi … … 182 198 dorv=`ls -1rt $vdir/$nam/$mach/ | tail -1l ` 183 199 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` 186 202 f1o=$vdir/$nam/$mach/$dorv/$rep1/ocean.output 187 203 f1s=$vdir/$nam/$mach/$dorv/$rep1/run.stat … … 256 272 fi 257 273 fi 274 fi 275 } 276 277 function 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"; 258 328 fi 259 329 } … … 274 344 NPROC=32 275 345 276 SAS_RESTART_DIR=${CONFIG_DIR0}/SAS_ LONG346 SAS_RESTART_DIR=${CONFIG_DIR0}/SAS_ST 277 347 # 278 348 if [ ! -d $NEMO_VALID ]; then … … 281 351 fi 282 352 # 283 353 # Show current revision tag and branch name 354 # 355 cmd="svn" 356 [ ! -d "$SETTE_DIR/.svn" ] && cmd="git $cmd" 357 revision=`$cmd info | grep Revision | cut -d ":" -f 2 | tr -d ' '` 358 branchname=`$cmd info | grep URL | rev | cut -d "/" -f 3 | rev` 359 echo "SETTE validation report : $branchname @ r$revision" 360 # 284 361 # The script also needs the date or revision tag. Currently this is taken from the latest sub-directory found in each directory 285 362 # … … 292 369 # Rebuild and restartability test for SAS 293 370 # 294 for restart_file in WSAS_ LONG371 for restart_file in WSAS_ST 295 372 do 296 # restfile $SAS_RESTART_DIR LONG $pass297 373 restfile $NEMO_VALID $restart_file $pass 298 374 done … … 300 376 # Restartability test 301 377 # 302 for restart_test in WGYREPIS_ LONG WORCA2LIM3PIS_LONG WORCA2OFFPIS_LONG WAMM12_LONG WISOMIP_LONG WORCA2AGUL_LONG378 for restart_test in WGYREPIS_ST WORCA2LIM3PIS_ST WORCA2OFFPIS_ST WAMM12_ST WISOMIP_ST WORCA2AGR_ST 303 379 do 304 380 resttest $NEMO_VALID $restart_test $pass … … 307 383 # Reproducibility tests 308 384 # 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_NAG385 for repro_test in WGYREPIS_ST WORCA2LIM3PIS_ST WORCA2OFFPIS_ST WAMM12_ST WISOMIP_ST WORCA2_LIM3_OBS_ST WORCA2AGR_ST 310 386 do 311 387 reprotest $NEMO_VALID $repro_test $pass 312 388 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 314 398 done 399 # 400 ## Additional checks for ORCA2AGUL/FIRST standalone AGRIF test 401 ## still to be added 402 403 404 315 405 exit
Note: See TracChangeset
for help on using the changeset viewer.