]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Properly guard an #include. 18118/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 11 Feb 2025 17:46:15 +0000 (10:46 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 11 Feb 2025 17:46:15 +0000 (10:46 -0700)
source/sundials/ida.cc

index e061d5c8114885d719feae11025695ae982a5b27..f1bcd01679176bdd4eb628a2d6515dc5052fd70a 100644 (file)
@@ -38,7 +38,9 @@
 #  include <deal.II/sundials/utilities.h>
 
 #  include <idas/idas.h>
-#  include <sundials/sundials_context.h>
+#  if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
+#    include <sundials/sundials_context.h>
+#  endif
 
 #  include <iomanip>
 #  include <iostream>

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.