SUNDIALS a library of linear and non-linear equation solvers and ODE solvers, developed and maintained at the Center for Applied Scientific Computing, Lawrence Livermore National Laboratory. The official webpage of SUNDIALS and the repository has the documentation. This page has quick instructions to download and install it.
Download
git clone https://github.com/LLNL/sundials.git sundials
Installation
The following steps should install SUNDIALS:
mkdir build && mkdir install
cd build
cmake -DCMAKE_INSTALL_PREFIX=../install \
-DENABLE_MPI=ON \
-DMPI_C_COMPILER=mpicc \
-DMPI_CXX_COMPILER=mpicxx \
-DCMAKE_C_FLAGS='-O3' \
-DSUNDIALS_BUILD_WITH_MONITORING=ON ../
make install
Linking to SUNDIALS
export SUNDIALS_DIR=/path/to/sundials/install
(Eg. SUNDIALS_DIR=/home/ghosh/sundials/install)
-I$(SUNDIALS_DIR)/include
-L$(SUNDIALS_DIR)/lib \
-L$(SUNDIALS_DIR)/lib64 \
-lsundials_arkode \
-lsundials_nvecparallel
See SUNDIALS documentation for the appropriate linker flags for other packages.