mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: improve memory allocations for explicit connections (issue #805)
STYLE: change access methods names in mesh wave algorithms - nUnvisitedCells(), nUnvisitedFaces() etc instead of getUnsetCells(), getUnsetFaces() - simplify some coding with range-for
This commit is contained in:
@ -714,14 +714,14 @@ Foam::PointEdgeWave<Type, TrackingData>::~PointEdgeWave()
|
||||
|
||||
|
||||
template<class Type, class TrackingData>
|
||||
Foam::label Foam::PointEdgeWave<Type, TrackingData>::getUnsetPoints() const
|
||||
Foam::label Foam::PointEdgeWave<Type, TrackingData>::nUnvisitedPoints() const
|
||||
{
|
||||
return nUnvisitedPoints_;
|
||||
}
|
||||
|
||||
|
||||
template<class Type, class TrackingData>
|
||||
Foam::label Foam::PointEdgeWave<Type, TrackingData>::getUnsetEdges() const
|
||||
Foam::label Foam::PointEdgeWave<Type, TrackingData>::nUnvisitedEdges() const
|
||||
{
|
||||
return nUnvisitedEdges_;
|
||||
}
|
||||
@ -737,9 +737,9 @@ void Foam::PointEdgeWave<Type, TrackingData>::setPointInfo
|
||||
{
|
||||
forAll(changedPoints, changedPointi)
|
||||
{
|
||||
label pointi = changedPoints[changedPointi];
|
||||
const label pointi = changedPoints[changedPointi];
|
||||
|
||||
bool wasValid = allPointInfo_[pointi].valid(td_);
|
||||
const bool wasValid = allPointInfo_[pointi].valid(td_);
|
||||
|
||||
// Copy info for pointi
|
||||
allPointInfo_[pointi] = changedPointsInfo[changedPointi];
|
||||
|
||||
Reference in New Issue
Block a user