forked from MetOffice/tcd-XIOS-demonstration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
archerEnv
29 lines (23 loc) · 1.01 KB
/
archerEnv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# this environment management script needs to be sourced in order to provide
# equivalent functionality on Archer2 to the Github CI environment.
# `. archerEnv`
# for XIOS build selection, set XIOS_DIR & MVER in session
module load cray-hdf5-parallel
module load cray-netcdf-hdf5parallel
module load cray-python
module load netcdf4
export NETCDF_LIBDIR=-L$NETCDF_DIR/lib
export NETCDF_INCDIR=-I$NETCDF_DIR/include/
# set XIOS build to XIOS3 marqh build, if not already set
: ${XIOS_DIR=/work/n02/n02/marqh/metofficegit/tcd-XIOS3-extras}
# provide explicit paths to all XIOS components
export XIOS_INCDIR=$XIOS_DIR/inc
export XIOS_LIBDIR=$XIOS_DIR/lib
export XIOS_BINDIR=$XIOS_DIR/bin
# set env variable for run switching (mpiexec / srun) and iodef patching (transport)
export PLATFORM=Archer2
# default to XIOS3 version identifier unless set
: ${MVER=XIOS3/trunk}
export MVER
# start interative session
salloc --nodes=2 --ntasks-per-node=8 --cpus-per-task=1 --time=00:15:00 --partition=standard --qos=short --account=n02-cms