Skip to content
Snippets Groups Projects
Commit cfde0d67 authored by Andrew Heather's avatar Andrew Heather
Browse files

Merge branch 'bug-1949-globalSum-in-derivative-of-merit-function' into 'master'

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

Closes #1949

See merge request !403
parents 5d3f355d 7ffa36df
Branches
Tags
1 merge request!403BUG: globalSum needed in the merit functions' directional derivative (fixes #1949)
...@@ -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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment