#!/bin/bash


## Patterns (time-stamp & filename)
##--------------------------------------
dat=$( date )
## UTC time zone for timestamping
export DATE=$( date -ud "$dat" +"%Y%m%d%Z%H%M" )
export PATTERNAME=${NEMO_USER}'_'${NEMO_HPCC}

## Source user configuration
##---------------------------------------------------
. ${NEMO_TRUS}/config/${NEMO_USER}.cfg
export NEMO_HOME NEMO_BRAN
export REFE_CONF TEST_CONF KEYS_ADD KEYS_DEL
export NEMO_FORC NEMO_TARF
export REFE_DIR  TEST_DIR
export DIR_XIOS  #DIR_OASI
export EMAIL

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

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