#!/bin/bash


## Time-stamp
date_test=$( date )
export DATESTR=$( date -ud "${date_test}" +%Y%m%d%Z%H%M )

## Sourcing user configuration
##--------------------------------------
. ${NEMO_TRUS}/config/${CFG_USER}.cfg
export NEMO_HOME NEMO_BRAN
export REFE_CONF TEST_CONF REFE_DIR TEST_DIR
export DIR_XIOS  #DIR_OASI
export NEMO_FORC FORC_TARF
export EMAIL

## Only interest for essential NEMO directories
NEMO_ARCH=${NEMO_HOME}/ARCH              ; NEMO_CONF=${NEMO_HOME}/CONFIG       ; NEMO_ENGI=${NEMO_HOME}/NEMO
NEMO_EIOI=${NEMO_HOME}/EXTERNAL/IOIPSL   ; NEMO_EFCM=${NEMO_HOME}/EXTERNAL/fcm
NEMO_TRBD=${NEMO_HOME}/TOOLS/REBUILD_NEMO; NEMO_TCMP=${NEMO_HOME}/TOOLS/COMPILE
export NEMO_ARCH NEMO_CONF NEMO_ENGI
export NEMO_EIOI NEMO_EFCM
export NEMO_TRBD NEMO_TCMP

## Sourcing super-computer configuration
##--------------------------------------
. ${NEMO_TRUS}/config/${CFG_ARCH}.cfg
export CDO      COMPILER MPI      NETCDF
export JOB_SUBM JOB_LIST JOB_INFO JOB_TIME JOB_DELE
export NPROC    TIME_LIMI
export ARCH_ENV
