From 4da4f40ded38be34b10c5dc0c956613602a13e38 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Mon, 7 Jan 2019 09:20:51 +0100 Subject: [PATCH] ENH: for-range, forAllIters() ... in lagrangian/ basic - reduced clutter when iterating over containers --- .../basic/InteractionLists/InteractionLists.C | 30 ++++++++----------- .../solidParticle/solidParticleIO.C | 16 ++++------ .../clouds/Templates/SprayCloud/SprayCloudI.H | 7 ++--- .../Templates/SprayParcel/SprayParcelIO.C | 17 +++++------ .../ORourkeCollision/ORourkeCollision.C | 13 ++++---- 5 files changed, 34 insertions(+), 49 deletions(-) diff --git a/src/lagrangian/basic/InteractionLists/InteractionLists.C b/src/lagrangian/basic/InteractionLists/InteractionLists.C index a20817fc80..4a4640a3f9 100644 --- a/src/lagrangian/basic/InteractionLists/InteractionLists.C +++ b/src/lagrangian/basic/InteractionLists/InteractionLists.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | + \\ / A nd | Copyright (C) 2019 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- | Copyright (C) 2011-2017 OpenFOAM Foundation @@ -320,10 +320,8 @@ void Foam::InteractionLists::buildInteractionLists() // Determine the index of all of the wall faces on this processor DynamicList