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

brad at geodynamics.org brad at geodynamics.org
Fri Apr 12 13:39:24 PDT 2013


Author: brad
Date: 2013-04-12 13:39:24 -0700 (Fri, 12 Apr 2013)
New Revision: 21844

Modified:
   short/3D/PyLith/trunk/libsrc/pylith/meshio/DataWriterVTK.cc
Log:
Fixed small bug in VTK data writer.

Modified: short/3D/PyLith/trunk/libsrc/pylith/meshio/DataWriterVTK.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/pylith/meshio/DataWriterVTK.cc	2013-04-12 19:25:11 UTC (rev 21843)
+++ short/3D/PyLith/trunk/libsrc/pylith/meshio/DataWriterVTK.cc	2013-04-12 20:39:24 UTC (rev 21844)
@@ -131,6 +131,8 @@
 { // open
   PYLITH_METHOD_BEGIN;
 
+  DataWriter<mesh_type, field_type>::open(mesh, numTimeSteps, label, labelId);
+
   // Save handle for actions required in closeTimeStep() and close();
   PetscErrorCode err = 0;
   err = DMDestroy(&_dm);CHECK_PETSC_ERROR(err);
@@ -171,6 +173,8 @@
     err = DMDestroy(&_dm);CHECK_PETSC_ERROR(err);
   } // if
 
+  DataWriter<mesh_type, field_type>::close();
+
   PYLITH_METHOD_END;
 } // close
 
@@ -188,6 +192,7 @@
   PetscErrorCode err = 0;
     
   const std::string& filename = _vtkFilename(t);
+  std::cout << "FILENAME: " << filename << std::endl;
 
   err = PetscViewerCreate(mesh.comm(), &_viewer);CHECK_PETSC_ERROR(err);
   err = PetscViewerSetType(_viewer, PETSCVIEWERVTK);CHECK_PETSC_ERROR(err);



More information about the CIG-COMMITS mailing list