[cig-commits] [commit] master: Be less strict in which types of exceptions we catch. (e511a5b)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Thu Jan 15 16:29:05 PST 2015


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

On branch  : master
Link       : https://github.com/geodynamics/aspect/compare/01f19ef36177d8c77f84b59ece4918ba5f3e7661...2c1b4902b4b72e87b59f2456b9861b5102beca3c

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

commit e511a5b28dd147bcc2c84b0e92e1dac16eb5e719
Author: Wolfgang Bangerth <bangerth at math.tamu.edu>
Date:   Thu Jan 15 17:35:57 2015 -0600

    Be less strict in which types of exceptions we catch.
    
    Using the change, we can also catch exceptions that do not just
    indicate that the solver has run out of iterations, but also
    exceptions that state that the underlying AztecOO solver from
    Trilinos has failed with this matrix.


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

e511a5b28dd147bcc2c84b0e92e1dac16eb5e719
 source/simulator/solver.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/simulator/solver.cc b/source/simulator/solver.cc
index 0c3cc90..4d29133 100644
--- a/source/simulator/solver.cc
+++ b/source/simulator/solver.cc
@@ -292,7 +292,7 @@ namespace aspect
             // if the solver fails, report the error from processor 0 with some additional
             // information about its location, and throw a quiet exception on all other
             // processors
-            catch (const SolverControl::NoConvergence &exc)
+            catch (const std::exception &exc)
               {
                 if (Utilities::MPI::this_mpi_process(src.block(0).get_mpi_communicator()) == 0)
                   AssertThrow (false,



More information about the CIG-COMMITS mailing list