[cig-commits] r18457 - short/3D/PyLith/trunk/libsrc/pylith/topology
brad at geodynamics.org
brad at geodynamics.org
Tue May 24 16:36:24 PDT 2011
Author: brad
Date: 2011-05-24 16:36:24 -0700 (Tue, 24 May 2011)
New Revision: 18457
Modified:
short/3D/PyLith/trunk/libsrc/pylith/topology/Jacobian.cc
Log:
Eliminate redundant assignment after destruction in deallocate().
Modified: short/3D/PyLith/trunk/libsrc/pylith/topology/Jacobian.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/pylith/topology/Jacobian.cc 2011-05-24 23:35:30 UTC (rev 18456)
+++ short/3D/PyLith/trunk/libsrc/pylith/topology/Jacobian.cc 2011-05-24 23:36:24 UTC (rev 18457)
@@ -90,10 +90,7 @@
void
pylith::topology::Jacobian::deallocate(void)
{ // deallocate
- if (0 != _matrix) {
- PetscErrorCode err = MatDestroy(&_matrix); _matrix = 0;
- CHECK_PETSC_ERROR(err);
- } // if
+ PetscErrorCode err = MatDestroy(&_matrix);CHECK_PETSC_ERROR(err);
} // deallocate
// ----------------------------------------------------------------------
More information about the CIG-COMMITS
mailing list