]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Particles: Remove template on sparsity pattern type. 14432/head
authorDavid Wells <drwells@email.unc.edu>
Sat, 5 Nov 2022 02:33:46 +0000 (22:33 -0400)
committerDavid Wells <drwells@email.unc.edu>
Wed, 16 Nov 2022 03:01:06 +0000 (22:01 -0500)
include/deal.II/particles/utilities.h
source/particles/utilities.cc
source/particles/utilities.inst.in

index daa55e9780062aac9c49394eac06e7b76bde7707..97840718197c533327200882eec831f9d03c5efe 100644 (file)
@@ -30,6 +30,7 @@
 #include <deal.II/grid/grid_tools_cache.h>
 
 #include <deal.II/lac/affine_constraints.h>
+#include <deal.II/lac/sparsity_pattern_base.h>
 
 #include <deal.II/particles/particle_handler.h>
 
@@ -90,15 +91,12 @@ namespace Particles
      * AffineConstraints::add_entries_local_to_global() is used to fill the
      * final sparsity pattern.
      */
-    template <int dim,
-              int spacedim,
-              typename SparsityType,
-              typename number = double>
+    template <int dim, int spacedim, typename number = double>
     void
     create_interpolation_sparsity_pattern(
       const DoFHandler<dim, spacedim> &                space_dh,
       const Particles::ParticleHandler<dim, spacedim> &particle_handler,
-      SparsityType &                                   sparsity,
+      SparsityPatternBase &                            sparsity,
       const AffineConstraints<number> &                constraints =
         AffineConstraints<number>(),
       const ComponentMask &space_comps = ComponentMask());
index 897abf99b951594dad63af1fde3ad5f2acb243ee..570df8b90b8715aa564ea88e849d13797d45e793 100644 (file)
@@ -27,12 +27,12 @@ namespace Particles
 {
   namespace Utilities
   {
-    template <int dim, int spacedim, typename SparsityType, typename number>
+    template <int dim, int spacedim, typename number>
     void
     create_interpolation_sparsity_pattern(
       const DoFHandler<dim, spacedim> &                space_dh,
       const Particles::ParticleHandler<dim, spacedim> &particle_handler,
-      SparsityType &                                   sparsity,
+      SparsityPatternBase &                            sparsity,
       const AffineConstraints<number> &                constraints,
       const ComponentMask &                            space_comps)
     {
index 4132f14c1adddb79507ba22bec08bb4aa9eda99c..94c72da49345a73b29f28ed93b49824f2d696752 100644 (file)
 // ---------------------------------------------------------------------
 
 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<deal_II_dimension,
                                                         deal_II_space_dimension,
-                                                        Sparsity,
                                                         scalar>(
       const DoFHandler<deal_II_dimension, deal_II_space_dimension> &space_dh,
       const Particles::ParticleHandler<deal_II_dimension,
                                        deal_II_space_dimension>
         &                              particle_handler,
-      Sparsity &                       sparsity,
+      SparsityPatternBase &            sparsity,
       const AffineConstraints<scalar> &constraints,
       const ComponentMask &            space_comps);
 #endif

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.