From ba348102dde42748add84dc48446260c5b624696 Mon Sep 17 00:00:00 2001 From: David Wells Date: Fri, 4 Nov 2022 22:33:46 -0400 Subject: [PATCH] Particles: Remove template on sparsity pattern type. --- include/deal.II/particles/utilities.h | 8 +++----- source/particles/utilities.cc | 4 ++-- source/particles/utilities.inst.in | 4 +--- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/include/deal.II/particles/utilities.h b/include/deal.II/particles/utilities.h index daa55e9780..9784071819 100644 --- a/include/deal.II/particles/utilities.h +++ b/include/deal.II/particles/utilities.h @@ -30,6 +30,7 @@ #include #include +#include #include @@ -90,15 +91,12 @@ namespace Particles * AffineConstraints::add_entries_local_to_global() is used to fill the * final sparsity pattern. */ - template + template void create_interpolation_sparsity_pattern( const DoFHandler & space_dh, const Particles::ParticleHandler &particle_handler, - SparsityType & sparsity, + SparsityPatternBase & sparsity, const AffineConstraints & constraints = AffineConstraints(), const ComponentMask &space_comps = ComponentMask()); diff --git a/source/particles/utilities.cc b/source/particles/utilities.cc index 897abf99b9..570df8b90b 100644 --- a/source/particles/utilities.cc +++ b/source/particles/utilities.cc @@ -27,12 +27,12 @@ namespace Particles { namespace Utilities { - template + template void create_interpolation_sparsity_pattern( const DoFHandler & space_dh, const Particles::ParticleHandler &particle_handler, - SparsityType & sparsity, + SparsityPatternBase & sparsity, const AffineConstraints & constraints, const ComponentMask & space_comps) { diff --git a/source/particles/utilities.inst.in b/source/particles/utilities.inst.in index 4132f14c1a..94c72da493 100644 --- a/source/particles/utilities.inst.in +++ b/source/particles/utilities.inst.in @@ -14,19 +14,17 @@ // --------------------------------------------------------------------- for (deal_II_dimension : DIMENSIONS; deal_II_space_dimension : SPACE_DIMENSIONS; - Sparsity : SPARSITY_PATTERNS; scalar : REAL_SCALARS) { #if deal_II_dimension <= deal_II_space_dimension && deal_II_dimension > 1 template void create_interpolation_sparsity_pattern( const DoFHandler &space_dh, const Particles::ParticleHandler & particle_handler, - Sparsity & sparsity, + SparsityPatternBase & sparsity, const AffineConstraints &constraints, const ComponentMask & space_comps); #endif -- 2.39.5