-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy patharcherEnv
33 lines (26 loc) · 1.18 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
30
31
32
33
# 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
# 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
# ensure netcdf is on the LD path & flags
export LD_LIBRARY_PATH=$NETCDF_LIBDIR:$LD_LIBRARY_PATH
export LDFLAGS="-L$XIOS_LIBDIR -lxios -L$NETCDF_DIR/lib -lnetcdf -lnetcdff -lstdc++"
export FCFLAGS="-g -I$XIOS_INCDIR -I$$NETCDF_DIR/include"
export FC=mpif90
# 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