diff --git a/src/one-body-sample.cc b/src/one-body-sample.cc index 860ed695c0f877089648ca44cd06c1163b562614..06d8b63f62a553edeb4961afc90388922c6c5052 100644 --- a/src/one-body-sample.cc +++ b/src/one-body-sample.cc @@ -205,11 +205,11 @@ class DecayingExponential { double compute_state_update_bisection(double h, double unorm, double L, double old_state) { - MyDirectionalConvexFunction<DecayingExponential> const Jplus( + MyDirectionalConvexFunction<DecayingExponential> const J( 1.0 / h, (old_state - unorm / L) / h, DecayingExponential(), 0, 1); int bisectionsteps = 0; - Bisection const bisection(0.0, 1.0, 1e-12, true, 0); // TODO - return bisection.minimize(Jplus, 0.0, 0.0, bisectionsteps); + Bisection const bisection(0.0, 1.0, 1e-12, true, 0); // TODO + return bisection.minimize(J, 0.0, 0.0, bisectionsteps); // TODO } double compute_state_update_lambert(double h, double unorm, double L,