]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Minor cleanup. 17862/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 15 Nov 2024 04:35:41 +0000 (21:35 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 15 Nov 2024 04:35:41 +0000 (21:35 -0700)
source/dofs/dof_tools_constraints.cc

index 2a2fb00456cb919f84414fee2125750cd6a63234..4bc29db45a0d09e7ed7641fb135eedcbbdbb2b4b 100644 (file)
@@ -3905,6 +3905,7 @@ namespace DoFTools
   {
     namespace Assembler
     {
+      // We don't actually need a scratch object, so use an empty class for it.
       struct Scratch
       {};
 
@@ -3934,7 +3935,6 @@ namespace DoFTools
       void
       compute_intergrid_weights_3(
         const typename DoFHandler<dim, spacedim>::active_cell_iterator &cell,
-        const Assembler::Scratch &,
         Assembler::CopyData<dim, spacedim>            &copy_data,
         const unsigned int                             coarse_component,
         const FiniteElement<dim, spacedim>            &coarse_fe,
@@ -4107,7 +4107,6 @@ namespace DoFTools
         const std::vector<types::global_dof_index>    &weight_mapping,
         std::vector<std::map<types::global_dof_index, float>> &weights)
       {
-        Assembler::Scratch                 scratch;
         Assembler::CopyData<dim, spacedim> copy_data;
 
         unsigned int n_interesting_dofs = 0;
@@ -4165,11 +4164,10 @@ namespace DoFTools
            &coarse_to_fine_grid_map,
            &parameter_dofs](
             const typename DoFHandler<dim, spacedim>::active_cell_iterator
-                                               &cell,
-            const Assembler::Scratch           &scratch_data,
+              &cell,
+            const Assembler::Scratch &,
             Assembler::CopyData<dim, spacedim> &copy_data) {
             compute_intergrid_weights_3<dim, spacedim>(cell,
-                                                       scratch_data,
                                                        copy_data,
                                                        coarse_component,
                                                        coarse_grid.get_fe(),
@@ -4195,7 +4193,7 @@ namespace DoFTools
                         coarse_grid.end(),
                         worker,
                         copier,
-                        scratch,
+                        Assembler::Scratch(),
                         copy_data);
 
 #ifdef DEAL_II_WITH_MPI

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.