From: David Wells Date: Sat, 5 Nov 2022 02:33:46 +0000 (-0400) Subject: Particles: Remove template on sparsity pattern type. X-Git-Tag: v9.5.0-rc1~847^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba348102dde42748add84dc48446260c5b624696;p=dealii.git Particles: Remove template on sparsity pattern type. --- 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