]> https://gitweb.dealii.org/ - dealii.git/commitdiff
add dummy compress function to SparseMatrix
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Sat, 25 May 2013 21:13:30 +0000 (21:13 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Sat, 25 May 2013 21:13:30 +0000 (21:13 +0000)
git-svn-id: https://svn.dealii.org/trunk@29602 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/sparse_matrix.h
deal.II/include/deal.II/lac/sparse_matrix.templates.h
deal.II/source/multigrid/mg_transfer_prebuilt.cc

index 1eacd52948841ae410d2e8faf288d0e1c89ad014..e9b2bdffb58e6f41f01906b07405fa43fdbb387f 100644 (file)
@@ -19,6 +19,8 @@
 #include <deal.II/lac/sparsity_pattern.h>
 #include <deal.II/lac/identity_matrix.h>
 #include <deal.II/lac/exceptions.h>
+// Included for VectorOperation
+#include <deal.II/lac/vector.h>
 
 DEAL_II_NAMESPACE_OPEN
 
@@ -27,7 +29,6 @@ template <typename number> class FullMatrix;
 template <typename Matrix> class BlockMatrixBase;
 template <typename number> class SparseILU;
 
-
 #ifdef DEAL_II_WITH_TRILINOS
 namespace TrilinosWrappers
 {
@@ -470,8 +471,9 @@ namespace SparseMatrixIterators
  * @<double@></tt>; others can be generated in application programs (see the
  * section on @ref Instantiations in the manual).
  *
+ * @ingroup Matrix1
  * @author Essentially everyone who has ever worked on deal.II
- * @date 1994-2010
+ * @date 1994-2013
  */
 template <typename number>
 class SparseMatrix : public virtual Subscriptor
@@ -696,6 +698,11 @@ public:
    * object. See MemoryConsumption.
    */
   std::size_t memory_consumption () const;
+  
+  /**
+   * Dummy function for compatibility with distributed, parallel matrices.
+   */
+  void compress (::dealii::VectorOperation::values);
 
 //@}
   /**
index ce97bbcaeee535bfed9abd0a126745c108b0734f..af84fa9a5ebf9fda6f8adaccd27c5b5a78ebb71a 100644 (file)
@@ -1931,6 +1931,11 @@ SparseMatrix<number>::block_read (std::istream &in)
 }
 
 
+template <typename number>
+void
+SparseMatrix<number>::compress (::dealii::VectorOperation::values)
+{}
+
 
 template <typename number>
 std::size_t
index 2d687da908bec66bf1a715ad6c6169edd0f01a87..17f69b58646cde7f72741371005b38b38bf1b7a4 100644 (file)
@@ -227,6 +227,7 @@ void MGTransferPrebuilt<VECTOR>::build_matrices (
                                                      true);
               }
           }
+      prolongation_matrices[level]->compress(VectorOperation::insert);
     }
 
 

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.