Skip to content

Commit

Permalink
Add getSimulationOutput to StatisticOutput base class now that Simula…
Browse files Browse the repository at this point in the history
…tion object is no longer public.
  • Loading branch information
feldergast committed May 11, 2024
1 parent 1f707b9 commit b804d48
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/sst/core/statapi/statoutput.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ StatisticOutput::registerGroup(StatisticGroup* group)
stopRegisterGroup();
}

Output&
StatisticOutput::getSimulationOutput()
{
return Simulation_impl::getSimulationOutput();
}

StatisticFieldsOutput::StatisticFieldsOutput(Params& outputParameters) : StatisticOutput(outputParameters)
{
m_highestFieldHandle = 0;
Expand Down Expand Up @@ -226,5 +232,6 @@ StatisticFieldsOutput::stopRegisterFields()
m_currentFieldStatName = "";
}


} // namespace Statistics
} // namespace SST
4 changes: 4 additions & 0 deletions src/sst/core/statapi/statoutput.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ class StatisticOutput
* Allows object to perform any shutdown required. */
virtual void endOfSimulation() = 0;

/** Gets the Output object for the Simulation object associeted
* with this StatOutput. */
Output& getSimulationOutput();

private:
// Start / Stop of register Fields
virtual void registerStatistic(StatisticBase* stat) = 0;
Expand Down

0 comments on commit b804d48

Please sign in to comment.