From b0f41a5b34b07ce084d60a86afe7f19789fd2e32 Mon Sep 17 00:00:00 2001
From: kronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Date: Fri, 7 Feb 2014 12:52:34 +0000
Subject: [PATCH] Silence compiler warning

git-svn-id: https://svn.dealii.org/trunk@32430 0785d39b-7218-0410-832d-ea1e28bc413d
---
 .../include/deal.II/matrix_free/fe_evaluation.h   | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/deal.II/include/deal.II/matrix_free/fe_evaluation.h b/deal.II/include/deal.II/matrix_free/fe_evaluation.h
index 425175f5af..cc564b72b3 100644
--- a/deal.II/include/deal.II/matrix_free/fe_evaluation.h
+++ b/deal.II/include/deal.II/matrix_free/fe_evaluation.h
@@ -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
-- 
2.39.5