[cig-commits] [commit] knepley/upgrade-petsc-interface: Trivial code cleanup. (1f1ab42)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Fri Nov 8 09:38:09 PST 2013
Repository : ssh://geoshell/pylith
On branch : knepley/upgrade-petsc-interface
Link : https://github.com/geodynamics/pylith/compare/44dc34616c3c0f702805372f2b51e8aa7a0ccbcc...1f1ab4214caab5252cb60d16b1a765e8c4dcf1b0
>---------------------------------------------------------------
commit 1f1ab4214caab5252cb60d16b1a765e8c4dcf1b0
Author: Brad Aagaard <baagaard at usgs.gov>
Date: Fri Nov 8 09:40:35 2013 -0800
Trivial code cleanup.
>---------------------------------------------------------------
1f1ab4214caab5252cb60d16b1a765e8c4dcf1b0
libsrc/pylith/faults/FaultCohesiveLagrange.cc | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/libsrc/pylith/faults/FaultCohesiveLagrange.cc b/libsrc/pylith/faults/FaultCohesiveLagrange.cc
index 1c1c36f..9c3a98b 100644
--- a/libsrc/pylith/faults/FaultCohesiveLagrange.cc
+++ b/libsrc/pylith/faults/FaultCohesiveLagrange.cc
@@ -957,7 +957,6 @@ pylith::faults::FaultCohesiveLagrange::verifyConfiguration(const topology::Mesh&
} // if
// Check quadrature against mesh
- const int numConstraints = _quadrature->numBasis();
topology::StratumIS cohesiveIS(dmMesh, "material-id", id());
const PetscInt* cells = cohesiveIS.points();
const PetscInt ncells = cohesiveIS.size();
@@ -972,9 +971,9 @@ pylith::faults::FaultCohesiveLagrange::verifyConfiguration(const topology::Mesh&
++cellNumEdges;
}
}
- if (numConstraints != cellNumEdges) {
+ if (numBasis != cellNumEdges) {
std::ostringstream msg;
- msg << "Number of dofs in reference cell (" << numConstraints
+ msg << "Number of dofs in reference cell (" << numBasis
<< ") is not compatible with number of edges (" << cellNumEdges
<< ") in cohesive cell " << cells[i] << " for fault '" << label()
<< "'.";
More information about the CIG-COMMITS
mailing list