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

[Extern] Adjust to dune-tnnmg changes

parent 5ffb8bbb
No related branches found
No related tags found
No related merge requests found
......@@ -7,11 +7,9 @@
#include <dune/common/nullptr.hh>
#include <dune/common/parametertree.hh>
// Just for debugging
#include "dune/solvers/computeenergy.hh"
#include <dune/fufem/arithmetic.hh>
#include <dune/solvers/common/interval.hh>
#include <dune/solvers/computeenergy.hh>
#include <dune/tnnmg/problem-classes/bisection.hh>
#include "globalnonlinearity.hh"
......@@ -19,13 +17,6 @@
#include "mydirectionalconvexfunction.hh"
#include "ellipticenergy.hh"
/* Just for debugging */
template <class Matrix, class Vector>
double computeEnergy(Matrix const &A, Vector const &x, Vector const &b,
GlobalNonlinearity<Matrix, Vector> const &phi) {
return computeEnergy(A, x, b) + phi(x);
}
/** \brief Base class for problems where each block can be solved with a
* modified gradient method */
template <class ConvexProblem> class MyBlockProblem {
......@@ -73,6 +64,11 @@ template <class ConvexProblem> class MyBlockProblem {
return s;
}
double computeEnergy(const VectorType &v) const {
return 0.0; // FIXME
// return ::computeEnergy(problem_.A, v, problem_.f) + problem_.phi(v);
}
void projectCoarseCorrection(VectorType const &u,
typename Linearization::VectorType const &v,
VectorType &projected_v,
......
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