Skip to content

[BUG] data in Profile1D export is not reset between 2 simulations #1076

@RemDelaporteMathurin

Description

@RemDelaporteMathurin

Describe the bug
I've noticed that using a single Profile1D object for two consecutive simulations doesn't reset the data (.t and .data attributes)

To Reproduce

  1. Run a first simulation with a profile 1D export
  2. Check the length of the .data attribute of the export object
  3. Run the simulation again
  4. Check the length again (should be double)

Expected behavior
The data should be wiped upon calling initialise()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfenicsxIssue that is related to the fenicsx supportgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions