[cig-commits] r21602 - short/3D/PyLith/trunk/libsrc/pylith/faults
brad at geodynamics.org
brad at geodynamics.org
Thu Mar 21 12:06:57 PDT 2013
Author: brad
Date: 2013-03-21 12:06:56 -0700 (Thu, 21 Mar 2013)
New Revision: 21602
Modified:
short/3D/PyLith/trunk/libsrc/pylith/faults/Fault.cc
Log:
Updated fault size methods to use submesh methods (no Sieve).
Modified: short/3D/PyLith/trunk/libsrc/pylith/faults/Fault.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/pylith/faults/Fault.cc 2013-03-21 18:56:01 UTC (rev 21601)
+++ short/3D/PyLith/trunk/libsrc/pylith/faults/Fault.cc 2013-03-21 19:06:56 UTC (rev 21602)
@@ -60,7 +60,6 @@
int
pylith::faults::Fault::dimension(void) const
{ // dimension
- assert(false); // :TODO: Update for PetscDM
return (_faultMesh) ? _faultMesh->dimension() : 0;
} // dimension
@@ -70,10 +69,7 @@
int
pylith::faults::Fault::coneSize(void) const
{ // coneSize
- assert(false); // :TODO: Update for PetscDM
-
- return (_faultMesh && numCells() > 0) ?
- _faultMesh->sieveMesh()->getSieve()->getConeSize(*_faultMesh->sieveMesh()->heightStratum(1)->begin()) : 0;
+ return (_faultMesh) ? _faultMesh->coneSize() : 0;
} // coneSize
@@ -82,7 +78,6 @@
int
pylith::faults::Fault::numVertices(void) const
{ // numVertices
- assert(false); // :TODO: Update for PetscDM
return (_faultMesh) ? _faultMesh->numVertices() : 0;
} // numVertices
@@ -92,9 +87,7 @@
int
pylith::faults::Fault::numCells(void) const
{ // numCells
- assert(false); // :TODO: Update for PetscDM
- return (_faultMesh && !_faultMesh->sieveMesh().isNull() && _faultMesh->sieveMesh()->height() > 0) ?
- _faultMesh->sieveMesh()->heightStratum(1)->size() : 0;
+ return (_faultMesh) ? _faultMesh->numCells() : 0;
} // numCells
More information about the CIG-COMMITS
mailing list