]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix compiling with older SUNDIALS 7488/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 30 Nov 2018 08:43:52 +0000 (09:43 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 30 Nov 2018 08:43:52 +0000 (09:43 +0100)
source/sundials/arkode.cc

index ab88f08bc5eaadb03edded6ee54417af88b1adef..21bbcfcd0dff872101ae8537af2bf7f10a1ed25c 100644 (file)
@@ -140,7 +140,11 @@ namespace SUNDIALS
                                       *src_ypred,
                                       *src_fpred,
                                       jcurPtr_tmp);
-      *jcurPtr         = jcurPtr_tmp ? SUNTRUE : SUNFALSE;
+#  if DEAL_II_SUNDIALS_VERSION_GTE(2, 0, 0)
+      *jcurPtr = jcurPtr_tmp ? SUNTRUE : SUNFALSE;
+#  else
+      *jcurPtr = jcurPtr_tmp ? TRUE : FALSE;
+#  endif
 
       return err;
     }

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.