#! /bin/bash -x

module purge
module load ohpc
module list

#Currently Loaded Modules:
#  1) autotools   3) gnu9/9.4.0    5) ucx/1.11.2         7) openmpi4/4.1.1
#  2) prun/2.2    4) hwloc/2.5.0   6) libfabric/1.13.0   8) ohpc

export MY_LOCAL_DIR=$(pwd)
export YOUR_INSTALL_ROOT=/mnt/beegfs/monan/libs_openmpi

export  ZDIR=${YOUR_INSTALL_ROOT}/zlib
export H5DIR=${YOUR_INSTALL_ROOT}/hdf5
export NFDIR=${YOUR_INSTALL_ROOT}/netcdf
export NCDIR=${NFDIR}
export PNDIR=${YOUR_INSTALL_ROOT}/PnetCDF

export PATH=${PATH}:$H5DIR/zlib/lib
export PATH=${PATH}:$H5DIR/zlib/include
export PATH=${PATH}:$H5DIR/hdf5/lib
export PATH=${PATH}:$H5DIR/hdf5/include
export PATH=${PATH}:$NFDIR/netcdf/lib
export PATH=${PATH}:$NFDIR/netcdf/include
export PATH=${PATH}:$PNDIR/PnetCDF/lib
export PATH=${PATH}:$PNDIR/PnetCDF/include
export PATH=${PATH}:/usr/lib64/

ulimit -s unlimited
