From e20e90171f8215b8d348e4cbc4977a2041cba417 Mon Sep 17 00:00:00 2001 From: hartmann Date: Thu, 10 Jul 2008 13:10:39 +0000 Subject: [PATCH] Move assertion to corresponding place. git-svn-id: https://svn.dealii.org/trunk@16445 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/numerics/matrices.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/deal.II/deal.II/source/numerics/matrices.cc b/deal.II/deal.II/source/numerics/matrices.cc index 148f4d8cc9..d5053bbd67 100644 --- a/deal.II/deal.II/source/numerics/matrices.cc +++ b/deal.II/deal.II/source/numerics/matrices.cc @@ -952,7 +952,10 @@ MatrixCreator::create_boundary_mass_matrix (const Mapping &mapping, Assert (matrix.n() == rhs_vector.size(), ExcInternalError()); Assert (boundary_functions.size() != 0, ExcInternalError()); Assert (dof_to_boundary_mapping.size() == dof.n_dofs(), - ExcInternalError()); + ExcInternalError()); + Assert (coefficient ==0 || + coefficient->n_components==1 || + coefficient->n_components==n_components, ExcComponentMismatch()); if (component_mapping.size() == 0) { @@ -963,10 +966,6 @@ MatrixCreator::create_boundary_mass_matrix (const Mapping &mapping, else AssertDimension (n_components, component_mapping.size()); - Assert (coefficient ==0 || - coefficient->n_components==1 || - coefficient->n_components==n_components, ExcComponentMismatch()); - const unsigned int n_threads = multithread_info.n_default_threads; Threads::ThreadGroup<> threads; -- 2.39.5