From: buerg Date: Sun, 5 Jan 2014 23:39:01 +0000 (+0000) Subject: Fix bug in project_boundary_values_curl_conforming. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef2c44f9654ebe002a0b05e0a0ba44fb00622bd2;p=dealii-svn.git Fix bug in project_boundary_values_curl_conforming. git-svn-id: https://svn.dealii.org/trunk@32171 0785d39b-7218-0410-832d-ea1e28bc413d --- 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))) {