From: Wolfgang Bangerth Date: Fri, 15 Nov 2024 04:35:41 +0000 (-0700) Subject: Minor cleanup. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e3d946d1386cc86942a32045cba1929e8419e0f;p=dealii.git Minor cleanup. --- diff --git a/source/dofs/dof_tools_constraints.cc b/source/dofs/dof_tools_constraints.cc index 2a2fb00456..4bc29db45a 100644 --- a/source/dofs/dof_tools_constraints.cc +++ b/source/dofs/dof_tools_constraints.cc @@ -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::active_cell_iterator &cell, - const Assembler::Scratch &, Assembler::CopyData ©_data, const unsigned int coarse_component, const FiniteElement &coarse_fe, @@ -4107,7 +4107,6 @@ namespace DoFTools const std::vector &weight_mapping, std::vector> &weights) { - Assembler::Scratch scratch; Assembler::CopyData copy_data; unsigned int n_interesting_dofs = 0; @@ -4165,11 +4164,10 @@ namespace DoFTools &coarse_to_fine_grid_map, ¶meter_dofs]( const typename DoFHandler::active_cell_iterator - &cell, - const Assembler::Scratch &scratch_data, + &cell, + const Assembler::Scratch &, Assembler::CopyData ©_data) { compute_intergrid_weights_3(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