Skip to content

Commit

Permalink
Remove unnecessary reporter getter in FEProblemBase
Browse files Browse the repository at this point in the history
  • Loading branch information
loganharbour authored and aeslaughter committed Jun 2, 2021
1 parent a383656 commit 4ed1db4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
26 changes: 0 additions & 26 deletions framework/include/problems/FEProblemBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -848,22 +848,6 @@ class FEProblemBase : public SubProblem, public Restartable
*/
ReporterData & getReporterData(ReporterData::WriteKey /*key*/) { return _reporter_data; }

/**
* Requests a reporter value when it has not necessarily been delcared yet.
* @param reporter_name The name of the reporter
* @param object_name The name of the object; in the case of Postprocessors and
* VectorPostprocessors, this is not necessarily the same name as the \p reporter_name. It is used
* in error handling when reporters that were requested were not delcared.
* @param mode The reporter mode
* @param time_index The time index
* @returns A const reference to the Reporter value
*/
template <typename T>
const T & getReporterValue(const ReporterName & reporter_name,
const std::string & object_name,
const ReporterMode & mode,
const std::size_t time_index = 0) const;

// UserObjects /////
virtual void addUserObject(const std::string & user_object_name,
const std::string & name,
Expand Down Expand Up @@ -2432,13 +2416,3 @@ FEProblemBase::addObject(const std::string & type,

return objects;
}

template <typename T>
const T &
FEProblemBase::getReporterValue(const ReporterName & reporter_name,
const std::string & object_name,
const ReporterMode & mode,
const std::size_t time_index /* = 0 */) const
{
return _reporter_data.getReporterValue<T>(reporter_name, object_name, mode, time_index);
}
2 changes: 1 addition & 1 deletion framework/src/interfaces/PostprocessorInterface.C
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,6 @@ PostprocessorInterface::getPostprocessorValueByNameHelper(const PostprocessorNam
{
mooseAssert(t_index < 3, "Invalid time index");

return _ppi_feproblem.getReporterValue<PostprocessorValue>(
return _ppi_feproblem.getReporterData().getReporterValue<PostprocessorValue>(
ReporterName(name, "value"), name, REPORTER_MODE_ROOT, t_index);
}

0 comments on commit 4ed1db4

Please sign in to comment.