From 7fc019177188adcef5f7cb357adbd04fc2d50591 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Fri, 2 Feb 2018 15:16:10 -0500 Subject: [PATCH] add sundials --- candi.cfg | 1 + deal.II-toolchain/packages/sundials.package | 28 +++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 deal.II-toolchain/packages/sundials.package diff --git a/candi.cfg b/candi.cfg index 0a63947..b355613 100644 --- a/candi.cfg +++ b/candi.cfg @@ -47,6 +47,7 @@ PACKAGES="load:dealii-prepare" #PACKAGES="${PACKAGES} once:nanoflann" PACKAGES="${PACKAGES} once:opencascade" PACKAGES="${PACKAGES} once:parmetis" +#PACKAGES="${PACKAGES} once:sundials" #PACKAGES="${PACKAGES} once:superlu_dist" PACKAGES="${PACKAGES} once:hdf5" PACKAGES="${PACKAGES} once:p4est" diff --git a/deal.II-toolchain/packages/sundials.package b/deal.II-toolchain/packages/sundials.package new file mode 100644 index 0000000..8884015 --- /dev/null +++ b/deal.II-toolchain/packages/sundials.package @@ -0,0 +1,28 @@ +VERSION=3.1.0 +NAME=sundials-${VERSION} +EXTRACTSTO=sundials-${VERSION} +SOURCE=https://computation.llnl.gov/projects/sundials/download/ +CHECKSUM=1a84ca41c7f71067e03d519ddbcd9dae +PACKING=.tar.gz +BUILDCHAIN=cmake + +BUILDDIR=${BUILD_PATH}/sundials-${VERSION} +INSTALL_PATH=${INSTALL_PATH}/sundials-${VERSION} + +CONFOPTS="-D CMAKE_INSTALL_PREFIX=${INSTALL_PATH} \ + -D MPI_ENABLE=ON \ + -D BUILD_SHARED_LIBS=ON" + +package_specific_register () { + export SUNDIALS_DIR=${INSTALL_PATH} +} + +package_specific_conf () { + # Generate configuration file + CONFIG_FILE=${CONFIGURATION_PATH}/${NAME} + rm -f $CONFIG_FILE + echo " +export SUNDIALS_DIR=${INSTALL_PATH} +" >> $CONFIG_FILE +} + -- 2.39.5