]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use a single if block 3461/head
authorKarl Ljungkvist <k.ljungkvist@gmail.com>
Fri, 4 Nov 2016 18:30:45 +0000 (19:30 +0100)
committerGitHub <noreply@github.com>
Fri, 4 Nov 2016 18:30:45 +0000 (19:30 +0100)
Fix warning from PVS about two if blocks with identical condition. Fixes #3369.

include/deal.II/matrix_free/mapping_info.templates.h

index 6a254214d57b1844d76db5370bfc86c511147d0d..7923a53a6fca3e0b1a0709884f3598c1865de000 100644 (file)
@@ -389,9 +389,10 @@ namespace internal
                           if (update_flags & update_JxW_values)
                             current_data.JxW_values.reserve (reserve_size);
                           if (update_flags & update_jacobian_grads)
-                            current_data.jacobians_grad_diag.reserve (reserve_size);
-                          if (update_flags & update_jacobian_grads)
-                            current_data.jacobians_grad_upper.reserve (reserve_size);
+                            {
+                              current_data.jacobians_grad_diag.reserve (reserve_size);
+                              current_data.jacobians_grad_upper.reserve (reserve_size);
+                            }
                         }
                     }
 

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.