From b7ee4b9d82fa481721ae73f738ed4de78670a0ec Mon Sep 17 00:00:00 2001 From: Antonin Borderies Date: Tue, 22 Oct 2024 16:55:35 +0200 Subject: [PATCH] add central mass in the restart dump. --- src/gravity/gravity.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gravity/gravity.cpp b/src/gravity/gravity.cpp index 2492ce09..c0096c51 100644 --- a/src/gravity/gravity.cpp +++ b/src/gravity/gravity.cpp @@ -10,6 +10,7 @@ #include "gravity.hpp" #include "planetarySystem.hpp" #include "dataBlock.hpp" +#include "output.hpp" #include "input.hpp" Gravity::Gravity(Input &input, DataBlock *datain) { @@ -29,6 +30,7 @@ Gravity::Gravity(Input &input, DataBlock *datain) { } else if (potentialString.compare("central") == 0) { this->haveCentralMassPotential = true; this->centralMass = input.GetOrSet("Gravity","Mcentral",0, 1.0); + data->dump->RegisterVariable(&this->centralMass, "centralMass",1); } else if (potentialString.compare("selfgravity") == 0) { this->haveSelfGravityPotential = true; } else if (potentialString.compare("planet") == 0) {