#!/bin/bash


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


# Sourcing super-computer running configuration
. cfg/$ARCH.cfg

export COMPILER MPI_NAME
export JOB_SUBM JOB_LIST JOB_VIEW JOB_DELE
export DIR_WORK DIR_SCRA DIR_STOR
export DIR_XIOS DIR_OASI


# Sourcing NEMO configuration
. cfg/nemo.cfg

export NEMO_HOME NEMO_FORC FORC_TARF
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_SETT=${NEMO_HOME}/SETTE
NEMO_TCMP=${NEMO_HOME}/TOOLS/COMPILE
export NEMO_ARCH NEMO_CONF NEMO_EFCM NEMO_ENGI NEMO_IPSL NEMO_SETT NEMO_TCMP


# Comparatives directories localization
DIR_REFE=${DIR_STOR}/${CONF_REFE}/${NEMO_BRAN}
DIR_TEST=${DIR_SCRA}/${CONF_REFE}/${NEMO_BRAN}/trusting_${DATE_STR}
export DIR_REFE DIR_TEST
