Commit 6dcb71c4 authored by Oliver Sander's avatar Oliver Sander
Browse files

Fix various copy'n'paste errors

parent 046bed0d
......@@ -131,7 +131,7 @@ void testGradient(Functional& functional,
if (std::abs(fdGradient - gradient[i][j]) > 100*eps)
{
std::cout << "Bug in addHessian for functional type " << Dune::className<Functional>() << ":" << std::endl;
std::cout << "Bug in addGradient for functional type " << Dune::className<Functional>() << ":" << std::endl;
std::cerr << "Gradient doesn't match FD approximation at coefficient (" << i << ", " << j << ")" << std::endl;
std::cerr << "Gradient: " << gradient[i][j] << ", FD: " << fdGradient << std::endl;
DUNE_THROW(MathError,"");
......@@ -232,14 +232,12 @@ void testHessian(Functional& functional,
/** \brief Test the directionalSubDiff method
*
* This method tests the Functional::addGradient method by comparing its result with a
* Finite-Difference-Approximation. Test points from the testPoints input argument
* are skipped if the method Functional::regularity returns a value larger than 1e6
* for them. In that case the functional is not differentiable at that point.
* This method tests the Functional::directionalSubDiff method by comparing its result with a
* Finite-Difference-Approximation.
*
* \tparam Functional Type of the functional to be tested
* \param functional The functional to be tested
* \param testPoints Test addGradient at these points
* \param testPoints Test directionalSubDiff at these points
*/
template <class Functional>
void testDirectionalSubdifferential(const Functional& functional,
......
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