Skip to content
Snippets Groups Projects
Commit 9221669c authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Comply with gcc 4.7

In particular, do not create references to temporaries
parent f0ad74cb
No related branches found
No related tags found
No related merge requests found
......@@ -4,9 +4,10 @@
#include <dune/common/fmatrix.hh>
#include <dune/fufem/interval.hh>
#include <dune/tectonic/mydirectionalconvexfunction.hh>
#include <dune/tnnmg/problem-classes/bisection.hh>
#include <dune/tectonic/mydirectionalconvexfunction.hh>
#include "compute_state.hh"
// The nonlinearity exp(-x)
......@@ -34,8 +35,11 @@ class DecayingExponential {
double compute_state_update_bisection(double h, double unorm, double L,
double old_state) {
DecayingExponential::VectorType const start(0);
DecayingExponential::VectorType const direction(1);
DecayingExponential const phi(h);
MyDirectionalConvexFunction<DecayingExponential> const J(
1.0, old_state - unorm / L, DecayingExponential(h), 0, 1);
1.0, old_state - unorm / L, phi, start, direction);
int bisectionsteps = 0;
Bisection const bisection(0.0, 1.0, 1e-12, true, 0); // TODO
return bisection.minimize(J, 0.0, 0.0, bisectionsteps); // TODO
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment