Skip to content

Commit

Permalink
Add setup script to define environment for jasmin (MetOffice#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-cole authored May 28, 2024
1 parent 5eb7401 commit f68e572
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions jasminEnv
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# 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=-L$(nc-config --libdir)
export NETCDF_INCDIR=-I$(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

# 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

0 comments on commit f68e572

Please sign in to comment.