Changeset 5283


Ignore:
Timestamp:
2015-05-19T21:53:20+02:00 (5 years ago)
Author:
nicolasmartin
Message:

dev_r5092_CNRS_SETTE Updates & nemo.cfg, $ARCH.cfg & template.cfg files for cfg dir

Location:
branches/2015/dev_r5092_CNRS_SETTE/NEMOGCM/SETTE
Files:
4 added
4 edited

Legend:

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

    r5280 r5283  
    44# Time-stamp 
    55date_test=$( date ) 
    6 export DATESTR=$( LC_ALL=C date -d"${date_test}" +%Y%m%dT%H%M ) 
     6export DATE_STR=$( LC_ALL=C date -d"${date_test}" +%Y%m%dT%H%M ) 
    77 
    8 # External softs directories 
    9 export DIR_XIOS=${DIR_WORK}/XIOS/xios-1.0 DIR_OASI=${DIR_WORK}/OASIS 
    108 
    11 # Environment architecture (XIOS for compliance) 
    12 . ${DIR_XIOS}/arch/arch-${ARCH}.env 
     9# Sourcing super-computer running configuration 
     10. cfg/$ARCH.cfg 
    1311 
    14 # Super-computers configuration 
    15 if   [ $USER == ${IDRIS_ID} ]; then  
    16     ARCH=X64_ADA_trust  ; COMPILER=ifort; MPI=intel 
    17     # Job commands : LoadLeveler 
    18     JOB_SUB=llsubmit; JOB_LIST=llq    ; JOB_VIEW='llq -xl'; JOB_DEL=llcancel                           
    19     # Directories $HOME $WORKDIR $COMMONDIR $TMPDIR     ergon 
    20     DIR_WORK=$WORKDIR   ; DIR_SCRA=$TMPDIR/trusting    ; DIR_STOR=trusting_sav 
    21 elif [ $USER == ${TGCC_ID}  ]; then 
    22     ARCH=X64_CURIE_trust; COMPILER=ifort; MPI=bullxmpi 
    23     # Job commands : ccc_* 
    24     JOB_SUB=ccc_msub; JOB_LIST=ccc_mpp; JOB_VIEW=ccc_macct; JOB_DEL=ccc_mdel                           
    25     # Directories $HOME $WORKDIR            $SCRATCHDIR $STOREDIR 
    26     DIR_WORK=$CCCWORKDIR; DIR_SCRA=$SCRATCHDIR/trusting; DIR_STOR=$CCCSTOREDIR/trusting_sav 
    27 else 
    28     ARCH=''             ; COMPILER=''   ; MPI='' 
    29     JOB_SUB=''      ; JOB_LIST=''     ; JOB_VIEW=''       ; JOB_DEL=''                                 
    30     DIR_WORK=''      ; DIR_SCRA=''                  ; DIR_STOR='' 
    31 fi 
     12export COMPILER MPI_NAME 
     13export JOB_SUBM JOB_LIST JOB_VIEW JOB_DELE 
     14export DIR_WORK DIR_SCRA DIR_STOR 
     15export DIR_XIOS DIR_OASI 
    3216 
    33 [ -z "$FC" ] && COMPILER=$FC 
    3417 
    35 export ARCH     COMPILER MPI 
    36 export JOB_SUB  JOB_LIST JOB_VIEW JOB_DEL  
    37 export DIR_WORK DIR_SCRA DIR_STOR  
     18# Sourcing NEMO configuration 
     19. cfg/nemo.cfg 
    3820 
    39 # NEMO directories 
    40 NEMO_HOME=${DIR_WORK}/NEMO/${NEMO_BRAN}/NEMOGCM 
    41 export NEMO_HOME 
    42 NEMO_ARCH=${NEMO_HOME}/ARCH        ; NEMO_CONF=${NEMO_HOME}/CONFIG         ; NEMO_ENGI=${NEMO_HOME}/NEMO 
    43 NEMO_EFCM=${NEMO_HOME}/EXTERNAL/fcm; NEMO_IPSL=${NEMO_HOME}/EXTERNAL/IOIPSL; NEMO_TCMP=${NEMO_HOME}/TOOLS/COMPILE 
    44 export NEMO_ARCH NEMO_CONF NEMO_EFCM NEMO_ENGI NEMO_IPSL NEMO_TCMP 
    45 # NEMO inputs 
    46 export NEMO_FORC=${DIR_WORK}/NEMO/FORC FORC_TAR=ORCA2_LIM_nemo_v3.6.tar 
     21export NEMO_HOME NEMO_FORC FORC_TARF 
     22NEMO_ARCH=${NEMO_HOME}/ARCH         ; NEMO_CONF=${NEMO_HOME}/CONFIG         ; NEMO_ENGI=${NEMO_HOME}/NEMO 
     23NEMO_EFCM=${NEMO_HOME}/EXTERNAL/fcm ; NEMO_IPSL=${NEMO_HOME}/EXTERNAL/IOIPSL; NEMO_SETT=${NEMO_HOME}/SETTE 
     24NEMO_TCMP=${NEMO_HOME}/TOOLS/COMPILE 
     25export NEMO_ARCH NEMO_CONF NEMO_EFCM NEMO_ENGI NEMO_IPSL NEMO_SETT NEMO_TCMP 
     26 
    4727 
    4828# Comparatives directories localization 
    4929DIR_REFE=${DIR_STOR}/${CONF_REFE}/${NEMO_BRAN} 
    50 DIR_TEST=${DIR_SCRA}/${CONF_REFE}/${NEMO_BRAN}/trusting_${DATESTR} 
     30DIR_TEST=${DIR_SCRA}/${CONF_REFE}/${NEMO_BRAN}/trusting_${DATE_STR} 
    5131export DIR_REFE DIR_TEST 
  • branches/2015/dev_r5092_CNRS_SETTE/NEMOGCM/SETTE/trusting.sh

    r5280 r5283  
    55DEBUG=0; PUBLISH=0; status='OK' 
    66NEMO_BRAN=trunk; # dev_r5092_CNRS_SETTE dev_v3_4_STABLE_2012 
     7ARCH=              # arch-${ARCH}.env to be sourced in ${DIR_XIOS} or leave blank without file 
    78CONF_REFE=ORCA2_LIM_PISCES 
    89CONF_TEST=${CONF_REFE}_trust 
     
    2324    esac 
    2425done 
    25 export CONF_REFE CONF_TEST DEBUG NEMO_BRAN PUBLISH 
     26export ARCH CONF_REFE CONF_TEST DEBUG NEMO_BRAN PUBLISH 
    2627 
    27 [ $# -ne 1 ] && { ./trusting.sh -h && exit; } 
     28#[ $# -ne 1 ] && { ./trusting.sh -h && exit; } 
    2829# suspend debug mode (too verbose) 
    2930#[ $debug -eq 1 ] && set +vx 
     
    4748#  
    4849#============================================= 
    49 for rel in $COMPILER $MPI netcdf; do 
     50for rel in $COMPILER $MPI_NAME $NETCDFF; do 
    5051    printf "Step......................\nGet $rel release\n" > mesg_03_step.txt 
    5152    arch_rel=$( echo $LOADEDMODULES | sed "s#.*:$rel/\([^:]*\).*#\1#" ) 
    52     [ -z "${arch_rel}" ] && arch_rel=$( echo $PATH | sed "s#.*$rel/\([^/]*\).*#\1#" ) 
    53     [[ $rel == $COMPILER && -z "$FC" ]] && arch_rel=$( $FC --version | grep -m1 -o ' [0-9.]* ' ) 
     53    [ -z "${arch_rel}"  ] && arch_rel=$( echo $PATH | sed "s#.*$rel/\([^/]*\).*#\1#" ) 
     54    [ $rel == $COMPILER ] && arch_rel=$( $FC --version | grep -m1 -o ' [0-9.]* ' ) 
    5455    echo $rel ${arch_rel} >> model.log 
    5556done 
     
    115116#--------------------------------------------- 
    116117printf "Step......................\nTest if solver exists\n"   > mesg_03_step.txt 
    117 if [ ! -f ${solver_test} ]; then 
    118     grep 'E R R O R' ocean.output    >> mesg_11_comments.txt 
    119     sed 's/^/Time step :/' time.step >> mesg_11_comments.txt 
    120     getout 
    121 fi 
     118#if [ ! -f ${solver_test} ]; then 
     119#    grep 'E R R O R' ocean.output    >> mesg_11_comments.txt 
     120#    sed 's/^/Time step :/' time.step >> mesg_11_comments.txt 
     121#    getout 
     122#fi 
    122123 
    123124 
  • branches/2015/dev_r5092_CNRS_SETTE/NEMOGCM/SETTE/trusting_func.sh

    r5268 r5283  
    5252 
    5353        # Add tar saved into {DIR_STOR} 
    54 #  find ${DIR_SCRA}/trusting/${CONF_REF}/* -prune -mtime +7 -exec /bin/rm -rf {} \; > /dev/null 2>&1 
    55 #       [ -f ${DIR_REFE}/${CONF_REF}.tar ] && \rm ${DIR_STOR}/${CONF_REF}.tar 
    56         tar -cf ${DIR_REFE}/trusting_${DATESTR}.tar . 
     54   find ${DIR_SCRA}/trusting/${CONF_REF}/* -prune -mtime +7 -exec /bin/rm -rf {} \; > /dev/null 2>&1 
     55        [ -f ${DIR_STOR}/${CONF_REF}.tar ] && \rm ${DIR_STOR}/${CONF_REF}.tar 
     56        tar -cf ${DIR_STOR}/${CONF_REF}.tar . 
    5757 
    5858        exit 
  • branches/2015/dev_r5092_CNRS_SETTE/NEMOGCM/SETTE/trusting_help.txt

    r5268 r5283  
    1111 
    1212Examples:" 
    13    $ trusting -p ORCA2_LIM3 
     13   $ trusting -p IPSLCM5A 
    1414 
    1515Notes: 
Note: See TracChangeset for help on using the changeset viewer.