BUG: Making surfaceFilmProperties optional for postProcessing. Fixes #2372

This commit is contained in:
sergio
2022-04-13 15:55:29 -07:00
parent 6ff486e55b
commit 02b8862de7

View File

@ -1,18 +1,23 @@
#include "createMesh.H"
IOdictionary filmDict
(
IOobject
dictionary filmDict;
IOobject io
(
"surfaceFilmProperties",
runTime.constant(),
runTime,
IOobject::MUST_READ,
mesh.time().constant(),
mesh,
IOobject::READ_IF_PRESENT,
IOobject::NO_WRITE,
false
)
);
if (io.typeHeaderOk<IOdictionary>())
{
IOdictionary propDict(io);
filmDict = std::move(propDict);
const word filmRegionName = filmDict.get<word>("region");
fvMesh filmMesh
@ -25,3 +30,6 @@ fvMesh filmMesh
IOobject::MUST_READ
)
);
}