]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add AffineConstraints::get_locally_owned_indices().
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 22 Sep 2023 15:07:12 +0000 (09:07 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 22 Sep 2023 22:02:34 +0000 (16:02 -0600)
include/deal.II/lac/affine_constraints.h

index 63a7568e2ffb4e95eb7c89d08197f2718465922b..0087197dcfa23a5663cb4870cd865dcb899aaa39 100644 (file)
@@ -704,6 +704,17 @@ public:
   bool
   can_store_line(const size_type line_n) const;
 
+  /**
+   * Return the index set describing which part of the degrees of freedom to
+   * which this object stores constraints are "locally owned". Typically,
+   * these would be the
+   * @ref GlossLocallyOwnedDof "locally owned degrees of freedom".
+   * This function returns the corresponding index set provided to either
+   * the constructor or the reinit() function of this class.
+   */
+  const IndexSet &
+  get_locally_owned_indices() const;
+
   /**
    * Return the index set describing locally relevant lines if any are
    * present. Note that if no local lines were given, this represents an empty
@@ -2378,6 +2389,8 @@ AffineConstraints<number>::calculate_line_index(const size_type line_n) const
   return local_lines.index_within_set(line_n);
 }
 
+
+
 template <typename number>
 inline bool
 AffineConstraints<number>::can_store_line(size_type line_n) const
@@ -2385,6 +2398,17 @@ AffineConstraints<number>::can_store_line(size_type line_n) const
   return local_lines.size() == 0 || local_lines.is_element(line_n);
 }
 
+
+
+template <typename number>
+inline const IndexSet &
+AffineConstraints<number>::get_locally_owned_indices() const
+{
+  return locally_owned_dofs;
+}
+
+
+
 template <typename number>
 inline const IndexSet &
 AffineConstraints<number>::get_local_lines() const
@@ -2392,6 +2416,8 @@ AffineConstraints<number>::get_local_lines() const
   return local_lines;
 }
 
+
+
 template <typename number>
 template <typename VectorType>
 inline void

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.