mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: collated: threaded writing accesses out-of-scope. Fixes #2257.
This commit is contained in:
committed by
Mark Olesen
parent
08e66a64e1
commit
227b3976ba
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user