From ef2c44f9654ebe002a0b05e0a0ba44fb00622bd2 Mon Sep 17 00:00:00 2001 From: buerg Date: Sun, 5 Jan 2014 23:39:01 +0000 Subject: [PATCH] Fix bug in project_boundary_values_curl_conforming. git-svn-id: https://svn.dealii.org/trunk@32171 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/numerics/vector_tools.templates.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deal.II/include/deal.II/numerics/vector_tools.templates.h b/deal.II/include/deal.II/numerics/vector_tools.templates.h index 13b1ffff0f..5aa1bb3c9d 100644 --- a/deal.II/include/deal.II/numerics/vector_tools.templates.h +++ b/deal.II/include/deal.II/numerics/vector_tools.templates.h @@ -2885,7 +2885,7 @@ namespace VectorTools fe_index_old = fe_index; fe_index += fe.element_multiplicity (i) * fe.base_element (i).n_components (); - if (fe_index >= first_vector_component) + if (fe_index > first_vector_component) break; } @@ -2946,8 +2946,8 @@ namespace VectorTools && (fe.base_element (base_indices.first).face_to_cell_index (line * fe.degree, face) <= fe.system_to_base_index (fe.face_to_cell_index (i, face)).second) && (fe.system_to_base_index (fe.face_to_cell_index (i, face)).second - <= fe.base_element (base_indices.first).face_to_cell_index - ((line + 1) * fe.degree - 1, face))) + < fe.base_element (base_indices.first).face_to_cell_index + ((line + 1) * fe.degree, face))) || ((dynamic_cast*> (&fe) != 0) && (line * fe.degree <= i) && (i < (line + 1) * fe.degree))) { -- 2.39.5