BUG: collated: threaded writing accesses out-of-scope. Fixes #2257.

This commit is contained in:
Mattijs Janssens
2021-11-02 14:26:30 +00:00
committed by Mark Olesen
parent 08e66a64e1
commit 227b3976ba
15 changed files with 70 additions and 35 deletions

View File

@ -141,7 +141,7 @@ void Foam::decomposedBlockData::writeHeader
const string& note,
const fileName& location,
const word& objectName,
const dictionary* extraEntries
const dictionary& extraEntries
)
{
if (IOobject::bannerEnabled())
@ -161,9 +161,9 @@ void Foam::decomposedBlockData::writeHeader
objectName
);
if (extraEntries)
if (!extraEntries.empty())
{
extraEntries->writeEntries(os);
extraEntries.writeEntries(os);
}
os.endBlock();