[sdpb] 95/233: Flush stdout after every iteration

Tobias Hansen thansen at moszumanska.debian.org
Thu Mar 9 04:06:24 UTC 2017


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository sdpb.

commit 633de187f48255f0911860fbdb40b262aa7f608f
Author: David Simmons-Duffin <dsd at minerva.sns.ias.edu>
Date:   Tue Oct 21 13:44:12 2014 -0400

    Flush stdout after every iteration
---
 src/SDPSolverIO.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/SDPSolverIO.cpp b/src/SDPSolverIO.cpp
index 43bd2ab..a974300 100644
--- a/src/SDPSolverIO.cpp
+++ b/src/SDPSolverIO.cpp
@@ -32,7 +32,7 @@ void printSolverInfo(int iteration,
   std::stringstream ss;
   ss << td;
   gmp_fprintf(stdout,
-              "%3d  %s  %-8.1Fe %-+11.2Fe %-+11.2Fe %-9.2Fe  %-+10.2Fe  %-+10.2Fe  %-8.3Fg %-8.3Fg %-4.2Fg\n",
+              "%3d  %s  %-8.1Fe %-+11.2Fe %-+11.2Fe %-9.2Fe  %-+10.2Fe  %-+10.2Fe  %-8.3Fg %-8.3Fg %-4.2Fg",
               iteration,
               ss.str().substr(0,8).c_str(),
               mu.get_mpf_t(),
@@ -44,6 +44,7 @@ void printSolverInfo(int iteration,
               primalStepLength.get_mpf_t(),
               dualStepLength.get_mpf_t(),
               betaCorrector.get_mpf_t());
+  cout << endl;
 }
 
 ostream& operator<<(ostream& os, const SDPSolverParameters& p) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sdpb.git



More information about the debian-science-commits mailing list