]> https://gitweb.dealii.org/ - candi.git/commitdiff
add netcdf 4.7.4 166/head
authorTimo Heister <timo.heister@gmail.com>
Tue, 26 Jan 2021 18:52:40 +0000 (13:52 -0500)
committerTimo Heister <timo.heister@gmail.com>
Tue, 26 Jan 2021 18:52:40 +0000 (13:52 -0500)
candi.cfg
deal.II-toolchain/packages/netcdf.package [new file with mode: 0644]

index 35965820c0fa95c34b274a9c05bcd8b6974571f6..c08c3d6f17a5c696f76c966f858b5c7f2f9cc304 100644 (file)
--- a/candi.cfg
+++ b/candi.cfg
@@ -62,6 +62,7 @@ PACKAGES="${PACKAGES} once:parmetis"
 #PACKAGES="${PACKAGES} once:sundials"
 #PACKAGES="${PACKAGES} once:superlu_dist"
 PACKAGES="${PACKAGES} once:hdf5"
+#PACKAGES="${PACKAGES} once:netcdf"
 PACKAGES="${PACKAGES} once:p4est"
 PACKAGES="${PACKAGES} once:trilinos"
 PACKAGES="${PACKAGES} once:petsc"
diff --git a/deal.II-toolchain/packages/netcdf.package b/deal.II-toolchain/packages/netcdf.package
new file mode 100644 (file)
index 0000000..d92a4cb
--- /dev/null
@@ -0,0 +1,26 @@
+VERSION=4.7.4
+CHECKSUM=33979e8f0cf4ee31323fc0934282111b
+EXTRACTSTO=netcdf-c-${VERSION}
+NAME=v${VERSION}
+PACKING=.tar.gz
+SOURCE=https://github.com/Unidata/netcdf-c/archive/
+
+BUILDCHAIN=autotools
+
+BUILDDIR=${BUILD_PATH}/netcdf-${VERSION}
+INSTALL_PATH=${INSTALL_PATH}/netcdf-${VERSION}
+
+CONFOPTS="--disable-dap --enable-parallel --enable-netcdf-4 CPPFLAGS=-I${HDF5_DIR}/include LDFLAGS=-L${HDF5_DIR}/lib CC=${CC}"
+
+package_specific_register () {
+    export NETCDF_DIR=${INSTALL_PATH}
+}
+
+package_specific_conf () {
+    # Generate configuration file
+    CONFIG_FILE=${CONFIGURATION_PATH}/${NAME}
+    rm -f $CONFIG_FILE
+    echo "
+export NETCDF_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.