mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use labelRange for identity
This commit is contained in:
@ -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()
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user