From f0db83bcd7a96ba17f1256eb5065a07c34429923 Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 3 Jul 2000 12:48:14 +0000 Subject: [PATCH] Dont use AssertThrow when throwing exceptions that are specified in the documentation. Rather use throw, as the latter throws an exception that can be caught (as does the first command) but without the output of exception text to stderr. Clearly, error is not needed here as we *expect* the exception to be thrown in some cases. git-svn-id: https://svn.dealii.org/trunk@3123 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/fe/fe_lib.cubic.cc | 2 +- deal.II/deal.II/source/fe/fe_lib.dgp1.cc | 2 +- deal.II/deal.II/source/fe/fe_lib.dgp2.cc | 2 +- deal.II/deal.II/source/fe/fe_lib.dgp3.cc | 2 +- deal.II/deal.II/source/fe/fe_lib.linear.cc | 2 +- deal.II/deal.II/source/fe/fe_lib.quadratic.cc | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/deal.II/deal.II/source/fe/fe_lib.cubic.cc b/deal.II/deal.II/source/fe/fe_lib.cubic.cc index 8e896aae4f..a1913c760d 100644 --- a/deal.II/deal.II/source/fe/fe_lib.cubic.cc +++ b/deal.II/deal.II/source/fe/fe_lib.cubic.cc @@ -11388,7 +11388,7 @@ FEQ3<3>::get_local_mass_matrix (const DoFHandler<3>::cell_iterator &, Assert (local_mass_matrix.m() == dofs_per_cell, ExcWrongFieldDimension(local_mass_matrix.m(),dofs_per_cell)); - AssertThrow (false, ExcComputationNotUseful(3)); + throw ExcComputationNotUseful(3); }; diff --git a/deal.II/deal.II/source/fe/fe_lib.dgp1.cc b/deal.II/deal.II/source/fe/fe_lib.dgp1.cc index fb40f756fa..86cd4e655a 100644 --- a/deal.II/deal.II/source/fe/fe_lib.dgp1.cc +++ b/deal.II/deal.II/source/fe/fe_lib.dgp1.cc @@ -329,7 +329,7 @@ void FEDG_P1<3>::get_local_mass_matrix (const DoFHandler<3>::cell_iterator &, Assert (local_mass_matrix.m() == dofs_per_cell, ExcWrongFieldDimension(local_mass_matrix.m(),dofs_per_cell)); - AssertThrow (false, ExcComputationNotUseful(3)); + throw ExcComputationNotUseful(3); }; diff --git a/deal.II/deal.II/source/fe/fe_lib.dgp2.cc b/deal.II/deal.II/source/fe/fe_lib.dgp2.cc index 223ddaa531..7b28e1349e 100644 --- a/deal.II/deal.II/source/fe/fe_lib.dgp2.cc +++ b/deal.II/deal.II/source/fe/fe_lib.dgp2.cc @@ -312,7 +312,7 @@ void FEDG_P2<3>::get_local_mass_matrix (const DoFHandler<3>::cell_iterator &, Assert (local_mass_matrix.m() == dofs_per_cell, ExcWrongFieldDimension(local_mass_matrix.m(),dofs_per_cell)); - AssertThrow (false, ExcComputationNotUseful(3)); + throw ExcComputationNotUseful(3); }; diff --git a/deal.II/deal.II/source/fe/fe_lib.dgp3.cc b/deal.II/deal.II/source/fe/fe_lib.dgp3.cc index 87774d197d..3077959616 100644 --- a/deal.II/deal.II/source/fe/fe_lib.dgp3.cc +++ b/deal.II/deal.II/source/fe/fe_lib.dgp3.cc @@ -323,7 +323,7 @@ void FEDG_P3<3>::get_local_mass_matrix (const DoFHandler<3>::cell_iterator &, Assert (local_mass_matrix.m() == dofs_per_cell, ExcWrongFieldDimension(local_mass_matrix.m(),dofs_per_cell)); - AssertThrow (false, ExcComputationNotUseful(3)); + throw ExcComputationNotUseful(3); }; diff --git a/deal.II/deal.II/source/fe/fe_lib.linear.cc b/deal.II/deal.II/source/fe/fe_lib.linear.cc index 37906ffe41..7d87fcc155 100644 --- a/deal.II/deal.II/source/fe/fe_lib.linear.cc +++ b/deal.II/deal.II/source/fe/fe_lib.linear.cc @@ -839,7 +839,7 @@ void FEQ1<3>::get_local_mass_matrix (const DoFHandler<3>::cell_iterator &, Assert (local_mass_matrix.m() == dofs_per_cell, ExcWrongFieldDimension(local_mass_matrix.m(),dofs_per_cell)); - AssertThrow (false, ExcComputationNotUseful(3)); + throw ExcComputationNotUseful(3); }; diff --git a/deal.II/deal.II/source/fe/fe_lib.quadratic.cc b/deal.II/deal.II/source/fe/fe_lib.quadratic.cc index 229af02ed4..16cc49675a 100644 --- a/deal.II/deal.II/source/fe/fe_lib.quadratic.cc +++ b/deal.II/deal.II/source/fe/fe_lib.quadratic.cc @@ -2802,7 +2802,7 @@ void FEQ2<3>::get_local_mass_matrix (const DoFHandler<3>::cell_iterator &, Assert (local_mass_matrix.m() == dofs_per_cell, ExcWrongFieldDimension(local_mass_matrix.m(),dofs_per_cell)); - AssertThrow (false, ExcComputationNotUseful(3)); + throw ExcComputationNotUseful(3); }; -- 2.39.5