mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use 'is_sorted()' instead of 'sorted()' for readers, Pair, ...
- avoids naming ambiguity between querying sorted state vs returning a sorted list (for example) ENH: add 'good()' method to a few more classes
This commit is contained in:
@ -78,7 +78,7 @@ void Foam::conformalVoronoiMesh::timeCheck
|
||||
|
||||
memInfo m;
|
||||
|
||||
if (m.valid())
|
||||
if (m.good())
|
||||
{
|
||||
PrintTable<word, label> memoryTable
|
||||
(
|
||||
|
||||
@ -212,7 +212,7 @@ void Foam::PDRmeshArrays::classify
|
||||
{
|
||||
const auto& limits = faceLimits[cmpt];
|
||||
|
||||
if (!limits.valid())
|
||||
if (!limits.good())
|
||||
{
|
||||
// This should be impossible
|
||||
FatalErrorInFunction
|
||||
|
||||
@ -239,7 +239,7 @@ Foam::volumeType Foam::PDRobstacle::trim(const boundBox& bb)
|
||||
{
|
||||
volumeType::type vt = volumeType::UNKNOWN;
|
||||
|
||||
if (!bb.valid() || !typeId)
|
||||
if (!bb.good() || !typeId)
|
||||
{
|
||||
return vt;
|
||||
}
|
||||
|
||||
@ -68,7 +68,7 @@ static triSurface pack
|
||||
f[1] = pointMap[f[1]];
|
||||
f[2] = pointMap[f[2]];
|
||||
|
||||
if (f.valid())
|
||||
if (f.good())
|
||||
{
|
||||
newTriangles[nNewTris++] = f;
|
||||
}
|
||||
|
||||
@ -117,7 +117,7 @@ int main(int argc, char *argv[])
|
||||
zoneBb.min() = markedZone[0];
|
||||
zoneBb.max() = markedZone[1];
|
||||
|
||||
if (!zoneBb.valid())
|
||||
if (!zoneBb.good())
|
||||
{
|
||||
WarningInFunction
|
||||
<< "Defined zone is invalid: " << zoneBb << nl;
|
||||
@ -191,7 +191,7 @@ int main(int argc, char *argv[])
|
||||
// Faces with centre inside "zone"
|
||||
//
|
||||
|
||||
if (zoneBb.valid())
|
||||
if (zoneBb.good())
|
||||
{
|
||||
Info<< "Using zone " << zoneBb << endl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user