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 14887 – NEMO

Changeset 14887


Ignore:
Timestamp:
2021-05-19T13:42:44+02:00 (3 years ago)
Author:
acc
Message:

Branch: sette_ticket2673. Introduced a default, MAIN subdirectory which is used if no sub-directory is specified. This keeps a tidier structure below NEMO_VALIDATION_DIR (and equivalent REF). sette_rpt.sh now accepts a -V sub_dir2 option to name a 2nd subdirectory below NEMO_VALIDATION_DIR to compare against the -v sub_dir. Introduced a sette_use_LITE.sh utility to switch between input datasets

Location:
utils/CI/sette_ticket2673
Files:
1 added
2 edited

Legend:

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

    r14884 r14887  
    2929export USING_MPMD='yes'        # Default: yes => run with detached XIOS servers ; use -A to run in attached (SPMD) mode 
    3030                               #    Note: yes also ensures key_xios but -A will not remove it 
    31 export SETTE_SUB_VAL="" 
     31export SETTE_SUB_VAL="MAIN"    # Default subdirectory below NEMO_VALIDATION_DIR 
    3232 
    3333# Parse command-line arguments 
     
    182182 fi 
    183183fi 
    184 if [ ! -z $SETTE_SUB_VAL ] ; then 
    185  if [ ! -d $NEMO_VALIDATION_DIR/$SETTE_SUB_VAL ] && [ ${dry_run} -eq 0 ] ; then 
    186     mkdir $NEMO_VALIDATION_DIR/$SETTE_SUB_VAL 
    187  fi 
    188  export NEMO_VALIDATION_DIR=$NEMO_VALIDATION_DIR/$SETTE_SUB_VAL 
    189 fi 
     184if [ ! -d $NEMO_VALIDATION_DIR/$SETTE_SUB_VAL ] && [ ${dry_run} -eq 0 ] ; then 
     185   mkdir $NEMO_VALIDATION_DIR/$SETTE_SUB_VAL 
     186fi 
     187export NEMO_VALIDATION_DIR=$NEMO_VALIDATION_DIR/$SETTE_SUB_VAL 
    190188 
    191189if [ ${#SETTE_TEST_CONFIGS[@]} -eq 0 ]; then 
  • utils/CI/sette_ticket2673/sette_rpt.sh

    r14874 r14887  
    472472# overwrite revision (later) or compiler 
    473473  if [ $# -gt 0 ]; then 
    474     while getopts r:R:c:v:h option; do  
     474    while getopts r:R:c:v:V:h option; do  
    475475       case $option in 
    476476          c) mach=$OPTARG;; 
     
    478478          R) refrev=$OPTARG;; 
    479479          v) SETTE_SUB_VAL=$OPTARG;; 
     480          V) SETTE_SUB_VAL2=$OPTARG 
     481             if [ -d ${NEMO_VALIDATION_DIR}/${SETTE_SUB_VAL2} ] ; then 
     482               export NEMO_VALIDATION_REF=${NEMO_VALIDATION_DIR}/${SETTE_SUB_VAL2} 
     483             else 
     484               echo "Requested comparison subdirectory: ${NEMO_VALIDATION_DIR}/${SETTE_SUB_VAL2} does not exist" 
     485             fi 
     486             ;; 
    480487          h | *) echo '' 
    481488                 echo 'sette_rpt.sh : '  
     
    486493                 echo '     display sette results for the specified revision (set old for the latest revision available for each config)' 
    487494                 echo ' -R REFERENCE REVISION_number :' 
    488                  echo '     compare sette results against the specified reference revision (use to over-ride value set in param.cfg)' 
     495                 echo '     compare sette results against the specified revision (use to over-ride value set in param.cfg)' 
    489496                 echo ' -v sub_dir :' 
    490497                 echo '     validation sub-directory below NEMO_VALIDATION_DIR' 
     498                 echo ' -V sub_dir2 :' 
     499                 echo '     2nd validation sub-directory below NEMO_VALIDATION_DIR' 
     500                 echo '     if set the comparison is between two subdirectory trees beneath NEMO_VALIDATION_DIR' 
    491501                 echo '' 
    492502                 exit 42;; 
     
    500510  if [ ! -z $SETTE_SUB_VAL ] ; then 
    501511   export NEMO_VALIDATION_DIR=$NEMO_VALIDATION_DIR/$SETTE_SUB_VAL 
    502    if [ -d $NEMO_VALIDATION_REF/$SETTE_SUB_VAL ] ; then 
     512   if [ -d $NEMO_VALIDATION_REF/$SETTE_SUB_VAL ] && [ -z $SETTE_SUB_VAL2 ] ; then 
    503513    while true; do 
    504514        read -p "$NEMO_VALIDATION_REF/$SETTE_SUB_VAL exists. Do you wish to use it as a reference? " yn 
    505515        case $yn in 
    506516            [Yy]* ) export $NEMO_VALIDATION_REF/$SETTE_SUB_VAL; break;; 
    507             [Nn]* ) exit;; 
     517            [Nn]* ) echo "Ok, continuing with ${NEMO_VALIDATION_REF}/MAIN as the reference directory" 
     518                    export NEMO_VALIDATION_REF=${NEMO_VALIDATION_REF}/MAIN 
     519                    break 
     520                    ;; 
    508521            * ) echo "Please answer yes or no.";; 
    509522        esac 
    510523    done 
    511524   fi 
     525  else 
     526   export NEMO_VALIDATION_DIR=${NEMO_VALIDATION_DIR}/MAIN 
     527   export ${NEMO_VALIDATION_REF}/MAIN 
    512528  fi 
    513529  NEMO_VALID=${NEMO_VALIDATION_DIR} 
Note: See TracChangeset for help on using the changeset viewer.