From: hartmann Date: Thu, 10 Jul 2008 13:05:35 +0000 (+0000) Subject: Implement the component_mapping bugfix according to the implementation in the second... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47fbc2312dc60068224638bfce4d17792e7f6e7b;p=dealii-svn.git 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 --- 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 ||