diff --git a/framework/include/problems/FEProblemBase.h b/framework/include/problems/FEProblemBase.h index 413b4a1ef332..195631e025aa 100644 --- a/framework/include/problems/FEProblemBase.h +++ b/framework/include/problems/FEProblemBase.h @@ -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. diff --git a/framework/src/problems/FEProblemBase.C b/framework/src/problems/FEProblemBase.C index 3fda3c824c2d..ee9eb4868688 100644 --- a/framework/src/problems/FEProblemBase.C +++ b/framework/src/problems/FEProblemBase.C @@ -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,