From 47fbc2312dc60068224638bfce4d17792e7f6e7b Mon Sep 17 00:00:00 2001 From: hartmann Date: Thu, 10 Jul 2008 13:05:35 +0000 Subject: [PATCH] Implement the component_mapping bugfix according to the implementation in the second MatrixCreator::create_boundary_mass_matrix class. git-svn-id: https://svn.dealii.org/trunk@16444 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/numerics/matrices.cc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/deal.II/deal.II/source/numerics/matrices.cc b/deal.II/deal.II/source/numerics/matrices.cc index 0a731611ea..148f4d8cc9 100644 --- a/deal.II/deal.II/source/numerics/matrices.cc +++ b/deal.II/deal.II/source/numerics/matrices.cc @@ -945,10 +945,6 @@ MatrixCreator::create_boundary_mass_matrix (const Mapping &mapping, { const FiniteElement &fe = dof.get_fe(); const unsigned int n_components = fe.n_components(); - - if (component_mapping.size() == 0) - for (unsigned int i=0;i &mapping, Assert (boundary_functions.size() != 0, ExcInternalError()); Assert (dof_to_boundary_mapping.size() == dof.n_dofs(), ExcInternalError()); - AssertDimension (n_components, component_mapping.size()); + + if (component_mapping.size() == 0) + { + AssertDimension (n_components, boundary_functions.begin()->second->n_components); + for (unsigned int i=0;in_components==1 || -- 2.39.5