From 40ec7c440a1353244d52147af81bf8b74b1c47bb Mon Sep 17 00:00:00 2001 From: Logan Harbour Date: Mon, 19 Apr 2021 12:17:19 -0600 Subject: [PATCH] Re-add deprecated param that isn't ready to go yet refs #17512 --- framework/include/problems/FEProblemBase.h | 6 +++++- framework/src/problems/FEProblemBase.C | 8 ++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) 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,