From f085545e68f19c2f41e26be388978a6c90127116 Mon Sep 17 00:00:00 2001 From: hartmann Date: Mon, 9 Aug 1999 15:56:24 +0000 Subject: [PATCH] Make get_interpolated_dof_values aware of FEs with additive restriction. git-svn-id: https://svn.dealii.org/trunk@1648 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/dofs/dof_accessor.cc | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/deal.II/deal.II/source/dofs/dof_accessor.cc b/deal.II/deal.II/source/dofs/dof_accessor.cc index b02207d5cf..7689fcd553 100644 --- a/deal.II/deal.II/source/dofs/dof_accessor.cc +++ b/deal.II/deal.II/source/dofs/dof_accessor.cc @@ -680,6 +680,9 @@ DoFCellAccessor::get_interpolated_dof_values (const Vector &values, interpolated_values.clear (); + const bool restriction_is_additive + = dof_handler->get_fe().restriction_is_additive; + for (unsigned int child=0; child::children_per_cell; ++child) { @@ -699,9 +702,17 @@ DoFCellAccessor::get_interpolated_dof_values (const Vector &values, // end in adding up the contribution // from nodes on boundaries of // children more than once. - for (unsigned int i=0; i