From: bangerth Date: Thu, 30 Jun 2011 00:01:47 +0000 (+0000) Subject: Replace two naked 'throw ExcInternalError()' by the corresponding AssertThrow so... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79eeeb8cb2a0e004c1bf7fa415425e8a1b322812;p=dealii-svn.git Replace two naked 'throw ExcInternalError()' by the corresponding AssertThrow so that we get location information printed in the output. git-svn-id: https://svn.dealii.org/trunk@23886 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/distributed/tria.cc b/deal.II/source/distributed/tria.cc index 109526a01c..47191ee625 100644 --- a/deal.II/source/distributed/tria.cc +++ b/deal.II/source/distributed/tria.cc @@ -1374,7 +1374,7 @@ namespace break; } default: - throw ExcInternalError(); + AssertThrow (false, ExcInternalError()); } } } diff --git a/deal.II/source/lac/petsc_vector_base.cc b/deal.II/source/lac/petsc_vector_base.cc index 902c1906fe..30b6a33ed9 100644 --- a/deal.II/source/lac/petsc_vector_base.cc +++ b/deal.II/source/lac/petsc_vector_base.cc @@ -1156,7 +1156,7 @@ namespace PETScWrappers // generate an error for not ghosted // vectors if (!ghosted) - throw ExcInternalError(); + AssertThrow (false, ExcInternalError()); int ierr;