]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Silence compiler warning
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 7 Feb 2014 12:52:34 +0000 (12:52 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 7 Feb 2014 12:52:34 +0000 (12:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@32430 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/matrix_free/fe_evaluation.h

index 425175f5afb45dd6be747322acad7ab3ff86162d..cc564b72b3d07e2fc0c4ca33629f07afdf1bf9fe 100644 (file)
@@ -5100,8 +5100,9 @@ namespace internal
                   fe_eval.template apply_gradients<0,false,false>
                   (fe_eval.gradients_quad[c][0], temp1);
               }
-            fe_eval.template apply_values<1,false,false>
-            (temp1, temp2);
+            if (integrate_val || integrate_grad)
+              fe_eval.template apply_values<1,false,false>
+                (temp1, temp2);
             if (integrate_grad == true)
               {
                 // grad y: can sum to temporary x value in temp2
@@ -5110,8 +5111,9 @@ namespace internal
                 fe_eval.template apply_gradients<1,false,true>
                 (temp1, temp2);
               }
-            fe_eval.template apply_values<2,false,false>
-            (temp2, fe_eval.values_dofs[c]);
+            if (integrate_val || integrate_grad)
+              fe_eval.template apply_values<2,false,false>
+                (temp2, fe_eval.values_dofs[c]);
             if (integrate_grad == true)
               {
                 // grad z: can sum to temporary x and y value in output
@@ -5141,8 +5143,9 @@ namespace internal
                   fe_eval.template apply_gradients<0,false,false>
                   (fe_eval.gradients_quad[c][0], temp1);
               }
-            fe_eval.template apply_values<1,false,false>
-            (temp1, fe_eval.values_dofs[c]);
+            if (integrate_val || integrate_grad)
+              fe_eval.template apply_values<1,false,false>
+                (temp1, fe_eval.values_dofs[c]);
             if (integrate_grad == true)
               {
                 // grad y

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.