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

knepley at geodynamics.org knepley at geodynamics.org
Fri Nov 11 08:15:49 PST 2011


Author: knepley
Date: 2011-11-11 08:15:49 -0800 (Fri, 11 Nov 2011)
New Revision: 19187

Modified:
   short/3D/PyLith/trunk/libsrc/pylith/meshio/OutputSolnPoints.cc
Log:
Added assert


Modified: short/3D/PyLith/trunk/libsrc/pylith/meshio/OutputSolnPoints.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/pylith/meshio/OutputSolnPoints.cc	2011-11-11 12:03:29 UTC (rev 19186)
+++ short/3D/PyLith/trunk/libsrc/pylith/meshio/OutputSolnPoints.cc	2011-11-11 16:15:49 UTC (rev 19187)
@@ -114,6 +114,7 @@
   DM dm;
   PetscErrorCode err = 0;
 
+  assert(!_mesh->sieveMesh().isNull());
   err = DMMeshCreate(_mesh->sieveMesh()->comm(), &dm);CHECK_PETSC_ERROR(err);
   err = DMMeshSetMesh(dm, _mesh->sieveMesh());CHECK_PETSC_ERROR(err);
   err = DMMeshInterpolationCreate(dm, &_interpolator);CHECK_PETSC_ERROR(err);



More information about the CIG-COMMITS mailing list