From 07ee1fb82503c9aea14c95483f64d0259bc3c7e6 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 19 May 2024 08:19:15 -0600 Subject: [PATCH] Deprecate some functions in FETools. --- include/deal.II/fe/fe_tools.h | 61 ++++++++++++++++++++--------------- 1 file changed, 35 insertions(+), 26 deletions(-) diff --git a/include/deal.II/fe/fe_tools.h b/include/deal.II/fe/fe_tools.h index fd43859389..bdddae6fe7 100644 --- a/include/deal.II/fe/fe_tools.h +++ b/include/deal.II/fe/fe_tools.h @@ -1012,9 +1012,12 @@ namespace FETools /** * Same as above but for a specific number of sub-elements. + * + * @deprecated Use the versions of this function that take a + * vector of elements or an initializer list as arguments. */ template - FiniteElementData + DEAL_II_DEPRECATED_EARLY FiniteElementData multiply_dof_numbers(const FiniteElement *fe1, const unsigned int N1, const FiniteElement *fe2 = nullptr, @@ -1069,20 +1072,23 @@ namespace FETools * strategy outlined in the documentation of the * FETools::Composition namespace. Consequently, this function * does not have a @p do_tensor_product argument. + * + * @deprecated Use the versions of this function that take a + * vector of elements or an initializer list as arguments. */ template - std::vector - compute_restriction_is_additive_flags( - const FiniteElement *fe1, - const unsigned int N1, - const FiniteElement *fe2 = nullptr, - const unsigned int N2 = 0, - const FiniteElement *fe3 = nullptr, - const unsigned int N3 = 0, - const FiniteElement *fe4 = nullptr, - const unsigned int N4 = 0, - const FiniteElement *fe5 = nullptr, - const unsigned int N5 = 0); + DEAL_II_DEPRECATED_EARLY std::vector + compute_restriction_is_additive_flags( + const FiniteElement *fe1, + const unsigned int N1, + const FiniteElement *fe2 = nullptr, + const unsigned int N2 = 0, + const FiniteElement *fe3 = nullptr, + const unsigned int N3 = 0, + const FiniteElement *fe4 = nullptr, + const unsigned int N4 = 0, + const FiniteElement *fe5 = nullptr, + const unsigned int N5 = 0); /** @@ -1137,21 +1143,24 @@ namespace FETools * * See the documentation of namespace FETools::Compositing for more * information about the @p do_tensor_product argument. + * + * @deprecated Use the versions of this function that take a + * vector of elements or an initializer list as arguments. */ template - std::vector - compute_nonzero_components( - const FiniteElement *fe1, - const unsigned int N1, - const FiniteElement *fe2 = nullptr, - const unsigned int N2 = 0, - const FiniteElement *fe3 = nullptr, - const unsigned int N3 = 0, - const FiniteElement *fe4 = nullptr, - const unsigned int N4 = 0, - const FiniteElement *fe5 = nullptr, - const unsigned int N5 = 0, - const bool do_tensor_product = true); + DEAL_II_DEPRECATED_EARLY std::vector + compute_nonzero_components( + const FiniteElement *fe1, + const unsigned int N1, + const FiniteElement *fe2 = nullptr, + const unsigned int N2 = 0, + const FiniteElement *fe3 = nullptr, + const unsigned int N3 = 0, + const FiniteElement *fe4 = nullptr, + const unsigned int N4 = 0, + const FiniteElement *fe5 = nullptr, + const unsigned int N5 = 0, + const bool do_tensor_product = true); /** * For a given (composite) @p finite_element build @p -- 2.39.5