Skip to content

Commit

Permalink
Re-add deprecated param that isn't ready to go yet
Browse files Browse the repository at this point in the history
  • Loading branch information
loganharbour committed Apr 21, 2021
1 parent dfd94d6 commit 40ec7c4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 5 additions & 1 deletion framework/include/problems/FEProblemBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,11 @@ class FEProblemBase : public SubProblem, public Restartable
void setPostprocessorValueByName(const PostprocessorName & name,
const PostprocessorValue & value,
std::size_t t_index = 0);
///@}

/**
* Deprecated. Use hasPostprocessorValueByName
*/
bool hasPostprocessor(const std::string & name) const;

/**
* Get a read-only reference to the vector value associated with the VectorPostprocessor.
Expand Down
8 changes: 8 additions & 0 deletions framework/src/problems/FEProblemBase.C
Original file line number Diff line number Diff line change
Expand Up @@ -3531,6 +3531,14 @@ FEProblemBase::setPostprocessorValueByName(const PostprocessorName & name,
PostprocessorReporterName(name), value, t_index);
}

bool
FEProblemBase::hasPostprocessor(const std::string & name) const
{
mooseDeprecated(
"FEProblemBase::hasPostprocssor is being removed; use hasPostprocessorValueByName instead.");
return hasPostprocessorValueByName(name);
}

const VectorPostprocessorValue &
FEProblemBase::getVectorPostprocessorValueByName(const std::string & object_name,
const std::string & vector_name,
Expand Down

0 comments on commit 40ec7c4

Please sign in to comment.