Ignore:
Timestamp:
2015-05-15T16:22:46+02:00 (6 years ago)
Author:
nicolasmartin
Message:

dev_r5092_CNRS_SETTE Update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5092_CNRS_SETTE/NEMOGCM/SETTE/trusting.sh

    r5268 r5276  
    22 
    33 
    4 PUBLISH=0; DEBUG=0; status='OK' 
     4# Set defaults 
     5DEBUG=0; PUBLISH=0; status='OK' 
     6NEMO_BRAN=trunk; # dev_r5092_CNRS_SETTE dev_v3_4_STABLE_2012 
     7compiler=ifort   # gfortran f95 f90 pgfortran pgf95 pgf90 mpifort mpif90 
     8mpi=bullxmpi     # openmpi mpich intel mpxlf 
     9 
    510 
    611while [ $# -ne 0 ]; do 
    712    case $1 in 
    8         -d|--debug     ) set -vx; DEBUG=1     ; shift;; 
    9         -p|--publish   ) PUBLISH=1            ; shift;; 
    10         -h|--help|-help) cat trusting_help.txt; exit ;; 
    11    *)                                      break;; 
     13        -b|--branch    ) NEMO_BRAN=$2         ; shift 2;; 
     14        -d|--debug     ) set -vx; DEBUG=1     ; shift  ;; 
     15        -h|--help|-help) cat trusting_help.txt; exit   ;; 
     16        -m|--machine   ) ARCH=$2              ; shift 2;; 
     17        -n|--newconf   ) CONF_TEST=$2         ; shift 2;; 
     18        -r|--refconf   ) CONF_REFE=$2         ; shift 2;; 
     19        -p|--publish   ) PUBLISH=1            ; shift  ;; 
     20   *)                                      break  ;; 
    1221    esac 
    1322done 
    14 export PUBLISH DEBUG 
     23export CONF_REFE CONF_TEST DEBUG NEMO_BRAN PUBLISH 
     24 
    1525[ $# -ne 1 ] && { ./trusting.sh -h && exit; } 
    1626# suspend debug mode (too verbose) 
     
    1929# Initialization 
    2030#============================================= 
    21 CONF_REF=$1; conf_ref_dir=${CONF_REF}_trust 
    22 export CONF_REF 
    2331 
    2432. trusting.env 
     
    3745#  
    3846#============================================= 
    39 for rel in intel bullxmpi netcdf; do 
     47for rel in $compiler $mpi netcdf; do 
    4048    printf "Step......................\nGet $rel release\n" > mesg_03_step.txt 
    41     arch_rel=$( echo $LOADEDMODULES | sed "s/.*:$rel\/\([^:]*\).*/\1/" ) 
    42     [ $? -ne 0 ] && getout 
     49    arch_rel=$( echo $LOADEDMODULES | sed "s#.*:$rel/\([^:]*\).*#\1#" ) 
     50    [ -z "${arch_rel}" ] && arch_rel=$( echo $PATH | sed "s#.*$rel/\([^/]*\).*#\1#" ) 
     51    [[ $rel == $compiler && -z "$FC" ]] && arch_rel=$FC 
    4352    echo $rel ${arch_rel} >> model.log 
    4453done 
     
    6271 
    6372#--------------------------------------------- 
    64 #printf "Step......................\nCompilation NEMO configuration %s\n" ${CONF_REF} > mesg_03_step.txt 
    65 #cd ${NEMO_CONF} 
    66 #./makenemo -n ${conf_ref_dir} clean 
    67 #./makenemo -n ${conf_ref_dir} -r ${CONF_REF} -m X64_CURIE_trust -j 16 #> /dev/null 2>&1 
    68 #[ ! -e ${conf_ref_dir}/BLD/bin/nemo.exe ] && getout 
     73printf "Step......................\nCompilation NEMO configuration %s\n" ${CONF_REF} > mesg_03_step.txt 
     74cd ${NEMO_CONF} 
     75./makenemo -n ${CONF_TEST} clean 
     76./makenemo -n ${CONF_TEST} -r ${CONF_REFE} -m $ARCH -j 16 #> /dev/null 2>&1 
     77[ ! -e ${CONF_TEST}/BLD/bin/nemo.exe ] && getout 
    6978 
    7079 
     
    7281printf "Step......................\nPreparing job\n" > mesg_03_step.txt 
    7382cd ${DIR_TEST} 
    74 find ${NEMO_CONF}/${conf_ref_dir}/EXP00 -regex '.*\(cfg\|opa\|ref\|xml\)' -exec cp {} . \; 
     83find ${NEMO_CONF}/${CONF_TEST}/EXP00 -regex '.*\(cfg\|opa\|ref\|xml\)' -exec cp {} . \; 
    7584cp ${NEMO_FORC}/${FORC_TAR} . && tar -tvf ${FORC_TAR} > inputs_list.txt && tar -vxf ${FORC_TAR} 
    7685[ $? -ne 0 ] && getout 
Note: See TracChangeset for help on using the changeset viewer.