]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Re-instantiate deprecated unprefixed ConstantFunction and ZeroFunction 12127/head
authorDaniel Arndt <arndtd@ornl.gov>
Mon, 3 May 2021 17:21:42 +0000 (13:21 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Mon, 3 May 2021 17:21:53 +0000 (13:21 -0400)
include/deal.II/base/function.h

index d0eb74fa69a6c4ab8fd3b5a7400903d9f9b309af..fd374824aea20170fc65ce7f674973728cc4d439 100644 (file)
@@ -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 <int dim, typename RangeNumberType = double>
+using ConstantFunction DEAL_II_DEPRECATED =
+  Functions::ConstantFunction<dim, RangeNumberType>;
+
+/**
+ * Provide a function which always returns zero.
+ *
+ * @deprecated use Functions::ZeroFunction instead.
+ */
+template <int dim, typename RangeNumberType = double>
+using ZeroFunction DEAL_II_DEPRECATED =
+  Functions::ZeroFunction<dim, RangeNumberType>;
+
 
 
 /**

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.