mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: prefer REGISTER/NO_REGISTER instead of true/false for IOobject
- self-documenting
This commit is contained in:
@ -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
|
||||
);
|
||||
|
||||
@ -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),
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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)
|
||||
);
|
||||
|
||||
@ -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),
|
||||
|
||||
@ -173,7 +173,7 @@ bool Foam::functionObjects::cloudInfo::performAction(unsigned request)
|
||||
obr_,
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE,
|
||||
false
|
||||
IOobject::NO_REGISTER
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@ -67,7 +67,7 @@ bool Foam::functionObjects::dataCloud::writeCloud
|
||||
mesh_,
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE,
|
||||
false
|
||||
IOobject::NO_REGISTER
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@ -116,7 +116,7 @@ bool Foam::functionObjects::vtkCloud::writeCloud
|
||||
mesh_,
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE,
|
||||
false
|
||||
IOobject::NO_REGISTER
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -213,7 +213,7 @@ bool Foam::functionObjects::solverInfo::write()
|
||||
mesh_,
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE,
|
||||
false
|
||||
IOobject::NO_REGISTER
|
||||
),
|
||||
mesh_,
|
||||
dimensionedScalar(dimless, Zero),
|
||||
|
||||
@ -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))
|
||||
|
||||
Reference in New Issue
Block a user