]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use parentheses to make code easier to read. 10893/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 4 Sep 2020 17:08:31 +0000 (11:08 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 4 Sep 2020 17:08:31 +0000 (11:08 -0600)
include/deal.II/fe/fe_poly.templates.h

index cf88f802a73cb8db4f5a7d6c23d23fb47dfb6044..b7fd95abe794c06b8a3319c2727c69f0ab1daa6c 100644 (file)
@@ -293,15 +293,16 @@ FE_Poly<dim, spacedim>::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<dim, spacedim>::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),

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.