From 07c9c225eb399526749fb410cd8a87c101fe1145 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Mon, 6 Feb 2023 15:07:49 -0500 Subject: [PATCH] fix SEACAS support - netcdf support in trilinos needs some help to find correct paths - SEACAS depends on netcdf --- deal.II-toolchain/packages/trilinos.package | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/deal.II-toolchain/packages/trilinos.package b/deal.II-toolchain/packages/trilinos.package index 2e06700..1484712 100644 --- a/deal.II-toolchain/packages/trilinos.package +++ b/deal.II-toolchain/packages/trilinos.package @@ -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 \ -- 2.39.5