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 8843 for branches/2015/dev_r5092_CNRS18_TRUST/NEMOGCM/TRUST/inc/trusting.env – NEMO

Ignore:
Timestamp:
2017-11-29T12:20:30+01:00 (6 years ago)
Author:
nicolasmartin
Message:

Review forcing inputs management + cosmetic changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5092_CNRS18_TRUST/NEMOGCM/TRUST/inc/trusting.env

    r8834 r8843  
    1212##------------------------------------------------------------------- 
    1313 
    14 if [ ${TRUST_FLAG_DEBUG} == 'true' ]; then 
     14if [ ${TRUST_FLAG_DEBUG} == 'false' ]; then 
     15    ## std mode (merge stdout & stderr to /dev/null, XIOS compilation from scratch) 
     16    TRUST_IO_XIOS_MODE='--full' 
     17    TRUST_MAIN_STDOUT='>& /dev/null' 
     18else 
    1519    ## debug mode (verbose output and skip XIOS compilation) 
    1620    TRUST_IO_XIOS_MODE='' 
    1721    TRUST_MAIN_STDOUT='1> /dev/null' 
    18 else 
    19     ## std mode (merge stdout & stderr to /dev/null, XIOS compilation from scratch) 
    20     TRUST_IO_XIOS_MODE='--full' 
    21     TRUST_MAIN_STDOUT='>& /dev/null' 
    2222fi 
    2323 
     
    101101##------------------- 
    102102 
    103 ## Forcing archive unset 
    104 if [[ ! ${TRUST_IO_FORC_TAR} && ${TRUST_IO_FORC_TAR-_} ]]; then 
    105  
    106     ## Forcing directory set 
    107     if [ ${TRUST_IO_FORC_PATH} ]; then 
     103[ -z "${TRUST_CFG_NEW}" ] && TRUST_CFG_NEW=${TRUST_CFG_REF}'_trust' 
     104export TRUST_CFG_NEW TRUST_CFG_REF 
     105export TRUST_CFG_KEY_ADD TRUST_CFG_KEY_DEL 
     106 
     107 
     108## Inputs/Outputs 
     109## -------------- 
     110 
     111[ -z "${TRUST_IO_XIOS}" ] && get_out A 
     112export TRUST_IO_XIOS 
     113 
     114## Forcing directory set and not empty 
     115if [ ${TRUST_IO_FORC_PATH} ]; then 
     116 
     117    ## Forcing archive unset 
     118    if [[ ! ${TRUST_IO_FORC_TAR} && ${TRUST_IO_FORC_TAR-_} ]]; then 
     119 
    108120   ## Default forcing archive from trunk 
    109121   TRUST_IO_FORC_TAR='ORCA2_LIM_nemo_v3.7.tar INPUTS_PISCES_v3.6st.tar' 
     
    126138fi 
    127139 
    128 [ -z "${TRUST_CFG_NEW}" ] && TRUST_CFG_NEW=${TRUST_CFG_REF}'_trust' 
    129 export TRUST_CFG_NEW TRUST_CFG_REF 
    130 export TRUST_CFG_KEY_ADD TRUST_CFG_KEY_DEL 
    131  
    132  
    133 ## Inputs/Outputs 
    134 ## -------------- 
    135  
    136 [ -z "${TRUST_IO_XIOS}" ] && get_out A 
    137 export TRUST_IO_XIOS 
    138140export TRUST_IO_FORC_PATH TRUST_IO_FORC_TAR 
    139141export TRUST_IO_CDO 
    140142 
    141143 
    142 ## Compilation & Running 
    143 ##---------------------- 
     144## Compilation 
     145##------------ 
    144146 
    145147## Assuming the sourcing of XIOS arch .env file (modules) for setting  
     
    156158## Not mandatory 
    157159export TRUST_COMPILE_FORTRAN TRUST_COMPILE_MPI TRUST_COMPILE_NETCDF 
     160 
     161 
     162## Running 
     163##-------- 
    158164 
    159165## Assuming the job submit script is in './batch', if not  
Note: See TracChangeset for help on using the changeset viewer.