[cig-commits] r17248 - short/3D/PyLith/trunk/libsrc/meshio
brad at geodynamics.org
brad at geodynamics.org
Sat Oct 9 14:58:50 PDT 2010
Author: brad
Date: 2010-10-09 14:58:49 -0700 (Sat, 09 Oct 2010)
New Revision: 17248
Modified:
short/3D/PyLith/trunk/libsrc/meshio/DataWriterHDF5.cc
Log:
Simple fixes for setting up HDF5 viewer.
Modified: short/3D/PyLith/trunk/libsrc/meshio/DataWriterHDF5.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/meshio/DataWriterHDF5.cc 2010-10-09 20:23:53 UTC (rev 17247)
+++ short/3D/PyLith/trunk/libsrc/meshio/DataWriterHDF5.cc 2010-10-09 21:58:49 UTC (rev 17248)
@@ -81,6 +81,8 @@
CHECK_PETSC_ERROR(err);
err = PetscViewerSetType(_viewer, PETSCVIEWERHDF5);
CHECK_PETSC_ERROR(err);
+ err = PetscViewerFileSetMode(_viewer, FILE_MODE_WRITE);
+ CHECK_PETSC_ERROR(err);
err = PetscViewerFileSetName(_viewer, filename.c_str());
CHECK_PETSC_ERROR(err);
More information about the CIG-COMMITS
mailing list