STYLE: prefer REGISTER/NO_REGISTER instead of true/false for IOobject

- self-documenting
This commit is contained in:
Mark Olesen
2023-03-10 13:44:46 +00:00
parent 20566a87f5
commit 25bc7d65f7
333 changed files with 706 additions and 740 deletions

View File

@ -59,7 +59,7 @@ Foam::IOPtrList<Foam::entry> Foam::boundaryInfo::readBoundaryDict
runTime,
IOobject::MUST_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
)
);
@ -75,8 +75,7 @@ Foam::IOPtrList<Foam::entry> Foam::boundaryInfo::readBoundaryDict
if (!procPatch)
{
label nFaces = dict.get<label>("nFaces");
reduce(nFaces, sumOp<label>());
if (nFaces == 0)
if (returnReduceAnd(nFaces == 0))
{
addPatch = false;
}

View File

@ -108,7 +108,7 @@ Foam::dictionary Foam::solverTemplate::readFluidFieldTemplates
runTime,
IOobject::MUST_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
)
);