]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix bug in project_boundary_values_curl_conforming.
authorMarkus Buerg <buerg@math.tamu.edu>
Sun, 5 Jan 2014 23:39:01 +0000 (23:39 +0000)
committerMarkus Buerg <buerg@math.tamu.edu>
Sun, 5 Jan 2014 23:39:01 +0000 (23:39 +0000)
git-svn-id: https://svn.dealii.org/trunk@32171 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/numerics/vector_tools.templates.h

index 13b1ffff0fefcf7c8ebdf4661c425f6166456391..5aa1bb3c9df216ac58abc84b7194578be55e6599 100644 (file)
@@ -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<const FE_Nedelec<dim>*> (&fe) != 0) && (line * fe.degree <= i)
                     && (i < (line + 1) * fe.degree)))
               {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.