From a52c9448ac6de2d3cce7269140c5436c7d61d2b9 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Mon, 18 Jan 2016 13:48:46 +0100 Subject: [PATCH] Do not run into an unused block of code --- include/deal.II/matrix_free/fe_evaluation.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/deal.II/matrix_free/fe_evaluation.h b/include/deal.II/matrix_free/fe_evaluation.h index 1c94eb598f..4fb283fb9b 100644 --- a/include/deal.II/matrix_free/fe_evaluation.h +++ b/include/deal.II/matrix_free/fe_evaluation.h @@ -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) -- 2.39.5