]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Do not run into an unused block of code 2077/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Mon, 18 Jan 2016 12:48:46 +0000 (13:48 +0100)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Mon, 18 Jan 2016 12:48:46 +0000 (13:48 +0100)
include/deal.II/matrix_free/fe_evaluation.h

index 1c94eb598fbbf99bb6b1b88571945fd30261425d..4fb283fb9bdd6cbd5fd44d1251a8670351e20c8c 100644 (file)
@@ -6020,9 +6020,11 @@ namespace internal
                 if (integrate_grad == true)
                   eval.template gradients<0,false,true> (gradients_quad[c][0], temp1);
                 eval.template values<1,false,false>(temp1, temp2);
-                eval.template values<0,false,false> (gradients_quad[c][d1], temp1);
                 if (integrate_grad == true)
-                  eval.template gradients<1,false,true>(temp1, temp2);
+                  {
+                    eval.template values<0,false,false> (gradients_quad[c][d1], temp1);
+                    eval.template gradients<1,false,true>(temp1, temp2);
+                  }
                 eval.template values<2,false,false> (temp2, values_dofs[c]);
               }
             else if (integrate_grad == true)

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.