From 26d0f85e12b564debfd05212b9b3c76bd9cee0f8 Mon Sep 17 00:00:00 2001 From: Elias Pipping <elias.pipping@fu-berlin.de> Date: Sun, 1 Sep 2013 23:09:47 +0200 Subject: [PATCH] [Cleanup] Use computeEnergy() --- dune/tectonic/ellipticenergy.hh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dune/tectonic/ellipticenergy.hh b/dune/tectonic/ellipticenergy.hh index af295f83..d423025c 100644 --- a/dune/tectonic/ellipticenergy.hh +++ b/dune/tectonic/ellipticenergy.hh @@ -23,10 +23,7 @@ template <size_t dim> class EllipticEnergy { : A(A), b(b), phi(phi), ignore(ignore) {} double operator()(SmallVector const &v) const { - SmallVector y(0); - Arithmetic::addProduct(y, 0.5, A, v); - y -= b; - return y * v + (*phi)(v); + return computeEnergy(A, v, b) + (*phi)(v); } SmallMatrix const &A; -- GitLab