Changeset 5276


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

dev_r5092_CNRS_SETTE Update

Location:
branches/2015/dev_r5092_CNRS_SETTE/NEMOGCM/SETTE
Files:
2 edited

Legend:

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

    r5268 r5276  
    88# Super-computers configuration 
    99if   [ $USER == ${IDRIS_ID} ]; then  
    10     ID=${IDRIS_ID}      ; ARCH='X64_ADA' 
    11     JOB_SUB=llsubmit    ; JOB_VIEW=''                  ; JOB_DEL=llcancel                          ; JOB_LIST=llq 
    12     DIR_WORK=$WORKDIR   ; DIR_SCRA=$TMPDIR/trusting    ; DIR_STOR=$HOME/Workspace/NEMO/trusting_sav 
     10    ARCH=X64_ADA_trust 
     11    # Job commands : LoadLeveler 
     12    JOB_SUB=llsubmit; JOB_LIST=llq    ; JOB_VIEW='llq -xl'; JOB_DEL=llcancel                           
     13    # Directories $HOME $WORKDIR $COMMONDIR $TMPDIR 
     14    DIR_WORK=$WORKDIR   ; DIR_SCRA=$TMPDIR/trusting    ; DIR_STOR=trusting_sav 
    1315elif [ $USER == ${TGCC_ID}  ]; then 
    14     ID=${TGCC_ID}       ; ARCH='X64_CURIE' 
    15     JOB_SUB=ccc_msub    ; JOB_VIEW=ccc_macct           ; JOB_DEL=ccc_mdel                          ; JOB_LIST=ccc_mpp 
     16    ARCH=X64_CURIE_trust 
     17    # Job commands : ccc_* 
     18    JOB_SUB=ccc_msub; JOB_LIST=ccc_mpp; JOB_VIEW=ccc_macct; JOB_DEL=ccc_mdel                           
     19    # Directories $HOME $WORKDIR            $SCRATCHDIR $STOREDIR 
    1620    DIR_WORK=$CCCWORKDIR; DIR_SCRA=$SCRATCHDIR/trusting; DIR_STOR=$CCCSTOREDIR/trusting_sav 
    1721else 
    18     ID=''            ; ARCH='' 
    19     JOB_SUB=''       ; JOB_VIEW=''                  ; JOB_DEL='' 
     22    ARCH='' 
     23    JOB_SUB=''      ; JOB_LIST=''     ; JOB_VIEW=''       ; JOB_DEL=''                                 
    2024    DIR_WORK=''      ; DIR_SCRA=''                  ; DIR_STOR='' 
    2125fi 
    2226 
    23 export ID       ARCH 
    24 export JOB_SUB  JOB_VIEW JOB_DEL  JOB_LIST 
     27export ARCH 
     28export JOB_SUB  JOB_LIST JOB_VIEW JOB_DEL  
    2529export DIR_WORK DIR_SCRA DIR_STOR  
    2630 
    27  
    28 # NEMO compilation config 
    29 NEMO_BRAN=trunk; NEMO_HOME=${DIR_WORK}/NEMO/${NEMO_BRAN}/NEMOGCM # dev_r5092_CNRS_SETTE dev_v3_4_STABLE_2012 
    30 export NEMO_HOME NEMO_BRAN 
     31# NEMO directories 
     32NEMO_HOME=${DIR_WORK}/NEMO/${NEMO_BRAN}/NEMOGCM 
     33export NEMO_HOME 
    3134NEMO_ARCH=${NEMO_HOME}/ARCH        ; NEMO_CONF=${NEMO_HOME}/CONFIG         ; NEMO_ENGI=${NEMO_HOME}/NEMO 
    3235NEMO_EFCM=${NEMO_HOME}/EXTERNAL/fcm; NEMO_IPSL=${NEMO_HOME}/EXTERNAL/IOIPSL; NEMO_TCMP=${NEMO_HOME}/TOOLS/COMPILE 
    3336export NEMO_ARCH NEMO_CONF NEMO_EFCM NEMO_ENGI NEMO_IPSL NEMO_TCMP 
    34  
    35  
    36 # NEMO inputs config 
     37# NEMO inputs 
    3738export NEMO_FORC=${DIR_WORK}/NEMO/FORC FORC_TAR=ORCA2_LIM_nemo_v3.6.tar 
    38  
    3939 
    4040# External softs directories 
    4141export DIR_XIOS=${DIR_WORK}/XIOS/xios-1.0 DIR_OASI=${DIR_WORK}/OASIS 
    4242 
    43  
    44 # Environment architecture 
    45 . ${DIR_XIOS}/arch/arch-${ARCH}_trust.env 
    46  
     43# Environment architecture (XIOS for compliance) 
     44. ${DIR_XIOS}/arch/arch-${ARCH}.env 
    4745 
    4846# Comparatives directories localization 
  • 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.