]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Bug fixed if output_step function is not defined. Now example in the documentation... 6702/head
authorAntoni Vidal <anvifer2@upv.es>
Thu, 31 May 2018 17:17:05 +0000 (19:17 +0200)
committerAntoni Vidal <anvifer2@upv.es>
Thu, 31 May 2018 17:17:05 +0000 (19:17 +0200)
source/sundials/arkode.cc

index 0216512b08cf29cd7ebf2cafe784bb6bfd6abd25..528d6e6d9a447a2add3da0a400aab05bf464c1bf 100644 (file)
@@ -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)
       {

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.