[cig-commits] r21557 - short/3D/PyLith/trunk/libsrc/pylith/topology

brad at geodynamics.org brad at geodynamics.org
Mon Mar 18 11:46:00 PDT 2013


Author: brad
Date: 2013-03-18 11:46:00 -0700 (Mon, 18 Mar 2013)
New Revision: 21557

Modified:
   short/3D/PyLith/trunk/libsrc/pylith/topology/SubMesh.icc
Log:
Updated SubMesh::view to use PETSc DM.

Modified: short/3D/PyLith/trunk/libsrc/pylith/topology/SubMesh.icc
===================================================================
--- short/3D/PyLith/trunk/libsrc/pylith/topology/SubMesh.icc	2013-03-18 18:45:37 UTC (rev 21556)
+++ short/3D/PyLith/trunk/libsrc/pylith/topology/SubMesh.icc	2013-03-18 18:46:00 UTC (rev 21557)
@@ -128,7 +128,8 @@
 inline
 void
 pylith::topology::SubMesh::view(const char* label) const {
-  _mesh->view(label);
+  assert(_newMesh);
+  PetscErrorCode err = DMView(_newMesh, PETSC_VIEWER_STDOUT_WORLD);CHECK_PETSC_ERROR(err);
 }
 
 



More information about the CIG-COMMITS mailing list