From 44918c7bbff17116d6064b9bcae9b54651c44d4a Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 4 Sep 2020 11:08:31 -0600 Subject: [PATCH] Use parentheses to make code easier to read. --- include/deal.II/fe/fe_poly.templates.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/include/deal.II/fe/fe_poly.templates.h b/include/deal.II/fe/fe_poly.templates.h index cf88f802a7..b7fd95abe7 100644 --- a/include/deal.II/fe/fe_poly.templates.h +++ b/include/deal.II/fe/fe_poly.templates.h @@ -293,15 +293,16 @@ FE_Poly::fill_fe_values( // transform gradients and higher derivatives. there is nothing to do // for values since we already emplaced them into output_data when // we were in get_data() - if (flags & update_gradients && - cell_similarity != CellSimilarity::translation) + if ((flags & update_gradients) && + (cell_similarity != CellSimilarity::translation)) for (unsigned int k = 0; k < this->n_dofs_per_cell(); ++k) mapping.transform(make_array_view(fe_data.shape_gradients, k), mapping_covariant, mapping_internal, make_array_view(output_data.shape_gradients, k)); - if (flags & update_hessians && cell_similarity != CellSimilarity::translation) + if ((flags & update_hessians) && + (cell_similarity != CellSimilarity::translation)) { for (unsigned int k = 0; k < this->n_dofs_per_cell(); ++k) mapping.transform(make_array_view(fe_data.shape_hessians, k), @@ -313,8 +314,8 @@ FE_Poly::fill_fe_values( correct_hessians(output_data, mapping_data, quadrature.size()); } - if (flags & update_3rd_derivatives && - cell_similarity != CellSimilarity::translation) + if ((flags & update_3rd_derivatives) && + (cell_similarity != CellSimilarity::translation)) { for (unsigned int k = 0; k < this->n_dofs_per_cell(); ++k) mapping.transform(make_array_view(fe_data.shape_3rd_derivatives, k), -- 2.39.5