]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Do not set bound for next loop round at last item.
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 18 May 2018 13:17:36 +0000 (15:17 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 18 May 2018 13:17:36 +0000 (15:17 +0200)
include/deal.II/matrix_free/fe_evaluation.h

index 0786ccd5c8bfea7e3d8ac54fc08d94f27a5aabb7..016e7006a86f6f2e01eb246feda0609395cacbe5 100644 (file)
@@ -3942,7 +3942,7 @@ FEEvaluationBase<dim,n_components_,Number,is_face>
                                          values_dofs[comp][ind_local][v]);
                 }
 
-              if (apply_constraints == true)
+              if (apply_constraints == true && comp+1<n_components)
                 {
                   if (is_face)
                     next_index_indicators = dof_info->row_starts[cells[v]*n_fe_components+first_selected_component+comp+2].second;

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.