From 8a30a358e73b33d9cbc424343e3033d45dc5efe7 Mon Sep 17 00:00:00 2001 From: Elias Pipping <elias.pipping@fu-berlin.de> Date: Sat, 3 Dec 2011 19:27:56 +0100 Subject: [PATCH] Fix up after shared pointers --- dune/tectonic/samplefunctional.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dune/tectonic/samplefunctional.hh b/dune/tectonic/samplefunctional.hh index d2779321..a56354d2 100644 --- a/dune/tectonic/samplefunctional.hh +++ b/dune/tectonic/samplefunctional.hh @@ -29,10 +29,10 @@ template <int dim> class SampleFunctional { double operator()(SmallVector const &v) const { SmallVector y; - A.mv(v, y); // Av - y /= 2; // 1/2 Av - y -= b; // 1/2 Av - b - return y * v + *phi(v); // <1/2 Av - b,v> + H(|v|) + A.mv(v, y); // Av + y /= 2; // 1/2 Av + y -= b; // 1/2 Av - b + return y * v + (*phi)(v); // <1/2 Av - b,v> + H(|v|) } bool descentDirection(SmallVector const x, SmallVector &ret) const { -- GitLab