#!/bin/bash


# Time-stamp
date_test=$( date )
export DATE_STR=$( LC_ALL=C date -d"${date_test}" +%Y%m%dT%H%M )

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

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

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