mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: for-range, forAllIters() ... in applications/utilities
- reduced clutter when iterating over containers
This commit is contained in:
@ -746,7 +746,7 @@ void correctCoupledBoundaryConditions(fvMesh& mesh)
|
||||
mesh.objectRegistry::lookupClass<GeoField>()
|
||||
);
|
||||
|
||||
forAllIter(typename HashTable<GeoField*>, flds, iter)
|
||||
forAllIters(flds, iter)
|
||||
{
|
||||
GeoField& fld = *iter();
|
||||
|
||||
@ -1944,16 +1944,11 @@ void readLagrangian
|
||||
);
|
||||
|
||||
|
||||
//forAllConstIter
|
||||
//(
|
||||
// unmappedPassivePositionParticleCloud,
|
||||
// clouds[i],
|
||||
// iter
|
||||
//)
|
||||
//for (passivePositionParticle& p : clouds[i]))
|
||||
//{
|
||||
// Pout<< "Particle position:" << iter().position()
|
||||
// << " cell:" << iter().cell()
|
||||
// << " with cc:" << mesh.cellCentres()[iter().cell()]
|
||||
// Pout<< "Particle position:" << p.position()
|
||||
// << " cell:" << p.cell()
|
||||
// << " with cc:" << mesh.cellCentres()[p.cell()]
|
||||
// << endl;
|
||||
//}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user