mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: binModels: ensure main processor writes out binned data (fixes #2530)
This commit is contained in:
@ -183,6 +183,11 @@ bool Foam::binModels::singleDirectionUniformBin::processField
|
||||
}
|
||||
}
|
||||
|
||||
for (auto& binList : data)
|
||||
{
|
||||
reduce(binList, sumOp<List<Type>>());
|
||||
}
|
||||
|
||||
if (writeToFile())
|
||||
{
|
||||
writeBinnedData(data, filePtrs_[fieldi]);
|
||||
|
||||
@ -166,6 +166,11 @@ bool Foam::binModels::uniformBin::processField(const label fieldi)
|
||||
}
|
||||
}
|
||||
|
||||
for (auto& binList : data)
|
||||
{
|
||||
reduce(binList, sumOp<List<Type>>());
|
||||
}
|
||||
|
||||
if (writeToFile())
|
||||
{
|
||||
writeBinnedData(data, filePtrs_[fieldi]);
|
||||
|
||||
Reference in New Issue
Block a user