]> https://gitweb.dealii.org/ - dealii.git/commitdiff
remove static "default_empty_table"
authorMatthias Maier <tamiko@43-1.org>
Thu, 24 May 2018 20:41:21 +0000 (15:41 -0500)
committerMatthias Maier <tamiko@43-1.org>
Wed, 6 Jun 2018 15:19:38 +0000 (10:19 -0500)
include/deal.II/lac/affine_constraints.h
source/lac/affine_constraints.cc

index afa26311327cab46a34715b0c83fa73770761b21..b829fd826cbfaf6e21d3dc279cb74c4ff66c4f5a 100644 (file)
@@ -1091,7 +1091,7 @@ public:
     const std::vector<size_type> &local_dof_indices,
     SparsityPatternType &         sparsity_pattern,
     const bool                    keep_constrained_entries = true,
-    const Table<2, bool> &        dof_mask = default_empty_table) const;
+    const Table<2, bool> &        dof_mask = Table<2, bool>()) const;
 
   /**
    * Similar to the other function, but for non-quadratic sparsity patterns.
@@ -1103,7 +1103,7 @@ public:
     const std::vector<size_type> &col_indices,
     SparsityPatternType &         sparsity_pattern,
     const bool                    keep_constrained_entries = true,
-    const Table<2, bool> &        dof_mask = default_empty_table) const;
+    const Table<2, bool> &        dof_mask = Table<2, bool>()) const;
 
   /**
    * This function imports values from a global vector (@p global_vector) by
@@ -1465,12 +1465,6 @@ private:
   static bool
   check_zero_weight(const std::pair<size_type, number> &p);
 
-  /**
-   * Dummy table that serves as default argument for function
-   * <tt>add_entries_local_to_global()</tt>.
-   */
-  static const Table<2, bool> default_empty_table;
-
   /**
    * This function actually implements the local_to_global function for
    * standard (non-block) matrices.
index dc9f3a4cb9ad3186fdac2a5f109caa1ce57332ee..0dd3e6f791b9d3bf2f6d79a59910028b9b727525 100644 (file)
@@ -48,11 +48,6 @@ DEAL_II_NAMESPACE_OPEN
 
 
 
-// Static member variable
-const Table<2,bool> AffineConstraints::default_empty_table = Table<2,bool>();
-
-
-
 void
 AffineConstraints::copy_from (const AffineConstraints &other)
 {

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.