Skip to content
Snippets Groups Projects

BUG: Wrong First extrapolated value of the merit function (fixes #1948)

Merged Vaggelis Papoutsis requested to merge bug-1948-wrong-first-merit-function-value into master
Compare and
1 file
+ 3
3
Preferences
Compare changes
@@ -175,9 +175,6 @@ void optimisationType::update()
void optimisationType::update(scalarField& direction)
{
// Compute eta if needed
computeEta(direction);
// Multiply with line search step, if necessary
scalarField correction(direction);
if (lineSearch_.valid())
@@ -218,6 +215,9 @@ tmp<scalarField> optimisationType::computeDirection()
scalarField& correction = tcorrection.ref();
correction = updateMethod_->returnCorrection();
// Compute eta if needed
computeEta(correction);
return tcorrection;
}