]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Deprecate DoFTools::extract_locally_owned_dofs.
authorDavid Wells <wellsd2@rpi.edu>
Sun, 15 Oct 2017 02:06:04 +0000 (22:06 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Sun, 15 Oct 2017 02:48:23 +0000 (22:48 -0400)
All that this function does is return a copy of
dof_handler.locally_owned_dofs(): we should just use that function directly.

include/deal.II/dofs/dof_tools.h
source/dofs/dof_tools_constraints.cc

index 82c9130e35ae4cb0d5a2ae79e5e9c3efcc610629..426ba43b42b82268c9337d23b43ed97ea53f2d3b 100644 (file)
@@ -1554,11 +1554,14 @@ namespace DoFTools
    * processor. For regular DoFHandler objects, this set is the complete set
    * with all DoF indices. In either case, it equals what
    * DoFHandler::locally_owned_dofs() returns.
+   *
+   * @deprecated Use DoFHandler::locally_owned_dofs() directly instead of this
+   * function.
    */
   template <typename DoFHandlerType>
   void
   extract_locally_owned_dofs (const DoFHandlerType &dof_handler,
-                              IndexSet             &dof_set);
+                              IndexSet             &dof_set) DEAL_II_DEPRECATED;
 
 
   /**
@@ -1742,10 +1745,11 @@ namespace DoFTools
    * processor. Note that this includes the ones that this subdomain "owns"
    * (i.e. the ones for which get_subdomain_association() returns a value
    * equal to the subdomain given here and that are selected by the
-   * extract_locally_owned_dofs() function) but also all of those that sit on
-   * the boundary between the given subdomain and other subdomain. In essence,
-   * degrees of freedom that sit on boundaries between subdomain will be in
-   * the index sets returned by this function for more than one subdomain.
+   * DoFHandler::locally_owned_dofs() function) but also all of those that sit
+   * on the boundary between the given subdomain and other subdomain. In
+   * essence, degrees of freedom that sit on boundaries between subdomain will
+   * be in the index sets returned by this function for more than one
+   * subdomain.
    *
    * Note that this function is of questionable use for DoFHandler objects
    * built on parallel::distributed::Triangulation since in that case
index 93d2cd5d7c48b3a9741f6a87c6f08df3858351c8..00718d06729c6808bb28a6e7bd009d8b0a00e693 100644 (file)
@@ -2699,14 +2699,14 @@ namespace DoFTools
                 // Nothing bad happened: the user used serial Triangulation
               }
 
-            IndexSet locally_owned_dofs, locally_relevant_dofs;
-            DoFTools::extract_locally_owned_dofs
-            (coarse_to_fine_grid_map.get_destination_grid (), locally_owned_dofs);
+
+            IndexSet locally_relevant_dofs;
             DoFTools::extract_locally_relevant_dofs
             (coarse_to_fine_grid_map.get_destination_grid (), locally_relevant_dofs);
 
             copy_data.global_parameter_representation[i].reinit
-            (locally_owned_dofs, locally_relevant_dofs, communicator);
+            (coarse_to_fine_grid_map.get_destination_grid().locally_owned_dofs(),
+             locally_relevant_dofs, communicator);
 #else
             const types::global_dof_index n_fine_dofs = weight_mapping.size();
             copy_data.global_parameter_representation[i].reinit (n_fine_dofs);

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.