From beeaad2d03d482ff034df2f235bc2374cd840c19 Mon Sep 17 00:00:00 2001 From: Antoni Vidal Date: Thu, 31 May 2018 19:17:05 +0200 Subject: [PATCH] Bug fixed if output_step function is not defined. Now example in the documentation works. --- source/sundials/arkode.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/sundials/arkode.cc b/source/sundials/arkode.cc index 0216512b08..528d6e6d9a 100644 --- a/source/sundials/arkode.cc +++ b/source/sundials/arkode.cc @@ -300,7 +300,8 @@ namespace SUNDIALS double next_time = data.initial_time; - output_step(0, solution, 0); + if (output_step) + output_step(0, solution, 0); while (t < data.final_time) { -- 2.39.5