Skip to content
Snippets Groups Projects
Commit ad8e5540 authored by mattijs's avatar mattijs
Browse files

BUG: overset: memory leak. Fixes #2219

Not tested; from visual inspection
parent 680c1dcf
Branches
Tags
No related merge requests found
......@@ -56,7 +56,7 @@ class fvMeshLduAddressing
// Private data
//- Lower as a subList of allOwner
labelList::subList lowerAddr_;
const labelList::subList lowerAddr_;
//- Upper as a reference to neighbour
const labelList& upperAddr_;
......
......@@ -32,7 +32,6 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::fvMeshPrimitiveLduAddressing::fvMeshPrimitiveLduAddressing
(
const fvMesh& mesh
......@@ -51,9 +50,9 @@ Foam::fvMeshPrimitiveLduAddressing::fvMeshPrimitiveLduAddressing
patchAddr_(mesh.boundary().size()),
patchSchedule_(mesh.globalData().patchSchedule())
{
forAll(mesh.boundary(), patchI)
forAll(mesh.boundary(), patchi)
{
patchAddr_[patchI] = &mesh.boundary()[patchI].faceCells();
patchAddr_[patchi] = &mesh.boundary()[patchi].faceCells();
}
}
......
......@@ -62,16 +62,16 @@ class fvMeshPrimitiveLduAddressing
// Private data
//- Lower (face to owner addressing)
labelList lowerAddr_;
const labelList lowerAddr_;
//- Upper (face to neighbour addressing)
labelList upperAddr_;
const labelList upperAddr_;
//- Patch addressing as a list of sublists
List<const labelUList*> patchAddr_;
//- Patch field evaluation schedule
const lduSchedule& patchSchedule_;
const lduSchedule patchSchedule_;
// Private Member Functions
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment