Skip to content
Snippets Groups Projects

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

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -376,7 +376,7 @@ Foam::scalar Foam::updateMethod::computeMeritFunction()
Foam::scalar Foam::updateMethod::meritFunctionDirectionalDerivative()
{
return sum(objectiveDerivatives_*correction_);
return globalSum(objectiveDerivatives_*correction_);
}
Loading