diff --git a/dune/tectonic/curvedfunction.hh b/dune/tectonic/circularconvexfunction.hh similarity index 81% rename from dune/tectonic/curvedfunction.hh rename to dune/tectonic/circularconvexfunction.hh index 6919ee4948a401ce5599873e8b0bf66cf49578e0..8e64cc6d2c737a69c3e9f2aa139fa9a2d4955cd6 100644 --- a/dune/tectonic/curvedfunction.hh +++ b/dune/tectonic/circularconvexfunction.hh @@ -1,18 +1,18 @@ -#ifndef CURVED_FUNCTION_HH -#define CURVED_FUNCTION_HH +#ifndef CIRCULAR_CONVEX_FUNCTION_HH +#define CIRCULAR_CONVEX_FUNCTION_HH #include <cmath> #include <dune/fufem/interval.hh> namespace Dune { -template <class NonlinearityType> class CurvedFunction { +template <class NonlinearityType> class CircularConvexFunction { typedef typename NonlinearityType::VectorType VectorType; typedef typename NonlinearityType::MatrixType MatrixType; public: - CurvedFunction(MatrixType const &A, VectorType const &b, - NonlinearityType const &phi, VectorType const &x, - VectorType const &dir) + CircularConvexFunction(MatrixType const &A, VectorType const &b, + NonlinearityType const &phi, VectorType const &x, + VectorType const &dir) : A(A), b(b), phi(phi), x(x), dir(dir) {} double quadraticPart() const { return 0; } diff --git a/dune/tectonic/samplefunctional.hh b/dune/tectonic/samplefunctional.hh index b80bde693043061ced124f920b42a2ab336fa7d2..04cb2dbd1b5decf2fceb9d58766952e1478cd0d9 100644 --- a/dune/tectonic/samplefunctional.hh +++ b/dune/tectonic/samplefunctional.hh @@ -10,7 +10,7 @@ #include "mydirectionalconvexfunction.hh" #include "localnonlinearity.hh" -#include "curvedfunction.hh" +#include "circularconvexfunction.hh" namespace Dune { template <int dim> class SampleFunctional { @@ -197,7 +197,8 @@ void minimise(Functional const J, typename Functional::SmallVector &x, Bisection slowBisection(bisection); slowBisection.setFastQuadratic(false); - CurvedFunction<LocalNonlinearityType> JRest(J.A, J.b, *J.phi, x, descDir); + CircularConvexFunction<LocalNonlinearityType> JRest(J.A, J.b, *J.phi, x, + descDir); int count; double const stepsize = slowBisection.minimize(JRest, 0.0, 1.0, count);