From: Timo Heister Date: Fri, 2 Feb 2018 20:16:10 +0000 (-0500) Subject: add sundials X-Git-Tag: v8.5.1~6^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fc019177188adcef5f7cb357adbd04fc2d50591;p=candi.git add sundials --- 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 +} +