From cbed2823551ee8719e46502f147cdae145faa11c Mon Sep 17 00:00:00 2001 From: Elias Pipping <elias.pipping@fu-berlin.de> Date: Fri, 3 Aug 2012 20:18:39 +0200 Subject: [PATCH] Clearer --- dune/tectonic/ellipticenergy.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dune/tectonic/ellipticenergy.hh b/dune/tectonic/ellipticenergy.hh index 5231d91f..89b403e2 100644 --- a/dune/tectonic/ellipticenergy.hh +++ b/dune/tectonic/ellipticenergy.hh @@ -39,6 +39,7 @@ template <int dim> class EllipticEnergy { // If there is a direction of descent, this is it SmallVector d; smoothGradient(x, d); + d *= -1; Interval<double> D; phi->directionalSubDiff(x, d, D); @@ -48,7 +49,6 @@ template <int dim> class EllipticEnergy { if (combinedDecline < 0) { ret = d; - ret *= -1; } else { ret = 0; } -- GitLab