]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add missing compress() implementations. Oops.
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 13 Feb 2013 19:04:33 +0000 (19:04 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 13 Feb 2013 19:04:33 +0000 (19:04 +0000)
git-svn-id: https://svn.dealii.org/trunk@28391 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/block_vector_base.h
deal.II/include/deal.II/lac/parallel_vector.h
deal.II/include/deal.II/lac/trilinos_vector_base.h
deal.II/source/lac/petsc_vector_base.cc

index 07e0a2e265dab3a85a1f5bc9b20034450b8806b0..2eca83b4d2789519a2d935ca56f02320de515a2c 100644 (file)
@@ -1838,6 +1838,16 @@ BlockVectorBase<VectorType>::compress (::dealii::VectorOperation::values operati
 
 
 
+template <class VectorType>
+inline
+void
+BlockVectorBase<VectorType>::compress ()
+{
+  compress(VectorOperation::unknown);
+}
+
+
+
 template <class VectorType>
 inline
 typename BlockVectorBase<VectorType>::iterator
index 5a86258671f131055f6931c55fc505d57adeacac..a99f840b488312e75662a853a4d95f1430fc9194 100644 (file)
@@ -293,9 +293,12 @@ namespace parallel
        * distributed vectors and matrices"
        * in the glossary.
        */
-      void compress (::dealii::VectorOperation::values operation
-                     =::dealii::VectorOperation::unknown);
+      void compress (::dealii::VectorOperation::values operation);
 
+      /**
+       * @deprecated: use compress(VectorOperation::values) instead.
+       */
+      void compress () DEAL_II_DEPRECATED;
 
       /**
        * Fills the data field for ghost indices with
@@ -1144,6 +1147,13 @@ namespace parallel
         compress_finish (true);
     }
 
+    template <typename Number>
+    inline
+    void
+    Vector<Number>::compress ()
+    {
+      compress(VectorOperation::unknown);
+    }
 
 
     template <typename Number>
index f29f5745f560284433b86f6d21c8d4ce8401686e..71dc75401647408cd6ccbac7346e64da2ce1e9c9 100644 (file)
@@ -1295,6 +1295,15 @@ namespace TrilinosWrappers
 
 
 
+  inline
+  void
+  VectorBase::compress ()
+  {
+    compress(VectorOperation::unknown);
+  }
+
+
+
   inline
   VectorBase &
   VectorBase::operator = (const TrilinosScalar s)
index b6560781b0806a34d474eee0668c86817651320e..4e3622e0e1049eca4a9eb662cc21842d603e0387 100644 (file)
@@ -405,6 +405,14 @@ namespace PETScWrappers
 
 
 
+  void
+  VectorBase::compress ()
+  {
+    compress(VectorOperation::unknown);
+  }
+
+
+
   VectorBase::real_type
   VectorBase::norm_sqr () const
   {

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.