]> https://gitweb.dealii.org/ - dealii.git/commitdiff
deprecated apply_constraints method in filtered_matrix 508/head
authorDakshina Ilangovan <dakshinai@tamu.edu>
Tue, 10 Feb 2015 06:17:35 +0000 (00:17 -0600)
committerDakshina Ilangovan <dakshinai@tamu.edu>
Tue, 10 Feb 2015 06:17:35 +0000 (00:17 -0600)
include/deal.II/lac/filtered_matrix.h

index 4deeb74a5d044ceae8807ed5bcca89ec5726da1b..a334c00da28eb0b9fea107a648d3ef1bc8394819 100644 (file)
@@ -410,9 +410,15 @@ public:
    * before starting to solve with the filtered matrix. If the matrix is
    * symmetric (i.e. the matrix itself, not only its sparsity pattern), set
    * the second parameter to @p true to use a faster algorithm.
+   * Note: This method is deprecated as matrix_is_symmetric parameter is no longer used.
    */
   void apply_constraints (VECTOR     &v,
-                          const bool  matrix_is_symmetric) const;
+                          const bool  matrix_is_symmetric) const DEAL_II_DEPRECATED;
+  /**
+   * Apply the constraints to a right hand side vector. This needs to be done
+   * before starting to solve with the filtered matrix.
+   */
+  void apply_constraints (VECTOR     &v) const;
 
   /**
    * Matrix-vector multiplication: this operation performs pre_filter(),
@@ -811,6 +817,16 @@ void
 FilteredMatrix<VECTOR>::apply_constraints (
   VECTOR     &v,
   const bool  /* matrix_is_symmetric */) const
+{
+  apply_constraints(v);
+}
+
+
+template <class VECTOR>
+inline
+void
+FilteredMatrix<VECTOR>::apply_constraints (
+  VECTOR     &v) const
 {
   GrowingVectorMemory<VECTOR> mem;
   typename VectorMemory<VECTOR>::Pointer tmp_vector(mem);
@@ -837,7 +853,6 @@ FilteredMatrix<VECTOR>::apply_constraints (
 }
 
 
-
 template <class VECTOR>
 inline
 void

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.