From 5e92b3432190b6c1ca39004fc7bce80308f1f364 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Fri, 30 Nov 2018 09:43:52 +0100 Subject: [PATCH] Fix compiling with older SUNDIALS --- source/sundials/arkode.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/sundials/arkode.cc b/source/sundials/arkode.cc index ab88f08bc5..21bbcfcd0d 100644 --- a/source/sundials/arkode.cc +++ b/source/sundials/arkode.cc @@ -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; } -- 2.39.5