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 14869 for utils/CI/sette_ticket2673/sette_test-cases.sh – NEMO

Ignore:
Timestamp:
2021-05-16T12:41:50+02:00 (3 years ago)
Author:
acc
Message:

Branch: sette_ticket2673. Added missing export for NEMO_VALID. Also tidied up scripts with new set_namelist_opt function and adapting set_xio_using_server function to accept yes/no as well as true/false

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils/CI/sette_ticket2673/sette_test-cases.sh

    r14867 r14869  
    166166    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
    167167    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
    168     if [ ${USING_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi 
    169     if [ ${USING_MPMD} == "yes" ] ; then 
    170        set_xio_using_server iodef.xml true 
    171     else 
    172        set_xio_using_server iodef.xml false 
    173     fi 
     168    set_namelist_opt namelist_cfg ln_timing ${USING_TIMING} .true. .false. 
     169    set_xio_using_server iodef.xml ${USING_MPMD} 
    174170    cd ${SETTE_DIR} 
    175171    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} 
     
    189185    set_namelist namelist_cfg nn_rstctl 2 
    190186    set_namelist namelist_cfg cn_ocerst_in \"OVF_LONG_${ITRST}_restart\" 
    191     if [ ${USING_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi 
    192     if [ ${USING_MPMD} == "yes" ] ; then 
    193        set_xio_using_server iodef.xml true 
    194     else 
    195        set_xio_using_server iodef.xml false 
    196     fi 
     187    set_namelist_opt namelist_cfg ln_timing ${USING_TIMING} .true. .false. 
     188    set_xio_using_server iodef.xml ${USING_MPMD} 
    197189    ln -sf ../LONG/OVF_LONG_${ITRST}_restart.nc . 
    198190 
     
    235227   set_namelist namelist_cfg nn_it000 1 
    236228   set_namelist namelist_cfg nn_itend ${ITEND} 
    237         if [ ${USING_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi 
    238         if [ ${USING_MPMD} == "yes" ] ; then 
    239            set_xio_using_server iodef.xml true 
    240         else 
    241            set_xio_using_server iodef.xml false 
    242         fi 
     229        set_namelist_opt namelist_cfg ln_timing ${USING_TIMING} .true. .false. 
     230        set_xio_using_server iodef.xml ${USING_MPMD} 
    243231        cd ${SETTE_DIR} 
    244232        . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} 
     
    286274    set_namelist namelist_cfg nn_stock $(( ${ITEND} / 2 )) 
    287275    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
    288     if [ ${USING_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi 
    289     if [ ${USING_MPMD} == "yes" ] ; then 
    290        set_xio_using_server iodef.xml true 
    291     else 
    292        set_xio_using_server iodef.xml false 
    293     fi 
     276    set_namelist_opt namelist_cfg ln_timing ${USING_TIMING} .true. .false. 
     277    set_xio_using_server iodef.xml ${USING_MPMD} 
    294278    cd ${SETTE_DIR} 
    295279    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} 
     
    309293    set_namelist namelist_cfg nn_rstctl 2 
    310294    set_namelist namelist_cfg cn_ocerst_in \"LOCK_LONG_${ITRST}_restart\" 
    311     if [ ${USING_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi 
    312     if [ ${USING_MPMD} == "yes" ] ; then 
    313        set_xio_using_server iodef.xml true 
    314     else 
    315        set_xio_using_server iodef.xml false 
    316     fi 
     295    set_namelist_opt namelist_cfg ln_timing ${USING_TIMING} .true. .false. 
     296    set_xio_using_server iodef.xml ${USING_MPMD} 
    317297    ln -sf ../LONG/LOCK_LONG_${ITRST}_restart.nc . 
    318298 
     
    353333        rm namelist_*_*_*_* 
    354334        cp -pL ${CONFIG_DIR}/${NEW_CONF}/EXP00/$file namelist_cfg 
    355         if [ ${USING_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi 
    356335   set_namelist namelist_cfg nn_it000 1 
    357336        set_namelist namelist_cfg nn_itend ${ITEND} 
    358         if [ ${USING_MPMD} == "yes" ] ; then 
    359            set_xio_using_server iodef.xml true 
    360         else 
    361            set_xio_using_server iodef.xml false 
    362         fi 
     337        set_namelist_opt namelist_cfg ln_timing ${USING_TIMING} .true. .false. 
     338        set_xio_using_server iodef.xml ${USING_MPMD} 
    363339        cd ${SETTE_DIR} 
    364340        . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} 
     
    415391    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. 
    416392    
    417     #if [ ${USING_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi 
    418     if [ ${USING_MPMD} == "yes" ] ; then 
    419         set_xio_using_server iodef.xml true 
    420     else 
    421         set_xio_using_server iodef.xml false 
    422     fi 
     393    #set_namelist_opt namelist_cfg ln_timing ${USING_TIMING} .true. .false. 
     394    set_xio_using_server iodef.xml ${USING_MPMD} 
    423395    cd ${SETTE_DIR} 
    424396    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} 
     
    448420    set_namelist 1_namelist_cfg cn_ocerst_in \"VORTEX_LONG_${ITRST_1}_restart\" 
    449421       
    450     #if [ ${USING_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi 
    451     if [ ${USING_MPMD} == "yes" ] ; then 
    452         set_xio_using_server iodef.xml true 
    453     else 
    454         set_xio_using_server iodef.xml false 
    455     fi 
     422    #set_namelist_opt namelist_cfg ln_timing ${USING_TIMING} .true. .false. 
     423    set_xio_using_server iodef.xml ${USING_MPMD} 
    456424    if [ $NPROC -eq 1 ] ;  then 
    457425        ln -sf ../LONG/VORTEX_LONG_${ITRST}_restart.nc . 
     
    538506    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. 
    539507 
    540     #if [ ${USING_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi 
    541     if [ ${USING_MPMD} == "yes" ] ; then 
    542        set_xio_using_server iodef.xml true 
    543     else 
    544        set_xio_using_server iodef.xml false 
    545     fi 
     508    #set_namelist_opt namelist_cfg ln_timing ${USING_TIMING} .true. .false. 
     509    set_xio_using_server iodef.xml ${USING_MPMD} 
    546510    cd ${SETTE_DIR} 
    547511    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} 
     
    598562    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. 
    599563     
    600     #if [ ${USING_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi 
    601     if [ ${USING_MPMD} == "yes" ] ; then 
    602         set_xio_using_server iodef.xml true 
    603     else 
    604         set_xio_using_server iodef.xml false 
    605     fi 
     564    #set_namelist_opt namelist_cfg ln_timing ${USING_TIMING} .true. .false. 
     565    set_xio_using_server iodef.xml ${USING_MPMD} 
    606566    cd ${SETTE_DIR} 
    607567    . ./prepare_job.sh input_ICE_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} 
     
    634594     
    635595     
    636     #if [ ${USING_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi 
    637     if [ ${USING_MPMD} == "yes" ] ; then 
    638         set_xio_using_server iodef.xml true 
    639     else 
    640         set_xio_using_server iodef.xml false 
    641     fi 
     596    #set_namelist_opt namelist_cfg ln_timing ${USING_TIMING} .true. .false. 
     597    set_xio_using_server iodef.xml ${USING_MPMD} 
    642598    if [ $NPROC -eq 1 ] ;  then 
    643599        ln -sf ../LONG/ICE_AGRIF_LONG_${ITRST}_restart.nc . 
     
    693649    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. 
    694650 
    695     #if [ ${USING_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi 
    696     if [ ${USING_MPMD} == "yes" ] ; then 
    697        set_xio_using_server iodef.xml true 
    698     else 
    699        set_xio_using_server iodef.xml false 
    700     fi 
     651    #set_namelist_opt namelist_cfg ln_timing ${USING_TIMING} .true. .false. 
     652    set_xio_using_server iodef.xml ${USING_MPMD} 
    701653    cd ${SETTE_DIR} 
    702654    . ./prepare_job.sh input_ICE_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} 
     
    730682    set_namelist 1_namelist_cfg sn_cfctl%l_runstat .true. 
    731683     
    732     #if [ ${USING_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi 
    733     if [ ${USING_MPMD} == "yes" ] ; then 
    734        set_xio_using_server iodef.xml true 
    735     else 
    736        set_xio_using_server iodef.xml false 
    737     fi 
     684    #set_namelist_opt namelist_cfg ln_timing ${USING_TIMING} .true. .false. 
     685    set_xio_using_server iodef.xml ${USING_MPMD} 
    738686    cd ${SETTE_DIR} 
    739687    . ./prepare_job.sh input_ICE_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} 
     
    783731    set_namelist namelist_cfg jpnj 3 
    784732    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
    785     if [ ${USING_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi 
    786     if [ ${USING_MPMD} == "yes" ] ; then 
    787        set_xio_using_server iodef.xml true 
    788     else 
    789        set_xio_using_server iodef.xml false 
    790     fi 
     733    set_namelist_opt namelist_cfg ln_timing ${USING_TIMING} .true. .false. 
     734    set_xio_using_server iodef.xml ${USING_MPMD} 
    791735    cd ${SETTE_DIR} 
    792736    . ./prepare_job.sh input_ISOMIP+.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} 
     
    808752    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
    809753    set_namelist namelist_cfg cn_ocerst_in \"ISOMIP+_LONG_${ITRST}_restart\" 
    810     if [ ${USING_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi 
    811     if [ ${USING_MPMD} == "yes" ] ; then 
    812        set_xio_using_server iodef.xml true 
    813     else 
    814        set_xio_using_server iodef.xml false 
    815     fi 
     754    set_namelist_opt namelist_cfg ln_timing ${USING_TIMING} .true. .false. 
     755    set_xio_using_server iodef.xml ${USING_MPMD} 
    816756    for (( i=1; i<=$NPROC; i++)) ; do 
    817757        L_NPROC=$(( $i - 1 )) 
     
    852792    set_namelist namelist_cfg jpnj 3 
    853793    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
    854     if [ ${USING_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi 
    855     if [ ${USING_MPMD} == "yes" ] ; then 
    856        set_xio_using_server iodef.xml true 
    857     else 
    858        set_xio_using_server iodef.xml false 
    859     fi 
     794    set_namelist_opt namelist_cfg ln_timing ${USING_TIMING} .true. .false. 
     795    set_xio_using_server iodef.xml ${USING_MPMD} 
    860796    cd ${SETTE_DIR} 
    861797    . ./prepare_job.sh input_ISOMIP+.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} 
     
    878814    set_namelist namelist_cfg jpnj 4 
    879815    set_namelist namelist_cfg sn_cfctl%l_runstat .true. 
    880     if [ ${USING_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi 
    881     if [ ${USING_MPMD} == "yes" ] ; then 
    882        set_xio_using_server iodef.xml true 
    883     else 
    884        set_xio_using_server iodef.xml false 
    885     fi 
     816    set_namelist_opt namelist_cfg ln_timing ${USING_TIMING} .true. .false. 
     817    set_xio_using_server iodef.xml ${USING_MPMD} 
    886818    cd ${SETTE_DIR} 
    887819    . ./prepare_job.sh input_ISOMIP+.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} 
     
    930862    set_namelist namelist_cfg sn_cfctl%l_runstat .true.   
    931863    
    932     #if [ ${USING_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi 
    933     if [ ${USING_MPMD} == "yes" ] ; then 
    934         set_xio_using_server iodef.xml true 
    935     else 
    936         set_xio_using_server iodef.xml false 
    937     fi 
     864    #set_namelist_opt namelist_cfg ln_timing ${USING_TIMING} .true. .false. 
     865    set_xio_using_server iodef.xml ${USING_MPMD} 
    938866    cd ${SETTE_DIR} 
    939867    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} 
     
    954882    set_namelist namelist_cfg cn_ocerst_in \"SWG_LONG_${ITRST}_restart\" 
    955883       
    956     #if [ ${USING_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi 
    957     if [ ${USING_MPMD} == "yes" ] ; then 
    958         set_xio_using_server iodef.xml true 
    959     else 
    960         set_xio_using_server iodef.xml false 
    961     fi 
     884    #set_namelist_opt namelist_cfg ln_timing ${USING_TIMING} .true. .false. 
     885    set_xio_using_server iodef.xml ${USING_MPMD} 
    962886    if [ $NPROC -eq 1 ] ;  then 
    963887        ln -sf ../LONG/SWG_LONG_${ITRST}_restart.nc . 
     
    999923    
    1000924 
    1001     #if [ ${USING_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi 
    1002     if [ ${USING_MPMD} == "yes" ] ; then 
    1003        set_xio_using_server iodef.xml true 
    1004     else 
    1005        set_xio_using_server iodef.xml false 
    1006     fi 
     925    #set_namelist_opt namelist_cfg ln_timing ${USING_TIMING} .true. .false. 
     926    set_xio_using_server iodef.xml ${USING_MPMD} 
    1007927    cd ${SETTE_DIR} 
    1008928    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} 
     
    1029949    set_namelist namelist_cfg sn_cfctl%l_prtctl .true. 
    1030950 
    1031     #if [ ${USING_TIMING} == "yes" ]  ; then set_namelist namelist_cfg ln_timing .true. ; fi 
    1032     if [ ${USING_MPMD} == "yes" ] ; then 
    1033        set_xio_using_server iodef.xml true 
    1034     else 
    1035        set_xio_using_server iodef.xml false 
    1036     fi 
     951    #set_namelist_opt namelist_cfg ln_timing ${USING_TIMING} .true. .false. 
     952    set_xio_using_server iodef.xml ${USING_MPMD} 
    1037953    cd ${SETTE_DIR} 
    1038954    . ./prepare_job.sh input_EMPTY.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} ${NUM_XIOSERVERS} ${NEMO_VALID} 
Note: See TracChangeset for help on using the changeset viewer.