From 9e3d946d1386cc86942a32045cba1929e8419e0f Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 14 Nov 2024 21:35:41 -0700 Subject: [PATCH] Minor cleanup. --- source/dofs/dof_tools_constraints.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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 -- 2.39.5