Skip to content

Commit

Permalink
fixes to build script
Browse files Browse the repository at this point in the history
  • Loading branch information
casper-boon committed Dec 24, 2019
1 parent ca7e3f2 commit 3f89c63
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions build_glm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,35 +65,14 @@ if [ "$FC" = "" ] ; then
fi

if [ "$FC" = "ifort" ] ; then
# if [ `uname -m` = "i686" ] ; then
# CPU="ia32"
# else
# CPU="intel64"
# fi

if [ -d /opt/intel/bin ] ; then
# . /opt/intel/bin/compilervars.sh $CPU
. /opt/intel/bin/compilervars.sh intel64
fi
which ifort >& /dev/null
if [ $? != 0 ] ; then
echo ifort compiler requested, but not found
exit 1
fi

export PATH="/opt/intel/bin:$PATH"
export NETCDFHOME=/opt/intel
else
# if FC is not ifort assume that it is a variant of gfortran
if [ "$OSTYPE" == "Darwin" ] ; then
if [ "${HOMEBREW}" = "true" ] ; then
export NETCDFHOME=/usr/local
else
export NETCDFHOME=/opt/local
fi
else
export NETCDFHOME=/usr
fi
fi

export F77=$FC
Expand All @@ -102,12 +81,6 @@ export F95=$FC

export MPI=OPENMPI

export NETCDFINC=$NETCDFHOME/include
export NETCDFINCL=${NETCDFINC}
export NETCDFLIBDIR=$NETCDFHOME/lib
export NETCDFLIB=${NETCDFLIBDIR}
export NETCDFLIBNAME="-lnetcdff -lnetcdf"

if [ "$AED2DIR" = "" ] ; then
export AED2DIR=../libaed2
fi
Expand Down Expand Up @@ -140,7 +113,6 @@ if [ "$FABM" = "true" ] ; then
mkdir build
fi
cd build
# export EXTRA_FFLAGS+=-fPIC
export FFLAGS+=-fPIC
if [ "${USE_DL}" = "true" ] ; then
cmake ${FABMDIR}/src -DBUILD_SHARED_LIBS=1 || exit 1
Expand Down

0 comments on commit 3f89c63

Please sign in to comment.