From: Wolfgang Bangerth Date: Fri, 4 Sep 2020 17:08:31 +0000 (-0600) Subject: Use parentheses to make code easier to read. X-Git-Tag: v9.3.0-rc1~1131^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44918c7bbff17116d6064b9bcae9b54651c44d4a;p=dealii.git Use parentheses to make code easier to read. --- 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),