#!/bin/bash

if [[ $(uname) == "Darwin" ]]; then
   # Up to date CMake version required
   export PATH=${HOME}/Applications/CMake.app/Contents/bin:${PATH}
   # No module environment on the Mac
   return
fi

# initialise module environment if it is not
if [[ ! $(command -v module > /dev/null 2>&1) ]]; then
  . /usr/local/apps/module/init/bash
fi

module unload grib_api
module unload eccodes
module unload emos
module unload fftw
module unload libemos
module unload metview
module unload netcdf4

module load cmake/3.16.5
module load python3/3.8.8-01

module switch gnu clang
