... | ... | @@ -201,9 +201,10 @@ So the first step is to created, preferably in [simulationTrackers.hpp](https:// |
|
|
```
|
|
|
class MyCoolAccretionTracker : public SimulationTracker {
|
|
|
public:
|
|
|
MyCoolAccretionTracker(Simulation const& simulation, TrackingConfig::Tracker const& cfg) {}
|
|
|
MyCoolAccretionTracker(Simulation const& simulation, TrackingConfig::Tracker const& cfg)
|
|
|
: SimulationTracker(simulation, cfg) {}
|
|
|
void accretionRetrieved(std::map<std::string, Momentum> const& retrievedGasMomentum) override {
|
|
|
for (auto const& m : retrievedGasMomentum) { std::cout << m.first << " -> " << m.second << '\n';
|
|
|
for (auto const& m : retrievedGasMomentum) { std::cout << m.first << " -> " << m.second << '\n'; }
|
|
|
}
|
|
|
static std::string name() { return "my_cool_tracker"; }
|
|
|
};
|
... | ... | |