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

brad at geodynamics.org brad at geodynamics.org
Tue May 28 17:00:18 PDT 2013


Author: brad
Date: 2013-05-28 17:00:17 -0700 (Tue, 28 May 2013)
New Revision: 22159

Modified:
   short/3D/PyLith/trunk/libsrc/pylith/topology/Stratum.icc
Log:
Allow null array for empty index set.

Modified: short/3D/PyLith/trunk/libsrc/pylith/topology/Stratum.icc
===================================================================
--- short/3D/PyLith/trunk/libsrc/pylith/topology/Stratum.icc	2013-05-28 23:59:51 UTC (rev 22158)
+++ short/3D/PyLith/trunk/libsrc/pylith/topology/Stratum.icc	2013-05-29 00:00:17 UTC (rev 22159)
@@ -93,7 +93,7 @@
   PetscErrorCode err;
   err = DMPlexGetStratumIS(dmMesh, label, id, &_indexSet);PYLITH_CHECK_ERROR(err);assert(_indexSet);
   err = ISGetSize(_indexSet, &_size);PYLITH_CHECK_ERROR(err);assert(_size >= 0);
-  err = ISGetIndices(_indexSet, &_points);PYLITH_CHECK_ERROR(err);assert(_points);
+  err = ISGetIndices(_indexSet, &_points);PYLITH_CHECK_ERROR(err);
 } // constructor
 
 // ----------------------------------------------------------------------



More information about the CIG-COMMITS mailing list