]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Do not use 'static' functions in header files. 18223/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 10 Mar 2025 23:53:00 +0000 (17:53 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 11 Mar 2025 03:31:23 +0000 (21:31 -0600)
include/deal.II/fe/fe_tools.templates.h
include/deal.II/numerics/matrix_creator.templates.h
include/deal.II/numerics/vector_tools_boundary.templates.h
include/deal.II/numerics/vector_tools_integrate_difference.templates.h

index 1f3ec76b14472c39caeacaec0c24dd3b9cf732c0..5cd3518c77bc072a54cf7736c8f72daae7fbbdc9 100644 (file)
@@ -2905,7 +2905,7 @@ namespace FETools
       // FETools::convert_generalized_support_point_values_to_dof_values
 
       template <int dim, int spacedim, typename number>
-      static void
+      void
       convert_helper(const FiniteElement<dim, spacedim> &finite_element,
                      const std::vector<Vector<number>>  &support_point_values,
                      std::vector<number>                &dof_values)
@@ -2937,7 +2937,7 @@ namespace FETools
 
 
       template <int dim, int spacedim, typename number>
-      static void
+      void
       convert_helper(
         const FiniteElement<dim, spacedim>              &finite_element,
         const std::vector<Vector<std::complex<number>>> &support_point_values,
@@ -2995,7 +2995,7 @@ namespace FETools
 
 
       template <int dim, int spacedim>
-      static void
+      void
       convert_helper(const FiniteElement<dim, spacedim> &finite_element,
                      const std::vector<Vector<double>>  &support_point_values,
                      std::vector<double>                &dof_values)
index 4fbb7b289fc8ffbae309d6c02994ba3c0104e24f..f7c3569ff82e45c587c6c8c8fc88a5c9296bd513 100644 (file)
@@ -983,7 +983,7 @@ namespace MatrixCreator
   namespace internal
   {
     template <int dim, int spacedim, typename number>
-    void static inline create_boundary_mass_matrix_1(
+    void inline create_boundary_mass_matrix_1(
       const typename DoFHandler<dim, spacedim>::active_cell_iterator &cell,
       const MatrixCreator::internal::AssemblerBoundary::Scratch &,
       MatrixCreator::internal::AssemblerBoundary::
@@ -1311,6 +1311,7 @@ namespace MatrixCreator
       DEAL_II_NOT_IMPLEMENTED();
     }
 
+
     template <>
     void inline create_boundary_mass_matrix_1<1, 3, double>(
       const DoFHandler<1, 3>::active_cell_iterator & /*cell*/,
index 51d73f1869c261b4f730b870a7707ed11ed21714..8f51c6a14505a23c06d0b5110b6d0b4797b819b6 100644 (file)
@@ -55,7 +55,7 @@ namespace VectorTools
               typename number,
               template <int, int>
               class M_or_MC>
-    static inline void
+    inline void
     do_interpolate_boundary_values(
       const M_or_MC<dim, spacedim>    &mapping,
       const DoFHandler<dim, spacedim> &dof,
index 53543aad417c319a88ac8c2b890ce370b71571c6..6065dd9190f97f06a0910e78a558532b11d07e59 100644 (file)
@@ -431,7 +431,7 @@ namespace VectorTools
 
     template <int dim, int spacedim, typename Number, class OutVector>
     DEAL_II_CXX20_REQUIRES(concepts::is_writable_dealii_vector_type<OutVector>)
-    static void do_integrate_difference(
+    void do_integrate_difference(
       const dealii::hp::MappingCollection<dim, spacedim> &mapping,
       const DoFHandler<dim, spacedim>                    &dof,
       const ReadVector<Number>                           &fe_function,

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.