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 14826 for utils/CI/sette/sette.sh – NEMO

Ignore:
Timestamp:
2021-05-10T18:02:51+02:00 (3 years ago)
Author:
acc
Message:

Added command-line support for switching on/off tiling, extended halo and icebergs.
These changes only set the shell variables previously set in sette_reference_configurations.sh;
developers will still need to add the relevant logic to those configurations that may wish
to toggle these options. Also added an option for the future to support RK3 timestepping.

Options are now:

sette.sh with no arguments (in this case all configuration will be tested)
-n "CFG1_to_test CFG2_to_test ..." to test some specific configurations
-x "TEST_type TEST_type ..." to specify particular types of test (RESTART is mandatory)
-T to set ln_timing true for all non-AGRIF configurations
-c to clean each configuration
-q run without qco environment
-Q run with key_qco AND key_RK3
-t activate ln_tile in all tests that support it; also forces nn_hls=2 (default: off)
-e activate extended halo (nn_hls=2) in all tests that support it (default: nn_hls=1)
-i run without icebergs even in tests that support them (default: on)
-s to synchronise the sette MY_SRC and EXP00 with the reference MY_SRC and EXPREF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils/CI/sette/sette.sh

    r14244 r14826  
    55export SETTE_TIMING='no' 
    66export NOT_USING_QCO='no' 
     7export USING_RK3='no' 
     8export USING_ICEBERGS='yes' 
     9export USING_EXTRA_HALO='no' 
     10export USING_TILING='no' 
    711 
    812# Parse command-line arguments 
    913if [ $# -gt 0 ]; then 
    10   while getopts t:x:cshTq option; do  
     14  while getopts n:x:cshTqQtei option; do  
    1115     case $option in 
    1216        c) export SETTE_CLEAN_CONFIGS='yes' 
     
    1923           echo "MY_SRC and EXP00 in $SETTE_TEST_CONFIGS will be synchronised with the MY_SRC and EXPREF from the reference configuration" 
    2024           echo "";; 
    21         t) export SETTE_TEST_CONFIGS=($OPTARG) 
     25        n) export SETTE_TEST_CONFIGS=($OPTARG) 
    2226           echo "" 
    2327           if [ ${#SETTE_TEST_CONFIGS[@]} -gt 1 ]; then 
     
    3741           echo "key_qco and key_linssh will NOT be activated" 
    3842           echo "";; 
     43   Q) export USING_RK3='no' 
     44           echo "" 
     45           echo "key_qco and key_RK3 will be activated" 
     46           echo "..when they are ready; disabled for now: USING_RK3='no'" 
     47           echo "";; 
     48        t) export USING_TILING='yes' 
     49           echo "" 
     50           echo "ln_tile will be set to true AND nn_hls will be set to 2" 
     51           echo "";; 
     52        e) export USING_EXTRA_HALO='yes' 
     53           echo "" 
     54           echo "nn_hls will be set to 2" 
     55           echo "";; 
     56        i) export USING_ICEBERGS='no' 
     57           echo "" 
     58           echo "ln_icebergs will be set to false" 
     59           echo "";; 
    3960        h | *) echo 'sette.sh with no arguments (in this case all configuration will be tested)' 
    40                echo '-t "CFG1_to_test CFG2_to_test ..." to test some specific configurations' 
     61               echo '-n "CFG1_to_test CFG2_to_test ..." to test some specific configurations' 
    4162               echo '-x "TEST_type TEST_type ..." to specify particular types of test (RESTART is mandatory)' 
    4263               echo '-T to set ln_timing true for all non-AGRIF configurations' 
    4364               echo '-c to clean each configuration' 
    4465               echo '-q run without qco environment' 
     66               echo '-Q run with key_qco AND key_RK3 (currently disabled)' 
     67               echo '-t activate ln_tile in all tests that support it; also forces nn_hls=2 (default: off)' 
     68               echo '-e activate extended halo (nn_hls=2) in all tests that support it (default: nn_hls=1)' 
     69               echo '-i run without icebergs even in tests that support them (default: on)' 
    4570               echo '-s to synchronise the sette MY_SRC and EXP00 with the reference MY_SRC and EXPREF'; exit 42 ;; 
    4671     esac 
Note: See TracChangeset for help on using the changeset viewer.