Skip to content

Commit

Permalink
Disable LAPACK support in CVODE (#460)
Browse files Browse the repository at this point in the history
We aren't actually using LAPACK features of CVODE, and it complicates
the build process. Disable LAPACK in the CVODE installation script with
a view to investigating it when we migrate to a newer version of
SUNDIALS.
  • Loading branch information
kilicomu committed Sep 27, 2021
1 parent dd25104 commit 4d72237
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions tools/install/install_cvode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@
# ./install_cvode.sh /path/to/install/directory
# ./install_cvode.sh /path/to/install/directory /path/to/fortran/compiler

# Query the operating system, and set LAPACK_LIBS to the default location
OS=$(uname -s)
if [ "$OS" = 'Darwin' ]; then
LAPACK_LIBS=/usr/lib/liblapack.dylib:/usr/lib/libblas.dylib
else
LAPACK_LIBS=/usr/lib/liblapack.so:/usr/lib/libblas.so
fi

# Ensure a first argument is provided, and that it is an existing directory
if [ -z "$1" ] ; then
echo "Please provide an argument to tools/install/install_cvode.sh"
Expand Down Expand Up @@ -86,8 +78,7 @@ cmake -DCMAKE_INSTALL_PREFIX=$cvode_dir/cvode \
-DBUILD_IDA:BOOL=OFF \
-DBUILD_IDAS:BOOL=OFF \
-DBUILD_KINSOL:BOOL=OFF \
-DLAPACK_ENABLE:BOOL=ON \
-DLAPACK_LIBRARIES=$LAPACK_LIBS \
-DLAPACK_ENABLE:BOOL=OFF \
-DFCMIX_ENABLE:BOOL=ON \
-DEXAMPLES_ENABLE:BOOL=OFF \
-DCMAKE_MACOSX_RPATH:BOOL=ON \
Expand Down

0 comments on commit 4d72237

Please sign in to comment.