[cig-commits] r7195 - short/3D/PyLith/trunk/libsrc/meshio

brad at geodynamics.org brad at geodynamics.org
Wed Jun 13 08:54:24 PDT 2007


Author: brad
Date: 2007-06-13 08:54:24 -0700 (Wed, 13 Jun 2007)
New Revision: 7195

Modified:
   short/3D/PyLith/trunk/libsrc/meshio/SolutionIOVTK.cc
Log:
Fixed setting name of field in VTK output.

Modified: short/3D/PyLith/trunk/libsrc/meshio/SolutionIOVTK.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/meshio/SolutionIOVTK.cc	2007-06-13 15:11:19 UTC (rev 7194)
+++ short/3D/PyLith/trunk/libsrc/meshio/SolutionIOVTK.cc	2007-06-13 15:54:24 UTC (rev 7195)
@@ -133,8 +133,8 @@
     err = VTKViewer::writeVertices(mesh, _viewer);
     err = VTKViewer::writeElements(mesh, _viewer);
 
-    buffer.clear();
-    buffer << name << "_t" << t << std::endl;
+    buffer.str("");
+    buffer << name << "_t" << t;
 
     field->view("");
     err = SectionView_Sieve_Ascii(mesh, field, buffer.str().c_str(), _viewer);



More information about the cig-commits mailing list