diff libinterp/dldfcn/__ode15__.cc @ 26000:97e63ba8a34c

* __ode15__.cc (IDA::print_stat): Use octave_stdout instead of std::cout.
author John W. Eaton <jwe@octave.org>
date Thu, 01 Nov 2018 10:07:19 -0400
parents cb1606f78f6b
children 00f796120a6d
line wrap: on
line diff
--- a/libinterp/dldfcn/__ode15__.cc	Thu Nov 01 16:03:34 2018 +0100
+++ b/libinterp/dldfcn/__ode15__.cc	Thu Nov 01 10:07:19 2018 -0400
@@ -24,8 +24,6 @@
 #  include "config.h"
 #endif
 
-#include <iostream>
-
 #include "dColVector.h"
 #include "dMatrix.h"
 #include "dSparse.h"
@@ -37,6 +35,7 @@
 #include "oct-map.h"
 #include "ov.h"
 #include "ovl.h"
+#include "pager.h"
 #include "parse.h"
 
 #if defined (HAVE_SUNDIALS)
@@ -892,12 +891,12 @@
     if (IDAGetNumResEvals (mem, &nrevals) != 0)
       error ("IDA failed to return the number of residual evaluations");
 
-    std::cout << nsteps << " successful steps\n";
-    std::cout << netfails << " failed attempts\n";
-    std::cout << nrevals << " function evaluations\n";
-    // std::cout << " partial derivatives\n";
-    // std::cout << " LU decompositions\n";
-    // std::cout << " solutions of linear systems\n";
+    octave_stdout << nsteps << " successful steps\n";
+    octave_stdout << netfails << " failed attempts\n";
+    octave_stdout << nrevals << " function evaluations\n";
+    // octave_stdout << " partial derivatives\n";
+    // octave_stdout << " LU decompositions\n";
+    // octave_stdout << " solutions of linear systems\n";
   }
 
   ColumnVector