BUG: overset: memory leak. Fixes #2219

Not tested; from visual inspection
This commit is contained in:
mattijs
2021-09-29 10:48:15 +01:00
parent 680c1dcfdd
commit ad8e5540a3
3 changed files with 6 additions and 7 deletions

View File

@ -56,7 +56,7 @@ class fvMeshLduAddressing
// Private data // Private data
//- Lower as a subList of allOwner //- Lower as a subList of allOwner
labelList::subList lowerAddr_; const labelList::subList lowerAddr_;
//- Upper as a reference to neighbour //- Upper as a reference to neighbour
const labelList& upperAddr_; const labelList& upperAddr_;

View File

@ -32,7 +32,6 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::fvMeshPrimitiveLduAddressing::fvMeshPrimitiveLduAddressing Foam::fvMeshPrimitiveLduAddressing::fvMeshPrimitiveLduAddressing
( (
const fvMesh& mesh const fvMesh& mesh
@ -51,9 +50,9 @@ Foam::fvMeshPrimitiveLduAddressing::fvMeshPrimitiveLduAddressing
patchAddr_(mesh.boundary().size()), patchAddr_(mesh.boundary().size()),
patchSchedule_(mesh.globalData().patchSchedule()) patchSchedule_(mesh.globalData().patchSchedule())
{ {
forAll(mesh.boundary(), patchI) forAll(mesh.boundary(), patchi)
{ {
patchAddr_[patchI] = &mesh.boundary()[patchI].faceCells(); patchAddr_[patchi] = &mesh.boundary()[patchi].faceCells();
} }
} }

View File

@ -62,16 +62,16 @@ class fvMeshPrimitiveLduAddressing
// Private data // Private data
//- Lower (face to owner addressing) //- Lower (face to owner addressing)
labelList lowerAddr_; const labelList lowerAddr_;
//- Upper (face to neighbour addressing) //- Upper (face to neighbour addressing)
labelList upperAddr_; const labelList upperAddr_;
//- Patch addressing as a list of sublists //- Patch addressing as a list of sublists
List<const labelUList*> patchAddr_; List<const labelUList*> patchAddr_;
//- Patch field evaluation schedule //- Patch field evaluation schedule
const lduSchedule& patchSchedule_; const lduSchedule patchSchedule_;
// Private Member Functions // Private Member Functions