## Installation for trusting tests on Ada Supercomputer
##---------------------------------------------------


## Default settings
##---------------------------------------------------
[ -z "${TRUST_SVN_BRANCH}" ] && TRUST_SVN_BRANCH='trunk'
TRUST_SVN_CO=( 'ARCH           CONFIG          NEMO               \
             EXTERNAL/AGRIF EXTERNAL/fcm    EXTERNAL/IOIPSL    \
             TOOLS/COMPILE  TOOLS/maketools TOOLS/REBUILD_NEMO  ' )

[ -z "${TRUST_CFG_REF}" ] && TRUST_CFG_REF='ORCA2_LIM_PISCES'
TRUST_CFG_NEW=${TRUST_CFG_REF}'_trust'

[ -z "${TRUST_IO_FORC_TAR}" ] && TRUST_IO_FORC_TAR='ORCA2_LIM_nemo_v3.6.tar'
[ ${TRUST_CFG_REF} == 'ORCA1_LIM3_PISCES' ] && TRUST_IO_FORC_TAR='INPUTS_ORCA1_LIM3_PISCES_V6.tar'
[ ${TRUST_CFG_REF} == 'AMM12'             ] && TRUST_IO_FORC_TAR='AMM12_v3.6.tar'

TRUST_CFG_KEY_ADD=''; TRUST_CFG_KEY_DEL=''
[ ${TRUST_CFG_REF} == 'ORCA2_LIM' ] && TRUST_CFG_KEY_ADD='key_add key_agrif' && TRUST_CFG_KEY_DEL='key_del key_zdftmx'


## User environment
##---------------------------------------------------
TRUST_DIR_WORK=$WORKDIR/NEMO
TRUST_DIR_SCRATCH=$WORKDIR/NEMO/trusting/${TRUST_CFG_REF}/${TRUST_SVN_BRANCH}/${TRUST_TEST_DATE}
TRUST_DIR_STORE=$WORKDIR/NEMO/trusting_sav/${TRUST_CFG_REF}/${TRUST_SVN_BRANCH}
TRUST_IO_FORC_PATH=$WORKDIR/NEMO/FORC
TRUST_IO_XIOS=$WORKDIR/XIOS/xios-1.0

[ ${TRUST_CFG_REF} == 'ORCA2_LIM_PISCES'  ] && TRUST_CFG_NEW='O2LP_trust'
[ ${TRUST_CFG_REF} == 'ORCA1_LIM3_PISCES' ] && TRUST_CFG_NEW='O1L3P_trust'
[ ${TRUST_CFG_REF} == 'ORCA2_LIM'         ] && TRUST_CFG_NEW='O2LA_trust'

[ -z "${TRUST_TEST_MAILING}" ] && TRUST_TEST_MAILING='ntmlod@locean-ipsl.upmc.fr'
