Skip to content

FusionSC memory leak #76

@totork

Description

@totork

Using the FusionSC field tracer seems to cause alot of memory consumption in the tracing (not the tracing for J). I know that it is this line

coords = field_tracer.follow_field_lines(pol.R, pol.Z, y_slices, rtol=rtol)[
1:, ...
]

This adds a constant memory every iteration. This can range from only 25 MB to multiple GB for very large grids. I tried some things to maybe delete all the views that might keep the array allocated, but have not found any fix using this.

My workaround right now is to also use chunking for this process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions