From: Daniel Arndt Date: Mon, 3 May 2021 17:21:42 +0000 (-0400) Subject: Re-instantiate deprecated unprefixed ConstantFunction and ZeroFunction X-Git-Tag: v9.3.0-rc1~147^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb61e4173e928715cf6994350a73f67d9f470023;p=dealii.git Re-instantiate deprecated unprefixed ConstantFunction and ZeroFunction --- 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; + /**