Changeset 10750 for NEMO/branches/2019
- Timestamp:
- 2019-03-13T19:06:16+01:00 (5 years ago)
- Location:
- NEMO/branches/2019/fix_sette_ticket2239
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2019/fix_sette_ticket2239/README
r10732 r10750 2 2 3 3 PRINCIPAL SCRIPT: sette.sh 4 sette.sh is a simple wrapper running test on the reference configuration, test cases and generate the report at the end. 5 User need to set up the param.cfg file correctly and download input file before running the script. 4 * sette.sh is a simple wrapper running test on the reference configuration, test cases and generate the report at the end. 5 * sette.sh is able to take a list of configuration in argument (sette.sh -t "CFG1 CFG2 CFG3"). The list of available configurations is available in running ./sette_list_avail_cfg.sh. 6 The default for sette is to run all of the reference and test configurations. 7 * User need to set up the param.cfg file correctly and download input file before running the script. 6 8 7 9 SECONDARY SCRIPT 8 sette_reference-configuration.sh, sette_test-cases.sh: run sette tests on the reference configurations and test cases respectively 9 sette_rpt.sh: generate the sette report. See below in USER MODIFICATIONS the usage of the script 10 sette_list_avail_rev.sh: generate a listing on all the revision available in the validation directory for each configuration. 10 * sette_reference-configuration.sh: run sette tests on the reference configurations 11 * sette_test-cases.sh : run sette tests on test cases 12 * sette_rpt.sh : generate the sette report. See below in USER MODIFICATIONS the usage of the script 13 * sette_list_avail_rev.sh : generate a listing on all the revision available in the validation directory for each configuration. 14 * sette_list_avail_cfg.sh : generate a listing of all the available configurations. 11 15 12 16 VERY IMPORTANT : for a verbose debug do: … … 15 19 16 20 USER MODIFICATIONS 17 in sette_cfg-ref.sh and sette_test-cases.sh script :21 * in sette_cfg-ref.sh and sette_test-cases.sh script : 18 22 OPTIONAL ARGUMENT : compiler among those available in NEMOGCM/ARCH (if nothing will use the one specified in paramd.cfg) 19 23 BATCH_COMMAND_PAR : command for job submission in batch mode parallel (MMIÂ) specified in param.cfg … … 48 52 and only run short test ===> ./fcm_job 4 SHORT no yes ) 49 53 50 in param.cfg :54 * in param.cfg : 51 55 52 56 COMPILER : compiler among those available in NEMOGCM/ARCH … … 64 68 ADD_NODIGNEDZERO : set "yes" if you need key_nosignedzero to run nemo 65 69 66 in fcm_job.sh :70 * in fcm_job.sh : 67 71 IMPORTANT : control that name of tar file in FORCING directory 68 72 is the same of that in input_REF_CONFIG.cfg, if not change one. … … 71 75 NOTE: if INTERACT_FLAG="no" it is needed a batch_file (see below to create a new one) 72 76 73 in sette_rpt.sh : - if no argument are given, the report will be generated on the last changed revision.77 * in sette_rpt.sh : - if no argument are given, the report will be generated on the last changed revision. 74 78 - if an argument is given (revision number) the report will be generated for this revision 75 79 - if 'old' is given as argument the former behavior is applied (the latest revision is check whatever the current revision … … 97 101 1. add arch-compiler.fcm in NEMOGCM/ARCH directory 98 102 2. makenemo -m new_compiler (see makenemo -h for help) 103 3. add new batch-file 99 104 100 105 TO ADD NEW BATCH-FILE: 101 106 1. see in SETTE/BATCH_TEMPLATE directory existing examples 102 107 2. create you own batch file like: batch-${COMPILER} 103 (note: sette_test-cases.sh and sette_cfg-ref.sh will copy it in job_batch_template if you run tests in INTERACT_FLAG="no")108 (note: sette_test-cases.sh and sette_cfg-ref.sh will copy it in job_batch_template if you run tests in INTERACT_FLAG="no") -
NEMO/branches/2019/fix_sette_ticket2239/param.cfg
r10747 r10750 2 2 # 3 3 # Compiler among those in NEMOGCM/ARCH 4 COMPILER=X 64_ADA4 COMPILER=XC40_METO_perso 5 5 # 6 6 # REFERENCE run.stat tracer.stat you want to compare with … … 20 20 BATCH_NAME=${SETTE_BATCH_NAME:-sette} 21 21 # List of test configurations 22 TEST_CONFIGS=${SETTE_TEST_CONFIGS:-"GYRE_PISCES ORCA2_ICE_PISCES ORCA2_OFF_PISCES AMM12 SAS ORCA2_ICE_OBS AGRIF SPITZ12 LOCK_EXCHANGE VORTEX ICE_AGRIF ISOMIP"}22 TEST_CONFIGS=${SETTE_TEST_CONFIGS:-"GYRE_PISCES ORCA2_ICE_PISCES ORCA2_OFF_PISCES AMM12 SAS ORCA2_ICE_OBS AGRIF SPITZ12 OVERFLOW LOCK_EXCHANGE VORTEX ICE_AGRIF ISOMIP"} 23 23 # 24 24 #- FORCING files storing -
NEMO/branches/2019/fix_sette_ticket2239/sette.sh
r10747 r10750 9 9 # (overrides selection made using 10 10 # environment variable SETTE_TEST_CONFIGS) 11 while getopts t: option; do [ $option == "t" ] && export SETTE_TEST_CONFIGS=$OPTARG; done 12 shift $((OPTIND - 1)) 11 12 if [ $# -gt 0 ]; then 13 while getopts t: option; do 14 case $option in 15 t) export SETTE_TEST_CONFIGS=$OPTARG ;; 16 h) echo 'sette.sh allow no arguments (all configuration will be tested or -t "CFG1_to_test CFG2_to_test ..."'; exit 42 ;; 17 esac 18 done 19 shift $((OPTIND - 1)) 20 fi 13 21 14 22 . ./param.cfg -
NEMO/branches/2019/fix_sette_ticket2239/sette_reference-configurations.sh
r10747 r10750 310 310 set_namelist namelist_cfg cn_exp \"O2L3P_LONG\" 311 311 set_namelist namelist_cfg nn_it000 1 312 set_namelist namelist_cfg nn_itend 99 0313 set_namelist namelist_cfg nn_stock 49 5312 set_namelist namelist_cfg nn_itend 992 313 set_namelist namelist_cfg nn_stock 496 314 314 set_namelist namelist_cfg jpni 4 315 315 set_namelist namelist_cfg jpnj 8 … … 358 358 cd ${EXE_DIR} 359 359 set_namelist namelist_cfg cn_exp \"O2L3P_SHORT\" 360 set_namelist namelist_cfg nn_it000 49 6361 set_namelist namelist_cfg nn_itend 99 0362 set_namelist namelist_cfg nn_stock 49 5360 set_namelist namelist_cfg nn_it000 497 361 set_namelist namelist_cfg nn_itend 992 362 set_namelist namelist_cfg nn_stock 496 363 363 set_namelist namelist_cfg ln_rstart .true. 364 364 set_namelist namelist_cfg nn_rstctl 2 … … 383 383 set_namelist namelist_top_cfg ln_rsttr .true. 384 384 set_namelist namelist_top_cfg nn_rsttr 2 385 set_namelist namelist_cfg cn_ocerst_in \"O2L3P_LONG_0000049 5_restart\"386 set_namelist namelist_top_cfg cn_trcrst_in \"O2L3P_LONG_0000049 5_restart_trc\"387 set_namelist namelist_ice_cfg cn_icerst_in \"O2L3P_LONG_0000049 5_restart_ice\"385 set_namelist namelist_cfg cn_ocerst_in \"O2L3P_LONG_00000496_restart\" 386 set_namelist namelist_top_cfg cn_trcrst_in \"O2L3P_LONG_00000496_restart_trc\" 387 set_namelist namelist_ice_cfg cn_icerst_in \"O2L3P_LONG_00000496_restart_ice\" 388 388 set_namelist namelist_top_cfg ln_trcdta .false. 389 389 # put ln_ironsed, ln_river, ln_ndepo, ln_dust … … 403 403 L_NPROC=$(( $i - 1 )) 404 404 L_NPROC=`printf "%04d\n" ${L_NPROC}` 405 ln -sf ../LONG/O2L3P_LONG_0000049 5_restart_${L_NPROC}.nc .406 ln -sf ../LONG/O2L3P_LONG_0000049 5_restart_trc_${L_NPROC}.nc .407 ln -sf ../LONG/O2L3P_LONG_0000049 5_restart_ice_${L_NPROC}.nc .405 ln -sf ../LONG/O2L3P_LONG_00000496_restart_${L_NPROC}.nc . 406 ln -sf ../LONG/O2L3P_LONG_00000496_restart_trc_${L_NPROC}.nc . 407 ln -sf ../LONG/O2L3P_LONG_00000496_restart_ice_${L_NPROC}.nc . 408 408 if [ ${USING_ICEBERGS} == "yes" ] 409 409 then 410 ln -sf ../LONG/O2L3P_LONG_icebergs_0000049 5_restart_${L_NPROC}.nc O2L3P_LONG_00000495_restart_icebergs_${L_NPROC}.nc410 ln -sf ../LONG/O2L3P_LONG_icebergs_00000496_restart_${L_NPROC}.nc O2L3P_LONG_00000496_restart_icebergs_${L_NPROC}.nc 411 411 fi 412 412 done … … 435 435 set_namelist namelist_cfg cn_exp \"O2L3P_48\" 436 436 set_namelist namelist_cfg nn_it000 1 437 set_namelist namelist_cfg nn_itend 99 0437 set_namelist namelist_cfg nn_itend 992 438 438 set_namelist namelist_cfg jpni 4 439 439 set_namelist namelist_cfg jpnj 8 … … 486 486 set_namelist namelist_cfg cn_exp \"O2L3P_84\" 487 487 set_namelist namelist_cfg nn_it000 1 488 set_namelist namelist_cfg nn_itend 99 0488 set_namelist namelist_cfg nn_itend 992 489 489 set_namelist namelist_cfg jpni 8 490 490 set_namelist namelist_cfg jpnj 4 … … 856 856 set_namelist namelist_cfg cn_exp \"SAS\" 857 857 set_namelist namelist_cfg nn_it000 1 858 set_namelist namelist_cfg nn_itend 2 40859 set_namelist namelist_cfg nn_stock 12 0858 set_namelist namelist_cfg nn_itend 256 859 set_namelist namelist_cfg nn_stock 128 860 860 set_namelist namelist_cfg jpni 4 861 861 set_namelist namelist_cfg jpnj 8 … … 878 878 cd ${EXE_DIR} 879 879 set_namelist namelist_cfg cn_exp \"SAS\" 880 set_namelist namelist_cfg nn_it000 12 1881 set_namelist namelist_cfg nn_itend 2 40880 set_namelist namelist_cfg nn_it000 129 881 set_namelist namelist_cfg nn_itend 256 882 882 set_namelist namelist_cfg jpni 4 883 883 set_namelist namelist_cfg jpnj 8 … … 888 888 set_namelist namelist_cfg nn_rstctl 2 889 889 set_namelist namelist_cfg nn_date0 010109 890 set_namelist namelist_cfg cn_ocerst_in \"SAS_0000012 0_restart\"891 set_namelist namelist_ice_cfg cn_icerst_in \"SAS_0000012 0_restart_ice\"890 set_namelist namelist_cfg cn_ocerst_in \"SAS_00000128_restart\" 891 set_namelist namelist_ice_cfg cn_icerst_in \"SAS_00000128_restart_ice\" 892 892 if [ ${USING_MPMD} == "yes" ] ; then 893 893 set_xio_using_server iodef.xml true … … 898 898 L_NPROC=$(( $i - 1 )) 899 899 L_NPROC=`printf "%04d\n" ${L_NPROC}` 900 ln -sf ../LONG/SAS_0000012 0_restart_${L_NPROC}.nc .901 ln -sf ../LONG/SAS_0000012 0_restart_ice_${L_NPROC}.nc .900 ln -sf ../LONG/SAS_00000128_restart_${L_NPROC}.nc . 901 ln -sf ../LONG/SAS_00000128_restart_ice_${L_NPROC}.nc . 902 902 done 903 903 cd ${SETTE_DIR} … … 920 920 set_namelist namelist_cfg cn_exp \"SAS_48\" 921 921 set_namelist namelist_cfg nn_it000 1 922 set_namelist namelist_cfg nn_itend 75922 set_namelist namelist_cfg nn_itend 80 923 923 set_namelist namelist_cfg jpni 4 924 924 set_namelist namelist_cfg jpnj 8 … … 946 946 set_namelist namelist_cfg cn_exp \"SAS_84\" 947 947 set_namelist namelist_cfg nn_it000 1 948 set_namelist namelist_cfg nn_itend 75948 set_namelist namelist_cfg nn_itend 80 949 949 set_namelist namelist_cfg jpni 8 950 950 set_namelist namelist_cfg jpnj 4 … … 986 986 set_namelist namelist_cfg cn_exp \"O2L3OBS_48\" 987 987 set_namelist namelist_cfg nn_it000 1 988 set_namelist namelist_cfg nn_itend 75988 set_namelist namelist_cfg nn_itend 80 989 989 set_namelist namelist_cfg ln_read_cfg .true. 990 990 set_namelist namelist_cfg jpni 4 … … 1039 1039 set_namelist namelist_cfg cn_exp \"O2L3OBS_84\" 1040 1040 set_namelist namelist_cfg nn_it000 1 1041 set_namelist namelist_cfg nn_itend 751041 set_namelist namelist_cfg nn_itend 80 1042 1042 set_namelist namelist_cfg ln_read_cfg .true. 1043 1043 set_namelist namelist_cfg jpni 8
Note: See TracChangeset
for help on using the changeset viewer.