]> https://gitweb.dealii.org/ - candi.git/commitdiff
add adolc
authorTimo Heister <timo.heister@gmail.com>
Mon, 5 Feb 2018 17:34:33 +0000 (12:34 -0500)
committerTimo Heister <timo.heister@gmail.com>
Mon, 23 Apr 2018 16:03:17 +0000 (12:03 -0400)
Another optional dependency for deal 9.0.0. It turns out that the latest
release 2.6.3 is not new enough to work, so I created a temporary
release tarball on my github. We should switch to the official releases
after 2.6.4 is out.
The optional master version compiled from source requires "autoconf"
installed, so I don't want to use it by default.

candi.cfg
deal.II-toolchain/packages/adolc.package [new file with mode: 0644]

index 207e6637dfb7ade17c50ecb7b6b94d8ab1e9df3c..ef05a09723da879cc27f77a0ccacb8638afdce9f 100644 (file)
--- a/candi.cfg
+++ b/candi.cfg
@@ -43,6 +43,7 @@ PACKAGES="load:dealii-prepare"
 #PACKAGES="${PACKAGES} once:numdiff"
 
 # These packages determine the active components of deal.II:
+#PACKAGES="${PACKAGES} once:adolc"
 #PACKAGES="${PACKAGES} once:arpack-ng"
 #PACKAGES="${PACKAGES} once:assimp"
 #PACKAGES="${PACKAGES} once:nanoflann"
diff --git a/deal.II-toolchain/packages/adolc.package b/deal.II-toolchain/packages/adolc.package
new file mode 100644 (file)
index 0000000..e5ae016
--- /dev/null
@@ -0,0 +1,51 @@
+# use development version?
+#CANDI_ADOLC_FROM_GIT=1
+
+if [ -n "$CANDI_ADOLC_FROM_GIT" ]; then
+    # download git repository
+    VERSION=master
+    EXTRACTSTO=ADOL-C-master
+
+    NAME=adol-c.git
+    PACKING=git
+    SOURCE=https://gitlab.com/adol-c/
+
+else
+    # download release tarball
+
+    VERSION=2.6.3
+    NAME=ADOL-C-${VERSION}
+    EXTRACTSTO=ADOL-C-${VERSION}
+    SOURCE=https://www.coin-or.org/download/source/ADOL-C/
+    CHECKSUM=f78f67f70d5874830a1ad1c0f54e54f7
+    PACKING=.tgz
+
+    VERSION=2.6.4-rc1
+    NAME=ADOL-C-${VERSION}
+    EXTRACTSTO=ADOL-C-${VERSION}
+    SOURCE=https://github.com/tjhei/adol-c/releases/download/v2.6.4-rc1/
+    CHECKSUM=cca27e9579c0c9ab4dd0c1cfa1c44433
+    PACKING=.tar.gz
+fi
+unset CANDI_ADOLC_FROM_GIT
+
+
+BUILDCHAIN=autotools
+
+BUILDDIR=${BUILD_PATH}/adolc-${VERSION}
+INSTALL_PATH=${INSTALL_PATH}/adolc-${VERSION}
+
+CONFOPTS=""
+
+package_specific_register () {
+    export ADOLC_DIR=${INSTALL_PATH}
+}
+
+package_specific_conf () {
+    # Generate configuration file
+    CONFIG_FILE=${CONFIGURATION_PATH}/adolc-${VERSION}
+    rm -f $CONFIG_FILE
+    echo "
+export ADOLC_DIR=${INSTALL_PATH}
+" >> $CONFIG_FILE
+}

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.