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

@ -521,7 +521,7 @@ void Foam::DMDModels::STDMD::amplitudes()
mesh_,
IOobject::MUST_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
)
);
@ -977,7 +977,7 @@ bool Foam::DMDModels::STDMD::initialise(const RMatrix& z)
mesh_,
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
nSnap
);

View File

@ -121,7 +121,7 @@ bool Foam::DMDModels::STDMD::calcModes()
mesh_,
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
mesh_,
dimensioned<Type>(dimless, Zero),
@ -138,7 +138,7 @@ bool Foam::DMDModels::STDMD::calcModes()
mesh_,
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
mesh_,
dimensioned<Type>(dimless, Zero),

View File

@ -161,10 +161,10 @@ bool Foam::functionObjects::age::execute()
mesh_,
IOobject::READ_IF_PRESENT,
IOobject::AUTO_WRITE,
false
IOobject::NO_REGISTER
),
mesh_,
dimensionedScalar(dimTime, 0),
dimensionedScalar(dimTime, Zero),
patchTypes()
);
volScalarField& age = tage.ref();

View File

@ -105,7 +105,7 @@ Foam::functionObjects::fieldCoordinateSystemTransform::srotTensor() const
mesh_.objectRegistry::db(),
IOobject::NO_READ,
IOobject::NO_WRITE,
false // no register
IOobject::NO_REGISTER
),
mesh_,
dimless,
@ -150,7 +150,7 @@ Foam::functionObjects::fieldCoordinateSystemTransform::vrotTensor() const
mesh_.objectRegistry::db(),
IOobject::NO_READ,
IOobject::NO_WRITE,
false // no register
IOobject::NO_REGISTER
),
mesh_,
dimless,

View File

@ -140,7 +140,7 @@ Foam::tmp<Foam::volScalarField> Foam::functionObjects::pressure::rhoScale
p.mesh(),
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
p,
fvPatchField<scalar>::calculatedType()

View File

@ -54,7 +54,7 @@ Foam::tmp<Foam::volScalarField> Foam::resolutionIndexModel::V() const
mesh_,
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
mesh_,
dimVolume,

View File

@ -82,7 +82,7 @@ bool Foam::functionObjects::writeCellCentres::write()
mesh_,
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
mesh_.C(),
calculatedFvPatchScalarField::typeName
@ -105,7 +105,7 @@ bool Foam::functionObjects::writeCellCentres::write()
mesh_,
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
mesh_.C().component(i)
);

View File

@ -82,7 +82,7 @@ bool Foam::functionObjects::writeCellVolumes::write()
mesh_,
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
mesh_,
dimensionedScalar(mesh_.V().dimensions(), Zero),

View File

@ -173,7 +173,7 @@ bool Foam::functionObjects::cloudInfo::performAction(unsigned request)
obr_,
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
)
);

View File

@ -67,7 +67,7 @@ bool Foam::functionObjects::dataCloud::writeCloud
mesh_,
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
)
);

View File

@ -116,7 +116,7 @@ bool Foam::functionObjects::vtkCloud::writeCloud
mesh_,
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
)
);

View File

@ -79,7 +79,7 @@ Foam::functionObjects::electricPotential::sigma() const
mesh_.time(),
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
);
if (phases_.size())
@ -126,7 +126,7 @@ Foam::functionObjects::electricPotential::epsilonm() const
mesh_.time(),
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
);
if (phases_.size())
@ -356,7 +356,7 @@ bool Foam::functionObjects::electricPotential::write()
mesh_.time(),
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
-fvc::grad(eV),
calculatedFvPatchField<vector>::typeName
@ -379,7 +379,7 @@ bool Foam::functionObjects::electricPotential::write()
mesh_.time(),
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
-tsigma*fvc::grad(eV),
calculatedFvPatchField<vector>::typeName
@ -402,7 +402,7 @@ bool Foam::functionObjects::electricPotential::write()
mesh_.time(),
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
fvc::div(tepsilonm*E),
calculatedFvPatchField<scalar>::typeName

View File

@ -121,7 +121,7 @@ Foam::functionObjects::energyTransport::rho() const
mesh_,
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
mesh_,
rho_
@ -158,7 +158,7 @@ Foam::functionObjects::energyTransport::Cp() const
mesh_,
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
mesh_,
Cp_
@ -189,7 +189,7 @@ Foam::functionObjects::energyTransport::kappa() const
mesh_,
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
mesh_,
kappa_
@ -232,7 +232,7 @@ Foam::functionObjects::energyTransport::energyTransport
mesh_,
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
mesh_,
dimensionedScalar(dimEnergy/dimTemperature/dimVolume, Zero)

View File

@ -213,7 +213,7 @@ bool Foam::functionObjects::solverInfo::write()
mesh_,
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
mesh_,
dimensionedScalar(dimless, Zero),

View File

@ -97,7 +97,7 @@ bool Foam::functionObjects::writeDictionary::tryDirectory
obr_,
IOobject::MUST_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
);
if (dictIO.typeHeaderOk<IOdictionary>(true))