Skip to content

Commit d9466ab

Browse files
authored
add central mass in the restart dump. (#287)
1 parent 10725f7 commit d9466ab

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/gravity/gravity.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "gravity.hpp"
1111
#include "planetarySystem.hpp"
1212
#include "dataBlock.hpp"
13+
#include "output.hpp"
1314
#include "input.hpp"
1415

1516
Gravity::Gravity(Input &input, DataBlock *datain) {
@@ -29,6 +30,7 @@ Gravity::Gravity(Input &input, DataBlock *datain) {
2930
} else if (potentialString.compare("central") == 0) {
3031
this->haveCentralMassPotential = true;
3132
this->centralMass = input.GetOrSet<real>("Gravity","Mcentral",0, 1.0);
33+
data->dump->RegisterVariable(&this->centralMass, "centralMass",1);
3234
} else if (potentialString.compare("selfgravity") == 0) {
3335
this->haveSelfGravityPotential = true;
3436
} else if (potentialString.compare("planet") == 0) {

0 commit comments

Comments
 (0)