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 14876 for utils/CI/sette_ticket2673/sette_list_avail_rev.sh – NEMO

Ignore:
Timestamp:
2021-05-18T12:18:29+02:00 (3 years ago)
Author:
acc
Message:

Branch: sette_ticket2673. Tweaked sette_list_avail_rev.sh (improved readability of o/p and added -R option to list reference directory contents). Removed options to set key_nosignedzero (this should be a property of arch files only).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils/CI/sette_ticket2673/sette_list_avail_rev.sh

    r14870 r14876  
    44SETTE_DIR=$(cd $(dirname "$0"); pwd) 
    55MAIN_DIR=$(dirname $SETTE_DIR) 
     6USE_REF=0 
    67 
    78. ./param.cfg 
    89 
    910if [ $# -gt 0 ]; then 
    10   while getopts c:v:h option; do  
     11  while getopts c:v:Rh option; do  
    1112     case $option in 
    1213        c) COMPILER=$OPTARG;; 
    1314        v) SETTE_SUB_VAL=$OPTARG;; 
     15        R) USE_REF=1;; 
    1416        h | *) echo '' 
    1517               echo 'sette_list_avail_rev.sh : '  
     
    3941    ALLLST=${@:3} 
    4042    # display 
    41     echo "" 
    42     printf "%-27s : " $CONFIG 
     43    printf "\n %-28s : " $CONFIG 
    4344    for rev in $ALLLST 
    4445    do 
     
    5354 
    5455  NEMO_VALID=${NEMO_VALIDATION_DIR}/ 
     56  if [ ${USE_REF} == 1 ] ; then  
     57    NEMO_VALID=${NEMO_VALIDATION_REF}/ 
     58  fi 
    5559  
    5660 # list of all revision available 
    57  DIRLIST=`find ${NEMO_VALID}/${COMPILER} -maxdepth 1 -mindepth 1 -type d | sort -u -r` 
     61 DIRLIST=`find ${NEMO_VALID}/${COMPILER} -maxdepth 1 -mindepth 1 -type d | sort -u` 
    5862 DIRLIST=`basename -a $DIRLIST` 
    5963 
     
    6266 echo " Compiler used is : $COMPILER" 
    6367 echo "" 
    64  printf " List of all avail. rev. is : " 
     68 printf " List of all avail. rev. in   :"${NEMO_VALID}"\n" 
     69 printf "                         is   : " 
    6570 for dir in `echo $DIRLIST`; do printf "%-6s  " $dir ; done 
    6671 printf "\n" 
    6772 
    6873 # start checking configuration revision 
    69  echo "" 
    70  echo "   !---- check revision available for each configuration ----!   " 
     74 echo " Availability for each config.: " 
     75 echo -n " ------------------------------" 
    7176 for CONFIG in GYRE_PISCES ORCA2_ICE_PISCES ORCA2_OFF_PISCES AMM12 ORCA2_SAS_ICE AGRIF_DEMO SWG ISOMIP+ OVERFLOW LOCK_EXCHANGE VORTEX ICE_AGRIF  
    7277 do 
    73     DIR=${NEMO_VALIDATION_DIR}/${COMPILER}/ 
     78    DIR=${NEMO_VALID}/${COMPILER}/ 
    7479    lst_rev $DIR $CONFIG $DIRLIST 
    7580 done 
Note: See TracChangeset for help on using the changeset viewer.