From: Martin Kronbichler Date: Sat, 28 Apr 2018 15:23:48 +0000 (+0200) Subject: Fix various compiler warnings. X-Git-Tag: v9.0.0-rc1~75^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7b2fd168a94aa4743e348c5c1feb7df0fb3a29a;p=dealii.git Fix various compiler warnings. --- 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