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:
@ -189,7 +189,7 @@ autoPtr<labelIOList> procAddressing
|
||||
procMesh,
|
||||
IOobject::MUST_READ,
|
||||
IOobject::NO_WRITE,
|
||||
false // do not register
|
||||
IOobject::NO_REGISTER
|
||||
)
|
||||
);
|
||||
}
|
||||
@ -505,7 +505,7 @@ int main(int argc, char *argv[])
|
||||
runTime,
|
||||
IOobject::MUST_READ,
|
||||
IOobject::NO_WRITE,
|
||||
false
|
||||
IOobject::NO_REGISTER
|
||||
),
|
||||
decompDictFile,
|
||||
args.getOrDefault<label>("domains", 0),
|
||||
@ -543,7 +543,7 @@ int main(int argc, char *argv[])
|
||||
runTime,
|
||||
IOobject::MUST_READ,
|
||||
IOobject::NO_WRITE,
|
||||
false // do not register
|
||||
IOobject::NO_REGISTER
|
||||
),
|
||||
decompDictFile
|
||||
)
|
||||
@ -653,7 +653,7 @@ int main(int argc, char *argv[])
|
||||
runTime,
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE,
|
||||
false
|
||||
IOobject::NO_REGISTER
|
||||
),
|
||||
decompDictFile
|
||||
);
|
||||
@ -683,7 +683,7 @@ int main(int argc, char *argv[])
|
||||
mesh,
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE,
|
||||
false
|
||||
IOobject::NO_REGISTER
|
||||
),
|
||||
procIds
|
||||
);
|
||||
@ -816,7 +816,7 @@ int main(int argc, char *argv[])
|
||||
mesh,
|
||||
IOobject::READ_IF_PRESENT,
|
||||
IOobject::NO_WRITE,
|
||||
false // not registered
|
||||
IOobject::NO_REGISTER
|
||||
);
|
||||
|
||||
if (io.typeHeaderOk<faBoundaryMesh>(true))
|
||||
|
||||
@ -91,7 +91,7 @@ Foam::domainDecomposition::domainDecomposition
|
||||
*this,
|
||||
IOobject::MUST_READ,
|
||||
IOobject::NO_WRITE,
|
||||
false
|
||||
IOobject::NO_REGISTER
|
||||
)
|
||||
)
|
||||
: nullptr
|
||||
@ -221,7 +221,7 @@ bool Foam::domainDecomposition::writeDecomposition(const bool decomposeSets)
|
||||
*this,
|
||||
IOobject::READ_IF_PRESENT,
|
||||
IOobject::NO_WRITE,
|
||||
false
|
||||
IOobject::NO_REGISTER
|
||||
)
|
||||
);
|
||||
|
||||
@ -767,7 +767,7 @@ bool Foam::domainDecomposition::writeDecomposition(const bool decomposeSets)
|
||||
procMesh,
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE,
|
||||
false
|
||||
IOobject::NO_REGISTER
|
||||
),
|
||||
std::move(procPoints)
|
||||
);
|
||||
@ -831,7 +831,7 @@ bool Foam::domainDecomposition::writeDecomposition(const bool decomposeSets)
|
||||
procMesh,
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE,
|
||||
false
|
||||
IOobject::NO_REGISTER
|
||||
),
|
||||
baseMeshData,
|
||||
procCellAddressing_[proci],
|
||||
@ -907,7 +907,7 @@ bool Foam::domainDecomposition::writeDecomposition(const bool decomposeSets)
|
||||
procMesh.thisDb(),
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE,
|
||||
false // not registered
|
||||
IOobject::NO_REGISTER
|
||||
);
|
||||
|
||||
// pointProcAddressing
|
||||
|
||||
@ -153,7 +153,7 @@ void Foam::domainDecompositionDryRun::execute
|
||||
// mesh_,
|
||||
// IOobject::NO_READ,
|
||||
// IOobject::NO_WRITE,
|
||||
// false
|
||||
// IOobject::NO_REGISTER
|
||||
// ),
|
||||
// std::move(cellToProc)
|
||||
// );
|
||||
|
||||
@ -48,7 +48,7 @@ void Foam::domainDecompositionDryRun::writeVolField
|
||||
this->mesh(),
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE,
|
||||
false
|
||||
IOobject::NO_REGISTER
|
||||
),
|
||||
this->mesh(),
|
||||
dimensionedScalar("cellDist", dimless, -1),
|
||||
|
||||
@ -49,7 +49,7 @@ void Foam::domainDecomposition::writeVolField
|
||||
this->mesh(),
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE,
|
||||
false
|
||||
IOobject::NO_REGISTER
|
||||
),
|
||||
this->mesh(),
|
||||
dimensionedScalar("cellDist", dimless, -1),
|
||||
|
||||
Reference in New Issue
Block a user