]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Require Trilinos 12.14.1 if configured with ROL.
authorMarc Fehling <mafehling.git@gmail.com>
Wed, 27 Nov 2024 15:07:05 +0000 (16:07 +0100)
committerMarc Fehling <mafehling.git@gmail.com>
Thu, 28 Nov 2024 15:51:42 +0000 (16:51 +0100)
cmake/configure/configure_20_trilinos.cmake
doc/news/changes/incompatibilities/20241128Fehling1 [new file with mode: 0644]

index 068dd8c6adde7053ea5bec3a9e6d233eb770d042..e5a45f964fee55540f96326840152561f1353859 100644 (file)
@@ -82,7 +82,6 @@ macro(feature_trilinos_find_external var)
     # We require at least Trilinos 12.4
     #
     if(TRILINOS_VERSION VERSION_LESS 12.4)
-
       message(STATUS "Could not find a sufficient Trilinos installation: "
         "deal.II requires at least version 12.4, but version ${TRILINOS_VERSION} was found."
       )
@@ -224,6 +223,25 @@ macro(feature_trilinos_find_external var)
       KOKKOS_CHECK(OPTIONS CUDA_LAMBDA)
     endif()
 
+    if(TRILINOS_WITH_ROL)
+      #
+      # We require at least Trilinos 12.14.1
+      #
+      if(TRILINOS_VERSION VERSION_LESS 12.14.1)
+        message(STATUS "Could not find a sufficient Trilinos installation: "
+          "deal.II requires at least version 12.14.1 if the Trilinos installation includes ROL, "
+          "but version ${TRILINOS_VERSION} was found."
+        )
+        set(TRILINOS_ADDITIONAL_ERROR_STRING
+          ${TRILINOS_ADDITIONAL_ERROR_STRING}
+          "The Trilinos installation (found at \"${TRILINOS_DIR}\")\n"
+          "with version ${TRILINOS_VERSION} is too old.\n"
+          "deal.II requires at least version 12.14.1 if the Trilinos installation includes ROL.\n\n"
+        )
+        set(${var} FALSE)
+      endif()
+    endif()
+
     if(TRILINOS_WITH_TPETRA)
       #
       # Check if Tpetra is usable in fact.
diff --git a/doc/news/changes/incompatibilities/20241128Fehling1 b/doc/news/changes/incompatibilities/20241128Fehling1
new file mode 100644 (file)
index 0000000..0780693
--- /dev/null
@@ -0,0 +1,4 @@
+Changed: The minimum version for Trilinos has been bumped to 12.14.1
+if Trilinos bundles ROL.
+<br>
+(Marc Fehling, 2024/11/28)

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.