]> https://gitweb.dealii.org/ - candi.git/commitdiff
fix SEACAS support
authorTimo Heister <timo.heister@gmail.com>
Mon, 6 Feb 2023 20:07:49 +0000 (15:07 -0500)
committerTimo Heister <timo.heister@gmail.com>
Mon, 6 Feb 2023 22:34:10 +0000 (17:34 -0500)
- netcdf support in trilinos needs some help to find correct paths
- SEACAS depends on netcdf

deal.II-toolchain/packages/trilinos.package

index 2e06700ea0ab6e043bc027bb90740427f2442cb4..1484712d8fa7974c639cc684685a44c8e58bab16 100644 (file)
@@ -200,6 +200,17 @@ if [ ! -z "${SUPERLU_DIR}" ]; then
       -D HAVE_SUPERLUDIST_ENUM_NAMESPACE:BOOL=ON"
 fi
 
+# support netCDF and SEACAS (if netCDF is available)
+if [ ! -z "${NETCDF_DIR}" ]; then
+    cecho ${INFO} "trilinos: configuration with netCDF and SEACAS"
+
+    CONFOPTS="${CONFOPTS} \
+      -D Trilinos_ENABLE_SEACAS=ON \
+      -D TPL_ENABLE_Netcdf=ON \
+      -D Netcdf_LIBRARY_DIRS=${NETCDF_DIR}/lib/ \
+      -D Netcdf_INCLUDE_DIRS=${NETCDF_DIR}/include/"
+fi
+
 #########################################################################
 # General Trilinos configuration
 
@@ -228,7 +239,6 @@ CONFOPTS="\
   -D TPL_ENABLE_Boost:BOOL=OFF \
   -D Trilinos_ENABLE_Belos:BOOL=ON \
   -D Trilinos_ENABLE_Amesos2:BOOL=ON \
-  -D Trilinos_ENABLE_SEACAS:BOOL=ON \
   -D TPL_ENABLE_Matio=OFF \
   -D CMAKE_BUILD_TYPE:STRING=RELEASE \
   -D CMAKE_VERBOSE_MAKEFILE:BOOL=OFF \

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.