[sundials] 01/04: turned on optional features

Dima Kogan dima at secretsauce.net
Tue Feb 14 05:03:28 UTC 2017


This is an automated email from the git hooks/post-receive script.

dkogan pushed a commit to branch master
in repository sundials.

commit 26ee329fadb804f518354c3e05190298c68b66ef
Author: Dima Kogan <dima at secretsauce.net>
Date:   Fri Feb 10 19:39:37 2017 -0800

    turned on optional features
---
 debian/control                     |  3 ++-
 debian/libsundials-arkode1.symbols |  6 ++++++
 debian/libsundials-cvode2.symbols  |  3 +++
 debian/libsundials-cvodes2.symbols |  6 ++++++
 debian/libsundials-ida2.symbols    |  3 +++
 debian/libsundials-idas1.symbols   |  6 ++++++
 debian/libsundials-kinsol2.symbols |  3 +++
 debian/rules                       | 23 +++++++++++++++++++----
 8 files changed, 48 insertions(+), 5 deletions(-)

diff --git a/debian/control b/debian/control
index 31fb174..8c19d7b 100644
--- a/debian/control
+++ b/debian/control
@@ -10,7 +10,8 @@ Build-Depends: debhelper (>= 10),
                gfortran,
                mpi-default-dev,
                libblas-dev | libblas-3gf.so,
-               liblapack-dev | liblapack-3gf.so
+               liblapack-dev | liblapack-3gf.so,
+               libpetsc3.7.5-dev, libsuitesparse-dev
 Standards-Version: 3.9.8
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/sundials.git
 Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/sundials.git
diff --git a/debian/libsundials-arkode1.symbols b/debian/libsundials-arkode1.symbols
index 9c90fe3..8fb75b1 100644
--- a/debian/libsundials-arkode1.symbols
+++ b/debian/libsundials-arkode1.symbols
@@ -20,10 +20,16 @@ libsundials_arkode.so.1 libsundials-arkode1 #MINVER#
  ARKDlsSetBandMassFn at Base 2.7.0+dfsg
  ARKDlsSetDenseJacFn at Base 2.7.0+dfsg
  ARKDlsSetDenseMassFn at Base 2.7.0+dfsg
+ ARKKLU at Base 2.7.0+dfsg
+ ARKKLUReInit at Base 2.7.0+dfsg
+ ARKKLUSetOrdering at Base 2.7.0+dfsg
  ARKLapackBand at Base 2.7.0+dfsg
  ARKLapackDense at Base 2.7.0+dfsg
  ARKMassBand at Base 2.7.0+dfsg
  ARKMassDense at Base 2.7.0+dfsg
+ ARKMassKLU at Base 2.7.0+dfsg
+ ARKMassKLUReInit at Base 2.7.0+dfsg
+ ARKMassKLUSetOrdering at Base 2.7.0+dfsg
  ARKMassLapackBand at Base 2.7.0+dfsg
  ARKMassLapackDense at Base 2.7.0+dfsg
  ARKMassPcg at Base 2.7.0+dfsg
diff --git a/debian/libsundials-cvode2.symbols b/debian/libsundials-cvode2.symbols
index 451f838..b6ef1dc 100644
--- a/debian/libsundials-cvode2.symbols
+++ b/debian/libsundials-cvode2.symbols
@@ -26,6 +26,9 @@ libsundials_cvode.so.2 libsundials-cvode2 #MINVER#
  CVDlsGetWorkSpace at Base 2.7.0+dfsg
  CVDlsSetBandJacFn at Base 2.7.0+dfsg
  CVDlsSetDenseJacFn at Base 2.7.0+dfsg
+ CVKLU at Base 2.7.0+dfsg
+ CVKLUReInit at Base 2.7.0+dfsg
+ CVKLUSetOrdering at Base 2.7.0+dfsg
  CVLapackBand at Base 2.7.0+dfsg
  CVLapackDense at Base 2.7.0+dfsg
  CVSlsGetLastFlag at Base 2.7.0+dfsg
diff --git a/debian/libsundials-cvodes2.symbols b/debian/libsundials-cvodes2.symbols
index 1bfebf3..bb9e74f 100644
--- a/debian/libsundials-cvodes2.symbols
+++ b/debian/libsundials-cvodes2.symbols
@@ -36,6 +36,12 @@ libsundials_cvodes.so.2 libsundials-cvodes2 #MINVER#
  CVDlsSetDenseJacFn at Base 2.7.0+dfsg
  CVDlsSetDenseJacFnB at Base 2.7.0+dfsg
  CVDlsSetDenseJacFnBS at Base 2.7.0+dfsg
+ CVKLU at Base 2.7.0+dfsg
+ CVKLUB at Base 2.7.0+dfsg
+ CVKLUReInit at Base 2.7.0+dfsg
+ CVKLUReInitB at Base 2.7.0+dfsg
+ CVKLUSetOrdering at Base 2.7.0+dfsg
+ CVKLUSetOrderingB at Base 2.7.0+dfsg
  CVLapackBand at Base 2.7.0+dfsg
  CVLapackBandB at Base 2.7.0+dfsg
  CVLapackDense at Base 2.7.0+dfsg
diff --git a/debian/libsundials-ida2.symbols b/debian/libsundials-ida2.symbols
index 419c9d7..3c1818b 100644
--- a/debian/libsundials-ida2.symbols
+++ b/debian/libsundials-ida2.symbols
@@ -62,6 +62,9 @@ libsundials_ida.so.2 libsundials-ida2 #MINVER#
  IDAGetWorkSpace at Base 2.7.0+dfsg
  IDAInit at Base 2.7.0+dfsg
  IDAInitialSetup at Base 2.7.0+dfsg
+ IDAKLU at Base 2.7.0+dfsg
+ IDAKLUReInit at Base 2.7.0+dfsg
+ IDAKLUSetOrdering at Base 2.7.0+dfsg
  IDALapackBand at Base 2.7.0+dfsg
  IDALapackDense at Base 2.7.0+dfsg
  IDAProcessError at Base 2.7.0+dfsg
diff --git a/debian/libsundials-idas1.symbols b/debian/libsundials-idas1.symbols
index a644844..b8533b3 100644
--- a/debian/libsundials-idas1.symbols
+++ b/debian/libsundials-idas1.symbols
@@ -116,6 +116,12 @@ libsundials_idas.so.1 libsundials-idas1 #MINVER#
  IDAInitB at Base 2.7.0+dfsg
  IDAInitBS at Base 2.7.0+dfsg
  IDAInitialSetup at Base 2.7.0+dfsg
+ IDAKLU at Base 2.7.0+dfsg
+ IDAKLUB at Base 2.7.0+dfsg
+ IDAKLUReInit at Base 2.7.0+dfsg
+ IDAKLUReInitB at Base 2.7.0+dfsg
+ IDAKLUSetOrdering at Base 2.7.0+dfsg
+ IDAKLUSetOrderingB at Base 2.7.0+dfsg
  IDALapackBand at Base 2.7.0+dfsg
  IDALapackBandB at Base 2.7.0+dfsg
  IDALapackDense at Base 2.7.0+dfsg
diff --git a/debian/libsundials-kinsol2.symbols b/debian/libsundials-kinsol2.symbols
index 28436bb..efc4832 100644
--- a/debian/libsundials-kinsol2.symbols
+++ b/debian/libsundials-kinsol2.symbols
@@ -42,6 +42,9 @@ libsundials_kinsol.so.2 libsundials-kinsol2 #MINVER#
  KINGetWorkSpace at Base 2.7.0+dfsg
  KINInfoHandler at Base 2.7.0+dfsg
  KINInit at Base 2.7.0+dfsg
+ KINKLU at Base 2.7.0+dfsg
+ KINKLUReInit at Base 2.7.0+dfsg
+ KINKLUSetOrdering at Base 2.7.0+dfsg
  KINLapackBand at Base 2.7.0+dfsg
  KINLapackDense at Base 2.7.0+dfsg
  KINPrintInfo at Base 2.7.0+dfsg
diff --git a/debian/rules b/debian/rules
index 1f2af41..0437fa6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,14 @@
 #workaround to start MPI-applications in chroot
 export OMPI_MCA_plm_rsh_agent=/bin/false
 
+DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+
+# PETSc include directory: I ask pkg-config about all the cflags I need, then
+# look through all the include directories it gives me, and report the one that
+# has petsc.h
+PETSC_INCLUDE_DIR := $(patsubst %/petsc.h,%,$(wildcard $(addsuffix /petsc.h,$(patsubst -I%,%,$(filter -I%,$(shell pkg-config --cflags PETSc))))))
+$(if $(PETSC_INCLUDE_DIR),,$(error Could not find PETSc include directory))
+
 extra_flags +=						\
    -DCMAKE_Fortran_COMPILER=gfortran			\
    -DBUILD_SHARED_LIBS:BOOL=ON				\
@@ -13,10 +21,17 @@ extra_flags +=						\
    -DEXAMPLES_ENABLE:BOOL=ON				\
    -DEXAMPLES_INSTALL:BOOL=OFF				\
 							\
-   -DOPENMP_ENABLE:BOOL=OFF				\
-   -DPTHREAD_ENABLE:BOOL=OFF				\
-   -DKLU_ENABLE:BOOL=OFF				\
-   -DPETSC_ENABLE:BOOL=OFF				\
+   -DOPENMP_ENABLE:BOOL=ON				\
+   -DPTHREAD_ENABLE:BOOL=ON				\
+                                                        \
+   -DKLU_ENABLE:BOOL=ON					\
+   -DKLU_INCLUDE_DIR=/usr/include/suitesparse		\
+   -DKLU_LIBRARY_DIR=/usr/lib/$(DEB_HOST_GNU_TYPE)	\
+                                                        \
+   -DPETSC_ENABLE:BOOL=ON				\
+   -DPETSC_INCLUDE_DIR=$(PETSC_INCLUDE_DIR)		\
+   -DPETSC_LIBRARY_DIR=/usr/lib/$(DEB_HOST_GNU_TYPE)	\
+                                                        \
    -DSUPERLUMT_ENABLE:BOOL=OFF				\
    -DHYPRE_ENABLE:BOOL=OFF
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sundials.git



More information about the debian-science-commits mailing list