From: Antoni Vidal <anvifer2@upv.es>
Date: Thu, 31 May 2018 17:17:05 +0000 (+0200)
Subject: Bug fixed if output_step function is not defined. Now example in the documentation... 
X-Git-Tag: v9.1.0-rc1~1080^2
X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=beeaad2d03d482ff034df2f235bc2374cd840c19;p=dealii.git

Bug fixed if output_step function is not defined. Now example in the documentation works.
---

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)
       {