STYLE: use labelRange for identity

This commit is contained in:
Mark Olesen
2020-11-23 12:04:39 +01:00
parent ae49b51182
commit 7349b97ecc
10 changed files with 24 additions and 34 deletions

View File

@ -447,18 +447,15 @@ void Foam::perfectInterface::setRefinement(polyTopoChange& ref) const
const polyPatch& patch0 = patches[masterPatchID_.index()];
const polyPatch& patch1 = patches[slavePatchID_.index()];
labelList pp0Labels(identity(patch0.size(), patch0.start()));
indirectPrimitivePatch pp0
(
IndirectList<face>(mesh.faces(), pp0Labels),
IndirectList<face>(mesh.faces(), identity(patch0.range())),
mesh.points()
);
labelList pp1Labels(identity(patch1.size(), patch1.start()));
indirectPrimitivePatch pp1
(
IndirectList<face>(mesh.faces(), pp1Labels),
IndirectList<face>(mesh.faces(), identity(patch1.range())),
mesh.points()
);