[cig-commits] [commit] baagaard/feature-output-station-names, baagaard/feature-progress-monitor, baagaard/fix-faults-intersect, master: Small code cleanup. (a606bd8)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Wed Nov 5 15:44:24 PST 2014


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

On branches: baagaard/feature-output-station-names,baagaard/feature-progress-monitor,baagaard/fix-faults-intersect,master
Link       : https://github.com/geodynamics/pylith/compare/f33c75b19fd60eedb2a3405db76a1fee333bb1d7...5b6d812b1612809fea3bd331c4e5af98c25a536a

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

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