Commit 327cadda authored by Mike Kremer's avatar Mike Kremer
Browse files

Fixed minor issue.

git-svn-id: http://www.openflipper.org/svnrepo/CoMISo/trunk@182 1355f012-dd97-4b2f-ae87-10fa9f823a57
parent 44d9d2eb
......@@ -138,6 +138,8 @@ public:
// Do some status output here...
#endif
function_evaluated_ = true;
return y;
}
......@@ -146,7 +148,6 @@ public:
if(!function_evaluated_ || !use_tape_) {
// Evaluate original functional
eval_f(_x);
function_evaluated_ = true;
}
gradient(1, n_unknowns_, _x, _g);
......@@ -165,7 +166,6 @@ public:
if(!function_evaluated_ || !use_tape_) {
// Evaluate original functional
eval_f(_x);
function_evaluated_ = true;
}
if(sparse_hessian()) {
......
Markdown is supported
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