Skip to content

Commit

Permalink
Fix compilation error in Clang.
Browse files Browse the repository at this point in the history
  • Loading branch information
PetterS committed Oct 27, 2013
1 parent 64fd534 commit 52093bc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_suite_newton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ double run_test_with_factorization_method(double* var, Solver* solver)
return f.evaluate();
}

class Powell3D;

template<typename Functor, int dimension>
double run_test(double* var, Solver* solver_input = 0)
{
Expand All @@ -97,7 +95,8 @@ double run_test(double* var, Solver* solver_input = 0)
//--------------------
//TODO: Investigate further.
//
if (typeid(Functor) == typeid(Powell3D)) {
std::string functor_name = typeid(Functor).name();
if (functor_name.find("Powell3D") != std::string::npos) {
solver->gradient_tolerance = 1e-1;
}
//--------------------
Expand Down

0 comments on commit 52093bc

Please sign in to comment.