[cig-commits] [commit] baagaard/fix-faults-intersect: Small code cleanup. (a606bd8)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Mon Jun 30 11:20:43 PDT 2014


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

On branch  : baagaard/fix-faults-intersect
Link       : https://github.com/geodynamics/pylith/compare/6063f9be24720cb6e6c830bf0ec46c151f839c6b...a606bd84c356f012fc13ba29c62cb4de13d8efc0

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

commit a606bd84c356f012fc13ba29c62cb4de13d8efc0
Author: Brad Aagaard <baagaard at usgs.gov>
Date:   Mon Jun 30 11:20:26 2014 -0700

    Small code cleanup.


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

a606bd84c356f012fc13ba29c62cb4de13d8efc0
 libsrc/pylith/topology/Jacobian.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libsrc/pylith/topology/Jacobian.cc b/libsrc/pylith/topology/Jacobian.cc
index 3374d40..2905228 100644
--- a/libsrc/pylith/topology/Jacobian.cc
+++ b/libsrc/pylith/topology/Jacobian.cc
@@ -118,7 +118,7 @@ pylith::topology::Jacobian::assemble(const char* mode)
       if (!ncols) {
         std::ostringstream msg;
         msg << "ERROR: Empty row " << r << " in ["<<rStart<<","<<rEnd<<")" << std::endl;
-        throw std::runtime_error(msg.str().c_str());
+        throw std::runtime_error(msg.str());
       }
       for(c = 0; c < ncols; ++c) {
         if (cols[c] == r) break;
@@ -126,7 +126,7 @@ pylith::topology::Jacobian::assemble(const char* mode)
       if (c == ncols) {
         std::ostringstream msg;
         msg << "ERROR: Row " << r << " in ["<<rStart<<","<<rEnd<<") is missing diagonal element" << std::endl;
-        throw std::runtime_error(msg.str().c_str());
+        throw std::runtime_error(msg.str());
       }
       err = MatRestoreRow(_matrix,r, &ncols, &cols, PETSC_NULL);PYLITH_CHECK_ERROR(err);
     }



More information about the CIG-COMMITS mailing list