mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: return orientedType, Switch directly instead of const reference
- noexcept on some Time methods ENH: pass through is_oriented() method for clearer coding - use logical and/or/xor instead of bitwise versions (clearer intent)
This commit is contained in:
@ -153,7 +153,7 @@ public:
|
||||
return name_;
|
||||
}
|
||||
|
||||
const Switch& forceInitialPointInsertion() const
|
||||
Switch forceInitialPointInsertion() const noexcept
|
||||
{
|
||||
return forceInitialPointInsertion_;
|
||||
}
|
||||
|
||||
@ -264,7 +264,7 @@ void Foam::controlMeshRefinement::initialMeshPopulation
|
||||
const cellSizeAndAlignmentControl& controlFunction =
|
||||
controlFunctions[fI];
|
||||
|
||||
const Switch& forceInsertion =
|
||||
const Switch forceInsertion =
|
||||
controlFunction.forceInitialPointInsertion();
|
||||
|
||||
Info<< "Inserting points from " << controlFunction.name()
|
||||
@ -450,7 +450,7 @@ void Foam::controlMeshRefinement::initialMeshPopulation
|
||||
const cellSizeAndAlignmentControl& controlFunction =
|
||||
controlFunctions[fI];
|
||||
|
||||
const Switch& forceInsertion =
|
||||
const Switch forceInsertion =
|
||||
controlFunction.forceInitialPointInsertion();
|
||||
|
||||
Info<< "Inserting points from " << controlFunction.name()
|
||||
|
||||
@ -224,7 +224,7 @@ Foam::parFvFieldDistributor::distributeField
|
||||
}
|
||||
|
||||
// Map all faces
|
||||
primitiveField = Field<Type>(flatFld, mapper, fld.oriented()());
|
||||
primitiveField = Field<Type>(flatFld, mapper, fld.is_oriented());
|
||||
|
||||
// Trim to internal faces (note: could also have special mapper)
|
||||
primitiveField.resize
|
||||
|
||||
Reference in New Issue
Block a user