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

@ -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))

View File

@ -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

View File

@ -153,7 +153,7 @@ void Foam::domainDecompositionDryRun::execute
// mesh_,
// IOobject::NO_READ,
// IOobject::NO_WRITE,
// false
// IOobject::NO_REGISTER
// ),
// std::move(cellToProc)
// );

View File

@ -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),

View File

@ -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),

View File

@ -780,7 +780,7 @@ int main(int argc, char *argv[])
procMesh,
IOobject::READ_IF_PRESENT,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
)
)
);
@ -822,7 +822,7 @@ int main(int argc, char *argv[])
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
cellMaps,
pointMaps,
@ -853,7 +853,7 @@ int main(int argc, char *argv[])
procMesh,
IOobject::READ_IF_PRESENT,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
)
)
);
@ -895,7 +895,7 @@ int main(int argc, char *argv[])
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
cellMaps,
pointMaps,

View File

@ -353,7 +353,7 @@ boundBox procBounds
procDb,
IOobject::MUST_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
)
);
@ -382,7 +382,7 @@ void writeDistribution
masterMesh,
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
masterMesh.nCells()
);
@ -418,7 +418,7 @@ void writeDistribution
masterMesh,
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
masterMesh,
dimensionedScalar("cellDist", dimless, -1),
@ -498,7 +498,7 @@ void writeMaps
procMesh,
IOobject::NO_READ,
IOobject::NO_WRITE,
false // Do not register
IOobject::NO_REGISTER
);

View File

@ -114,7 +114,7 @@ Foam::label Foam::parLagrangianDistributor::distributeFields
srcMesh_,
IOobject::READ_IF_PRESENT,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
label(0)
);
@ -130,7 +130,7 @@ Foam::label Foam::parLagrangianDistributor::distributeFields
tgtMesh_,
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
);
if (field.size())
@ -218,7 +218,7 @@ Foam::label Foam::parLagrangianDistributor::distributeFieldFields
srcMesh_,
IOobject::READ_IF_PRESENT,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
label(0)
);
@ -235,7 +235,7 @@ Foam::label Foam::parLagrangianDistributor::distributeFieldFields
tgtMesh_,
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
);
if (field.size())
@ -363,7 +363,7 @@ Foam::label Foam::parLagrangianDistributor::distributeStoredFields
tgtMesh_,
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
);
if (field.size())

View File

@ -397,7 +397,7 @@ void writeDecomposition
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
decomp
);
@ -415,7 +415,7 @@ void writeDecomposition
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE,
false // do not register
IOobject::NO_REGISTER
),
mesh,
dimensionedScalar(name, dimless, -1),
@ -891,7 +891,7 @@ autoPtr<mapDistributePolyMesh> redistributeAndWrite
mesh,
IOobject::READ_IF_PRESENT,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
);
hexRef8Data refData(io);
@ -2592,7 +2592,7 @@ int main(int argc, char *argv[])
areaProcMeshPtr->thisDb(),
IOobject::NO_READ,
IOobject::NO_WRITE,
false
IOobject::NO_REGISTER
),
faDistMap
).write();