if [ -z "$OHPC_COMPILER_FAMILY" ]; then
    echo "Unknown OHPC_COMPILER_FAMILY"
    exit 1
fi

if [ "$OHPC_COMPILER_FAMILY" = "gnu" ]; then
    export CC=gcc
    export CXX=g++
    export FC=gfortran
    export F77=gfortran
    module purge
    module load gnu
elif [ "$OHPC_COMPILER_FAMILY" = "intel" ]; then
    export CC=icc
    export CXX=icpc
    export FC=ifort
    export F77=ifort
    module purge
    module load intel
else
    echo "Unsupported OHPC_COMPILER_FAMILY -> $OHPC_COMPILER_FAMILY"
    exit 1
fi



