Skip to content

BUG: centralMass in dump #286

@aborderies

Description

@aborderies

Describe the issue:

When restarting from a different grid, I realized that the values given by image->centralMass (when restarting from a DumpImage) were totally random and didn't really make sense. I therefore have the impression that the gravity.centralMass variable is not correctly saved in the dump files.
I've added the line

data->dump->RegisterVariable(&this->centralMass, "centralMass",1);

just after line 31 in gravity.cpp and it seems to solve the problem.

Error message:

No response

runtime information:

Idefix version : V2.1.01

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions