-
Notifications
You must be signed in to change notification settings - Fork 7
/
jasminEnv
32 lines (25 loc) · 1.1 KB
/
jasminEnv
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
# this environment management script needs to be sourced in order to provide
# equivalent functionality on jasmin to the Github CI environment.
# `. jasmin_env`
module load jaspy/3.11 # need at least version 3.11 for parallel netcdf support
# provide explit path set to the arch script for netCDF linking
export NETCDF_LIBDIR=$(nc-config --libdir)
export NETCDF_INCDIR=$(nc-config --includedir)
# set XIOS build to XIOS2 trunk revision 2628, if not already set
: ${XIOS_DIR=/home/users/jcole/software/xios_trunk_r2628}
# 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_LIBDIR -lnetcdf -lnetcdff -lstdc++"
export FCFLAGS="-g -I$XIOS_INCDIR -I$NETCDF_INCDIR"
export FC=mpif90
# set env variable for run switching (mpiexec / srun) and iodef patching (transport)
export PLATFORM=Jasmin
#
# default to XIOS2 version identifier unless set
#: ${MVER=XIOS2/trunk}
: ${MVER=}
export MVER