From c7b2fd168a94aa4743e348c5c1feb7df0fb3a29a Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Sat, 28 Apr 2018 17:23:48 +0200 Subject: [PATCH] Fix various compiler warnings. --- include/deal.II/matrix_free/fe_evaluation.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/deal.II/matrix_free/fe_evaluation.h b/include/deal.II/matrix_free/fe_evaluation.h index 92ed485e09..63431cbf58 100644 --- a/include/deal.II/matrix_free/fe_evaluation.h +++ b/include/deal.II/matrix_free/fe_evaluation.h @@ -3716,7 +3716,7 @@ FEEvaluationBase VectorizedArray **values_dofs = const_cast * *>(&this->values_dofs[0]); - unsigned int cells_copied[VectorizedArray::n_array_elements]; + unsigned int cells_copied[n_vectorization]; const unsigned int *cells; unsigned int n_vectorization_actual = dof_info->n_vectorization_lanes_filled[dof_access_index][cell]; @@ -3741,6 +3741,8 @@ FEEvaluationBase dof_info->row_starts[cells[v]*n_fe_components+first_selected_component].second; dof_indices[v] = &dof_info->dof_indices[dof_info->row_starts[cells[v]*n_fe_components+first_selected_component].first]; } + for (unsigned int v=n_vectorization_actual; v has_constraints = true; dof_indices[v] = &dof_info->dof_indices[dof_info->row_starts[(cell*n_vectorization+v)*n_fe_components+first_selected_component].first]; } + for (unsigned int v=n_vectorization_actual; v for (unsigned int v=0; v::n_array_elements+v] + dof_info->component_dof_indices_offset[active_fe_index][first_selected_component]; + for (unsigned int v=vectorization_populated; v::n_array_elements; ++v) + dof_indices[v] = numbers::invalid_unsigned_int; // In the case with contiguous cell indices, we know that there are no // constraints and that the indices within each element are contiguous -- 2.39.5