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

@ -83,7 +83,7 @@ Foam::probes::getOrLoadField(const word& fieldName) const
mesh_,
IOobject::MUST_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
mesh_
)

View File

@ -53,7 +53,7 @@ Foam::sampledSets::getOrLoadField(const word& fieldName) const
mesh_,
IOobject::MUST_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
mesh_
)

View File

@ -147,7 +147,7 @@ Foam::triSurfaceMeshPointSet::triSurfaceMeshPointSet
mesh.time(),
IOobject::MUST_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
dictionary::null
).points();

View File

@ -91,7 +91,7 @@ void Foam::sampledIsoSurface::getIsoFields() const
fvm,
IOobject::MUST_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
);
if (vfHeader.typeHeaderOk<volScalarField>(true))

View File

@ -471,7 +471,7 @@ void Foam::sampledCuttingPlane::createGeometry()
mesh.time(),
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
mesh,
dimensionedScalar(dimLength, Zero)
@ -494,7 +494,7 @@ void Foam::sampledCuttingPlane::createGeometry()
mesh.time(),
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
pointMesh::New(mesh),
dimensionedScalar(dimLength, Zero)

View File

@ -88,7 +88,7 @@ inline static IOobject selectReadIO(const word& name, const Time& runTime)
runTime, // registry
IOobject::MUST_READ,
IOobject::NO_WRITE,
false // no register
IOobject::NO_REGISTER
);
}

View File

@ -142,7 +142,7 @@ Foam::sampledSurface::pointAverage
pfld.db(),
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
mesh,
dimensioned<Type>(dimless, Zero)

View File

@ -98,7 +98,7 @@ bool Foam::sampledThresholdCellFaces::updateGeometry() const
fvm,
IOobject::MUST_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
fvm
);

View File

@ -173,7 +173,7 @@ Foam::label Foam::cuttingPlane::calcCellCuts
fvmesh.time(),
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
fvmesh,
dimensionedScalar(dimless, Zero)

View File

@ -108,7 +108,7 @@ void Foam::cuttingSurface::calcCellCuts
fvm.time(),
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
fvm,
dimensionedScalar(dimless, Zero)
@ -131,7 +131,7 @@ void Foam::cuttingSurface::calcCellCuts
fvm.time(),
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
pointMesh::New(fvm),
dimensionedScalar(dimLength, Zero)

View File

@ -433,7 +433,7 @@ void Foam::distanceSurface::createGeometry()
fvmesh.time(),
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
fvmesh,
dimensionedScalar(dimLength, GREAT)
@ -676,7 +676,7 @@ void Foam::distanceSurface::createGeometry()
fvmesh.time(),
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
pointMesh::New(fvmesh),
dimensionedScalar(dimLength, Zero)

View File

@ -1199,7 +1199,7 @@ Foam::isoSurfaceCell::isoSurfaceCell
fvmesh.time(),
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
fvmesh,
dimensionedScalar(dimless, Zero)

View File

@ -1366,7 +1366,7 @@ Foam::isoSurfacePoint::isoSurfacePoint
fvmesh,
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
fvmesh,
dimLength,
@ -1448,7 +1448,7 @@ Foam::isoSurfacePoint::isoSurfacePoint
fvmesh.time(),
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
fvmesh,
dimensionedScalar(dimless, Zero)

View File

@ -51,7 +51,7 @@ Foam::isoSurfacePoint::adaptPatchFields
fld.db(),
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
fld, // internal field
true // preserveCouples

View File

@ -978,7 +978,7 @@ Foam::isoSurfaceTopo::isoSurfaceTopo
fvmesh.time(),
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
fvmesh,
dimensionedScalar(dimless)