Skip to content
Snippets Groups Projects
Commit 664bca1e authored by Vaggelis Papoutsis's avatar Vaggelis Papoutsis
Browse files

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

Does not affect the current functionality of shape optimisation.
parent ac98e498
No related branches found
No related tags found
No related merge requests found
...@@ -376,7 +376,7 @@ Foam::scalar Foam::updateMethod::computeMeritFunction() ...@@ -376,7 +376,7 @@ Foam::scalar Foam::updateMethod::computeMeritFunction()
Foam::scalar Foam::updateMethod::meritFunctionDirectionalDerivative() Foam::scalar Foam::updateMethod::meritFunctionDirectionalDerivative()
{ {
return sum(objectiveDerivatives_*correction_); return globalSum(objectiveDerivatives_*correction_);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment