Skip to content
Snippets Groups Projects
Commit 7ffa36df authored by Vaggelis Papoutsis's avatar Vaggelis Papoutsis Committed by Andrew Heather
Browse files

BUG: globalSum needed in the merit functions' directional derivative (fixes #1949)

Does not affect the current functionality of shape optimisation.
parent 5d3f355d
Branches
Tags
......@@ -376,7 +376,7 @@ Foam::scalar Foam::updateMethod::computeMeritFunction()
Foam::scalar Foam::updateMethod::meritFunctionDirectionalDerivative()
{
return sum(objectiveDerivatives_*correction_);
return globalSum(objectiveDerivatives_*correction_);
}
......
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