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,22 +1,27 @@
#include "createMesh.H" #include "createMesh.H"
IOdictionary filmDict dictionary filmDict;
IOobject io
( (
IOobject
(
"surfaceFilmProperties", "surfaceFilmProperties",
runTime.constant(), mesh.time().constant(),
runTime, mesh,
IOobject::MUST_READ, IOobject::READ_IF_PRESENT,
IOobject::NO_WRITE, IOobject::NO_WRITE,
false false
)
); );
const word filmRegionName = filmDict.get<word>("region"); if (io.typeHeaderOk<IOdictionary>())
{
IOdictionary propDict(io);
fvMesh filmMesh filmDict = std::move(propDict);
(
const word filmRegionName = filmDict.get<word>("region");
fvMesh filmMesh
(
IOobject IOobject
( (
filmRegionName, filmRegionName,
@ -24,4 +29,7 @@ fvMesh filmMesh
runTime, runTime,
IOobject::MUST_READ IOobject::MUST_READ
) )
); );
}