Skip to content

Options::cleanCache()#621

Merged
bendudson merged 3 commits intoboutproject:nextfrom
dschwoerer:issue620
Aug 8, 2017
Merged

Options::cleanCache()#621
bendudson merged 3 commits intoboutproject:nextfrom
dschwoerer:issue620

Conversation

@dschwoerer
Copy link
Contributor

@dschwoerer dschwoerer commented Jul 17, 2017

Fixes #620

@bendudson
Copy link
Contributor

At the moment this cache cleaning will lead to a memory leak; the parsed objects (FieldGenerators) are not currently deleted anywhere, since they're stored in the cache and could all be deleted at the end. Deleting them might cause a problem if there's still a pointer to them somewhere (e.g. in a Boundary object for MMS time-dependent boundaries). We could wrap all returned FieldGenerators in a shared pointer so they're deleted when not needed.

@dschwoerer
Copy link
Contributor Author

I have pushed changes, that should avoid the memory leak.

@bendudson bendudson merged commit 9f40569 into boutproject:next Aug 8, 2017
@dschwoerer dschwoerer deleted the issue620 branch February 27, 2018 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants