From 2116f8e470a7daa7fbc31d1926b04278a5e2a4a4 Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@igpm.rwth-aachen.de>
Date: Tue, 20 Nov 2007 18:22:52 +0000
Subject: [PATCH] use operator<< instead of printf

[[Imported from SVN: r1791]]
---
 src/rodsolver.cc | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/rodsolver.cc b/src/rodsolver.cc
index 198a43cd..e23a1f8a 100644
--- a/src/rodsolver.cc
+++ b/src/rodsolver.cc
@@ -310,9 +310,11 @@ void RodSolver<GridType>::solve()
                 if (error < 1e-12)
                     break;
                 
-                printf("Iteration: %d  ", j);
-                printf("Errors:  error %g,  convergence Rate: %g,  total conv rate %g\n", 
-                       error, convRate, pow(totalConvRate, 1/((double)j+1)), 0);
+                std::cout << "Iteration: " << j << "  ";
+                std::cout << "Errors:  error " << error << ", convergence rate: " << convRate
+                          << ",  total conv rate " << pow(totalConvRate, 1/((double)j+1)) << std::endl;
+                
+
                 fprintf(fp, "%d %g %g %g\n", j+1, error, convRate, pow(totalConvRate, 1/((double)j+1)));
                 
                 
-- 
GitLab