From cb61e4173e928715cf6994350a73f67d9f470023 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Mon, 3 May 2021 13:21:42 -0400 Subject: [PATCH] Re-instantiate deprecated unprefixed ConstantFunction and ZeroFunction --- include/deal.II/base/function.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/include/deal.II/base/function.h b/include/deal.II/base/function.h index d0eb74fa69..fd374824ae 100644 --- a/include/deal.II/base/function.h +++ b/include/deal.II/base/function.h @@ -564,6 +564,25 @@ namespace Functions }; } // namespace Functions +/** + * Provide a function which always returns the constant values handed to the + * constructor. + * + * @deprecated use Functions::ConstantFunction instead. + */ +template +using ConstantFunction DEAL_II_DEPRECATED = + Functions::ConstantFunction; + +/** + * Provide a function which always returns zero. + * + * @deprecated use Functions::ZeroFunction instead. + */ +template +using ZeroFunction DEAL_II_DEPRECATED = + Functions::ZeroFunction; + /** -- 2.39.5