Skip to content

BUG: Memory Leak during VTK output #4064

@MaxOkraschevski

Description

@MaxOkraschevski

Using the write() method of a VTKFile object in a time stepping loop for a PeriodicSquareMesh() in 2D with DG0 leads to a quick memory accumulation when executed in parallel. This persists even without the solve() call (the red line representing memory):

Image

This was observed running the following script:

01_Rivera2D.txt

The problem seems to be independent of the core number as long as run in parallel (n>1).

I also tested for this behaviour using another 2D problem with DG0 on a RectangleMesh(). Interestingly, without solve() call the problem persists again, however with a solve() call the memory usage is stable. To me it seems that memory allocated within the VTKObject is released in the solve() call depending on the chosen MeshUtility.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions