We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10725f7 commit d9466abCopy full SHA for d9466ab
1 file changed
src/gravity/gravity.cpp
@@ -10,6 +10,7 @@
10
#include "gravity.hpp"
11
#include "planetarySystem.hpp"
12
#include "dataBlock.hpp"
13
+#include "output.hpp"
14
#include "input.hpp"
15
16
Gravity::Gravity(Input &input, DataBlock *datain) {
@@ -29,6 +30,7 @@ Gravity::Gravity(Input &input, DataBlock *datain) {
29
30
} else if (potentialString.compare("central") == 0) {
31
this->haveCentralMassPotential = true;
32
this->centralMass = input.GetOrSet<real>("Gravity","Mcentral",0, 1.0);
33
+ data->dump->RegisterVariable(&this->centralMass, "centralMass",1);
34
} else if (potentialString.compare("selfgravity") == 0) {
35
this->haveSelfGravityPotential = true;
36
} else if (potentialString.compare("planet") == 0) {
0 commit comments