mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use polyPatchList instead of List<polyPatch*> in more places
This commit is contained in:
@ -495,15 +495,19 @@ void Foam::meshToMesh::calculate(const word& methodName, const bool normalise)
|
||||
);
|
||||
|
||||
// create some dummy patch info
|
||||
List<polyPatch*> patches(1);
|
||||
patches[0] = new polyPatch
|
||||
polyPatchList patches(1);
|
||||
patches.set
|
||||
(
|
||||
"defaultFaces",
|
||||
newTgt.nBoundaryFaces(),
|
||||
newTgt.nInternalFaces(),
|
||||
0,
|
||||
newTgt.boundaryMesh(),
|
||||
word::null
|
||||
new polyPatch
|
||||
(
|
||||
"defaultFaces",
|
||||
newTgt.nBoundaryFaces(),
|
||||
newTgt.nInternalFaces(),
|
||||
0,
|
||||
newTgt.boundaryMesh(),
|
||||
word::null
|
||||
)
|
||||
);
|
||||
|
||||
newTgt.addPatches(patches);
|
||||
|
||||
Reference in New Issue
Block a user