From: Wolfgang Bangerth Date: Thu, 5 Oct 2023 17:24:55 +0000 (-0600) Subject: Deprecate AffineConstraints::add_selected_constraints(). X-Git-Tag: relicensing~421^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c211eb9feea7286f6f0666f6b8195e358c600c76;p=dealii.git Deprecate AffineConstraints::add_selected_constraints(). --- diff --git a/include/deal.II/lac/affine_constraints.h b/include/deal.II/lac/affine_constraints.h index e683d2d8c4..321586523f 100644 --- a/include/deal.II/lac/affine_constraints.h +++ b/include/deal.II/lac/affine_constraints.h @@ -750,7 +750,17 @@ public: * certain vector components in a vector-valued problem from a full * AffineConstraints, i.e. extracting a diagonal subblock from a larger * AffineConstraints. The block is specified by the IndexSet argument. + * + * @deprecated This function is a combination of the get_view() function + * and merge() in that it selects a subset of constraints from another + * constraints object that is then merged into the current one. But + * the current function does not deal well with index sets. Furthermore, + * it simply discards parts of constraints that constrain one degree + * of freedom against ones that are not selected in the filter -- something + * that should probably be considered a bug. Use get_view() and merge() + * instead. */ + DEAL_II_DEPRECATED_EARLY_WITH_COMMENT("Use get_view() and merge() instead.") void add_selected_constraints(const AffineConstraints &constraints_in, const IndexSet &filter); @@ -917,8 +927,8 @@ public: * This behavior can be altered by setting @p allow_different_local_lines * appropriately. * - * Merging a AffineConstraints that is initialized with an IndexSet - * and one that is not initialized with an IndexSet is not yet implemented. + * Merging an AffineConstraints that is initialized with an IndexSet + * and one that is not initialized with an IndexSet is not implemented. */ template void