Commit 0ea25230 authored by Oliver Sander's avatar Oliver Sander
Browse files

[bugfix] Use method 'exists', instead of 'entry', as originally intended

I mixed up the names when writing the code.  It was always meant to be 'exists'.
No idea how that could ever work.
parent ce55ce07
......@@ -3,6 +3,7 @@
#include <memory>
#include <dune/common/shared_ptr.hh>
#include "dune/tnnmg/functionals/nonsmoothconvexfunctional.hh"
namespace Dune {
......
set(TESTS
normfunctionaltest
sumfunctionaltest
)
add_directory_test_target(_test_target)
......
......@@ -213,7 +213,7 @@ void testHessian(Functional& functional,
neighborValues[ii] = functional(neighborPoints[ii]);
// The current partial derivative
double derivative = hessian.entry(i,j) ? hessian[i][j][k][l] : 0.0;
double derivative = hessian.exists(i,j) ? hessian[i][j][k][l] : 0.0;
double finiteDiff = (neighborValues[0]
- neighborValues[1] - neighborValues[2]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment