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

Kill debug output

parent 73c3bbea
No related branches found
No related tags found
No related merge requests found
...@@ -37,28 +37,6 @@ void descentMinimisation(Functional const &J, ...@@ -37,28 +37,6 @@ void descentMinimisation(Functional const &J,
2.0 * computeEnergy(J.A, v), JRestb, *J.phi, x, v); 2.0 * computeEnergy(J.A, v), JRestb, *J.phi, x, v);
// }}} // }}}
{ // Debug
Interval<double> D;
JRest.subDiff(0, D);
dverb
<< "## Directional derivative (as per subdifferential of restriction): "
<< D[1] << " (coordinates of the restriction)" << std::endl;
/*
It is possible that this differs quite a lot from the
directional derivative computed in the descentDirection()
method:
If phi is nonsmooth at x, so that the directional
derivatives jump, and |x| is computed to be too small or too
large globally or locally, the locally computed
subdifferential and the globally computed subdifferential
will no longer coincide!
The assertion D[1] <= 0 may thus fail.
*/
}
int count; int count;
double const stepsize = bisection.minimize(JRest, 0.0, 0.0, count); double const stepsize = bisection.minimize(JRest, 0.0, 0.0, count);
dverb << "Number of iterations in the bisection method: " << count dverb << "Number of iterations in the bisection method: " << count
......
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