Skip to content
Snippets Groups Projects
Commit 44cce263 authored by Andreas Lauser's avatar Andreas Lauser
Browse files

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
parent 1a8410ad
No related branches found
No related tags found
No related merge requests found
......@@ -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());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment