From 44cce2632f6d86b67db75b3fad125f21aa961fdd Mon Sep 17 00:00:00 2001
From: Andreas Lauser <and@poware.org>
Date: Tue, 10 Jan 2012 16:38:13 +0000
Subject: [PATCH] box model: use correct names for convergence output

counter-intuitively, ostringstream::clear() does not reset the string
it writes to. that can be done using ostringstream::str("")

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@7331 2fb0f335-1f38-0410-981e-8018bf24f1b0
---
 dumux/boxmodels/common/boxmodel.hh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dumux/boxmodels/common/boxmodel.hh b/dumux/boxmodels/common/boxmodel.hh
index 4c724323a3..a3df8814ba 100644
--- a/dumux/boxmodels/common/boxmodel.hh
+++ b/dumux/boxmodels/common/boxmodel.hh
@@ -644,11 +644,11 @@ public:
 
         for (int i = 0; i < numEq; ++i) {
             std::ostringstream oss;
-            oss << "x_" << i;
+            oss.str(""); oss << "x_" << i;
             writer.attachVertexData(*x[i], oss.str());
-            oss.clear(); oss << "delta_" << i;
+            oss.str(""); oss << "delta_" << i;
             writer.attachVertexData(*delta[i], oss.str());
-            oss.clear(); oss << "defect_" << i;
+            oss.str(""); oss << "defect_" << i;
             writer.attachVertexData(*def[i], oss.str());
         }
 
-- 
GitLab