STYLE: consistent looping of patchSet entries

This commit is contained in:
Mark Olesen
2020-05-01 17:31:01 +02:00
parent 0680416b59
commit 2a24bab057
19 changed files with 136 additions and 161 deletions

View File

@ -813,9 +813,11 @@ bool Foam::functionObjects::forces::read(const dictionary& dict)
directForceDensity_ = dict.lookupOrDefault("directForceDensity", false);
const polyBoundaryMesh& pbm = mesh_.boundaryMesh();
patchSet_ = pbm.patchSet(dict.get<wordRes>("patches"));
patchSet_ =
mesh_.boundaryMesh().patchSet
(
dict.get<wordRes>("patches")
);
if (directForceDensity_)
{