[cig-commits] [commit] baagaard/add-release-2.0.1: Improve error message for fault quadrature check. (346e2da)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Sun Jun 22 11:39:33 PDT 2014


Repository : https://github.com/geodynamics/pylith

On branch  : baagaard/add-release-2.0.1
Link       : https://github.com/geodynamics/pylith/compare/0000000000000000000000000000000000000000...346e2da07fcaab2b30faffd227c7182c5f1a52cc

>---------------------------------------------------------------

commit 346e2da07fcaab2b30faffd227c7182c5f1a52cc
Author: Brad Aagaard <baagaard at usgs.gov>
Date:   Sun Jun 22 11:39:14 2014 -0700

    Improve error message for fault quadrature check.


>---------------------------------------------------------------

346e2da07fcaab2b30faffd227c7182c5f1a52cc
 libsrc/pylith/faults/FaultCohesiveLagrange.cc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libsrc/pylith/faults/FaultCohesiveLagrange.cc b/libsrc/pylith/faults/FaultCohesiveLagrange.cc
index 59855bd..630c6f2 100644
--- a/libsrc/pylith/faults/FaultCohesiveLagrange.cc
+++ b/libsrc/pylith/faults/FaultCohesiveLagrange.cc
@@ -1069,10 +1069,10 @@ pylith::faults::FaultCohesiveLagrange::verifyConfiguration(const topology::Mesh&
     }
     if (numBasis != cellNumEdges) {
       std::ostringstream msg;
-      msg << "Number of dofs in reference cell (" << numBasis
-          << ") is not compatible with number of edges (" << cellNumEdges
-          << ") in cohesive cell " << cells[i] << " for fault '" << label()
-          << "'.";
+      msg << "Quadrature is incompatible with cell for fault '" << label() << "'.\n"
+	  << "Cell " << cells[i] << " has " << cellNumEdges
+	  << " edges but quadrature reference cell has "
+	  << numBasis << " edges.";
       throw std::runtime_error(msg.str());
     } // if
     err = DMPlexRestoreTransitiveClosure(dmMesh, cells[i], PETSC_TRUE, &closureSize, &closure);PYLITH_CHECK_ERROR(err);



More information about the CIG-COMMITS mailing list