]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove deprecated function *Vector*::compress() without argument.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 5 Jan 2015 14:57:03 +0000 (08:57 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 9 Jan 2015 06:56:05 +0000 (00:56 -0600)
68 files changed:
doc/news/changes.h
include/deal.II/lac/block_vector_base.h
include/deal.II/lac/parallel_vector.h
include/deal.II/lac/petsc_vector_base.h
include/deal.II/lac/trilinos_vector_base.h
source/lac/petsc_vector_base.cc
tests/lac/ala_01.cc
tests/trilinos/11.cc
tests/trilinos/12.cc
tests/trilinos/13.cc
tests/trilinos/15.cc
tests/trilinos/17.cc
tests/trilinos/18.cc
tests/trilinos/19.cc
tests/trilinos/20.cc
tests/trilinos/21.cc
tests/trilinos/22.cc
tests/trilinos/23.cc
tests/trilinos/24.cc
tests/trilinos/25.cc
tests/trilinos/26.cc
tests/trilinos/27.cc
tests/trilinos/28.cc
tests/trilinos/30.cc
tests/trilinos/31.cc
tests/trilinos/32.cc
tests/trilinos/33.cc
tests/trilinos/34.cc
tests/trilinos/35.cc
tests/trilinos/36.cc
tests/trilinos/37.cc
tests/trilinos/38.cc
tests/trilinos/39.cc
tests/trilinos/40.cc
tests/trilinos/41.cc
tests/trilinos/42.cc
tests/trilinos/43.cc
tests/trilinos/44.cc
tests/trilinos/45.cc
tests/trilinos/46.cc
tests/trilinos/47.cc
tests/trilinos/48.cc
tests/trilinos/51.cc
tests/trilinos/53.cc
tests/trilinos/54.cc
tests/trilinos/55.cc
tests/trilinos/56.cc
tests/trilinos/57.cc
tests/trilinos/58.cc
tests/trilinos/59.cc
tests/trilinos/60.cc
tests/trilinos/61.cc
tests/trilinos/deal_solver_01.cc
tests/trilinos/deal_solver_02.cc
tests/trilinos/deal_solver_03.cc
tests/trilinos/deal_solver_04.cc
tests/trilinos/deal_solver_05.cc
tests/trilinos/deal_solver_06.cc
tests/trilinos/solver_03.cc
tests/trilinos/solver_05.cc
tests/trilinos/solver_07.cc
tests/trilinos/sparse_matrix_vector_01.cc
tests/trilinos/sparse_matrix_vector_02.cc
tests/trilinos/sparse_matrix_vector_03.cc
tests/trilinos/sparse_matrix_vector_04.cc
tests/trilinos/sparse_matrix_vector_05.cc
tests/trilinos/sparse_matrix_vector_06.cc
tests/trilinos/sparse_matrix_vector_07.cc

index 0b672c655d50471e567611fdd1f4189767e607db..0f6ae16aea3731e174bddb05d6504987f20ee2a0 100644 (file)
@@ -105,6 +105,9 @@ inconvenience this causes.
 - The deprecated constructor of SparseILU.
 - SparseILU::apply_decomposition.
 - The deprecated constructor of SparseMIC.
+- The compress() functions without argument in the various vector
+  classes. You should use the versions with a VectorOperation
+  argument instead.
 
 <!-- ----------- GENERAL IMPROVEMENTS ----------------- -->
 
index 9b15eab2bcc7a84219a6e797b7e1167b8226a42e..2830ade01601ca3372827c7cdbb0b794bca6864f 100644 (file)
@@ -629,11 +629,6 @@ public:
    */
   void compress (::dealii::VectorOperation::values operation);
 
-  /**
-   * @deprecated: use compress(VectorOperation::values) instead.
-   */
-  void compress () DEAL_II_DEPRECATED;
-
   /**
    * Access to a single block.
    */
@@ -1691,16 +1686,6 @@ 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 a633a89dedbbd05653127853fc7c89f2bf2730fe..457782cfb8d8101fc5d0a12a6e5053c1d7b17c65 100644 (file)
@@ -370,11 +370,6 @@ namespace parallel
        */
       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 the values stored in the
        * respective positions of the owning processor. This function is needed
@@ -1333,16 +1328,6 @@ namespace parallel
 
 
 
-    template <typename Number>
-    inline
-    void
-    Vector<Number>::compress ()
-    {
-      compress(VectorOperation::unknown);
-    }
-
-
-
     template <typename Number>
     inline
     void
index a6f3392a24c09c79efd9cfde5dd499ba3b84df33..ebe9b7bac5cb6d1cd23bb5f6a5f9f7769b33fde2 100644 (file)
@@ -272,11 +272,6 @@ namespace PETScWrappers
      */
     void compress (::dealii::VectorOperation::values operation);
 
-    /**
-     * @deprecated: use compress(VectorOperation::values) instead.
-     */
-    void compress () DEAL_II_DEPRECATED;
-
     /**
      * Set all components of the vector to the given number @p s. Simply pass
      * this down to the individual block objects, but we still need to declare
index 9235eec0deff00d6d58dbec4abbb78b842cabfdf..50d54123fa1892c18fddd06aef1048d30412fb8d 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2008 - 2014 by the deal.II authors
+// Copyright (C) 2008 - 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -282,12 +282,6 @@ namespace TrilinosWrappers
      */
     void compress (::dealii::VectorOperation::values operation);
 
-    /**
-     * @deprecated: Use the compress(VectorOperation::values) function above
-     * instead.
-     */
-    void compress() DEAL_II_DEPRECATED;
-
     /**
      * @deprecated Use compress(dealii::VectorOperation::values) instead.
      */
@@ -1230,15 +1224,6 @@ namespace TrilinosWrappers
 
 
 
-  inline
-  void
-  VectorBase::compress ()
-  {
-    compress(VectorOperation::unknown);
-  }
-
-
-
   inline
   VectorBase &
   VectorBase::operator = (const TrilinosScalar s)
index 26324e95f69ebc56c6ec0b4f61460f45fa2dbbff..a90e093ce2dd32b7205bf27f60838f045b0cf6d1 100644 (file)
@@ -418,14 +418,6 @@ namespace PETScWrappers
 
 
 
-  void
-  VectorBase::compress ()
-  {
-    compress(VectorOperation::unknown);
-  }
-
-
-
   VectorBase::real_type
   VectorBase::norm_sqr () const
   {
index 3e87f8ce497514054f45afb3ea4185ddacb68e11..9604b91f14cc0c2e5e65921754ed0eecd7c25965 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -29,7 +29,7 @@ void test ()
   VEC x(3);
   x(0)=10;
   deallog << x.l2_norm() << std::endl;
-  x.compress();
+  x.compress(VectorOperation::insert);
 
   deallog << "OK" << std::endl;
 }
index 83613362e89762ee943be3be7cb046474330093b..b8601816c25a79d5336b5a5a7cfcdbcf49822ff2 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -30,7 +30,7 @@ void test (TrilinosWrappers::Vector &v)
   for (unsigned int i=0; i<v.size(); i+=1+i)
     v(i) = i;
 
-  v.compress ();
+  v.compress (VectorOperation::insert);
 
   Assert (v.size() == 100, ExcInternalError());
 
index 0a7d37df7340a225b9fff79058b4bc7dc9a4be84..8728bb5e796ff7ff27ae081b22bfcdb08e1809b8 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -37,7 +37,7 @@ void test (TrilinosWrappers::Vector &v)
       pattern[i] = true;
     }
 
-  v.compress ();
+  v.compress (VectorOperation::insert);
 
   // check that they are ok, and this time
   // all of them
index a8491ec5d561cf5f84082f7ed17eddd41bc5a247..566a9dbb67b289de064726f1b132d587d280f36e 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -37,7 +37,7 @@ void test (TrilinosWrappers::Vector &v)
       pattern[i] = true;
     }
 
-  v.compress ();
+  v.compress (VectorOperation::add);
 
   // check that they are ok, and this time
   // all of them
index 28eabf75ff69256f09f189932be3c0296b8c585f..31484961250438e9bcb01e234050b29b9bc68092 100644 (file)
@@ -53,6 +53,7 @@ void test (TrilinosWrappers::Vector &v)
       v(i) = i;
       pattern[i] = true;
     }
+  v.compress (VectorOperation::insert);
   for (unsigned int i=0; i<v.size(); i+=1+i)
     v(i) += i;
 
index 2b1db638bbf07d5fa2246c300f401adda944787e..1989297f7f74e23a07391d408258ad8be0fead1c 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -34,7 +34,7 @@ void test (TrilinosWrappers::Vector &v)
       v(i) = i;
       norm += std::fabs(1.*i);
     }
-  v.compress ();
+  v.compress (VectorOperation::insert);
 
   // then check the norm
   Assert (v.l1_norm() == norm, ExcInternalError());
index df67eed4e057b7ee98cb8fb4d40b124ac02a13db..edbad2d6bf351c350021945819b2333828350c62 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -34,7 +34,7 @@ void test (TrilinosWrappers::Vector &v)
       v(i) = i;
       norm += std::fabs(1.*i)*std::fabs(1.*i);
     }
-  v.compress ();
+  v.compress (VectorOperation::insert);
 
   // then check the norm
   const double eps=typeid(TrilinosScalar)==typeid(double) ? 1e-14 : 1e-5;
index 4be5660b82e7baf06b897fcaa36087de7a60bb49..3f984bb8c98b72617d7bf14b7799146e3ac430c3 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -34,7 +34,7 @@ void test (TrilinosWrappers::Vector &v)
       v(i) = i;
       norm = std::max(norm,fabs(i));
     }
-  v.compress ();
+  v.compress (VectorOperation::insert);
 
   // then check the norm
   Assert (v.linfty_norm() == norm, ExcInternalError());
index 35bc210df8512470571481a737ca99e5e3124eb8..8552fb7b79ff8e3a4b4f28dd78c0e48b18a577ff 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -36,7 +36,7 @@ void test (TrilinosWrappers::Vector &v)
       v(i) = i;
       pattern[i] = true;
     }
-  v.compress ();
+  v.compress (VectorOperation::insert);
 
   // multiply v with 5/4
   v *= 5./4.;
index 9d6ac718e07b0babb9170c3c22eb4b1858848993..c7b374d60b5a442b1ac331b9eab489317e11eec6 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -36,7 +36,7 @@ void test (TrilinosWrappers::Vector &v)
       v(i) = i;
       pattern[i] = true;
     }
-  v.compress ();
+  v.compress (VectorOperation::insert);
 
   // multiply v with 3/4
   v /= 4./3.;
index 9a992f53d71b4dbf1ff95aaefb57be7b683c164d..28884099a51ffd7fb3b23f39bcac9335878d5e4a 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -36,8 +36,8 @@ void test (TrilinosWrappers::Vector &v,
       v(i) = i;
     else
       w(i) = i;
-  v.compress ();
-  w.compress ();
+  v.compress (VectorOperation::insert);
+  w.compress (VectorOperation::insert);
 
   // make sure the scalar product is zero
   Assert (v*w == 0, ExcInternalError());
index ae6e5067adaa39d3c91c6c09e07f4f864a20a205..1566112cd59e21231039666bb2d730c51c029757 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -43,8 +43,8 @@ void test (TrilinosWrappers::Vector &v,
         }
     }
 
-  v.compress ();
-  w.compress ();
+  v.compress (VectorOperation::insert);
+  w.compress (VectorOperation::insert);
 
   // make sure the scalar product is zero
   Assert (v*w == product, ExcInternalError());
index ae60e521f30114af6057994b6ec6a7592abe79ff..e4f6e649e2ce5e7bf7de4878c615af3485a88269 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -33,7 +33,7 @@ void test (TrilinosWrappers::Vector &v)
   for (unsigned int i=0; i<v.size(); ++i)
     if (i%3 == 0)
       v(i) = i+1.;
-  v.compress ();
+  v.compress (VectorOperation::insert);
 
   // then clear it again and make sure the
   // vector is really empty
index 53badc5b36d539f3bf791ca333858fb027a07339..110e25f8a17a4469a884c61e03d5ac75b5ccb9bc 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -31,7 +31,7 @@ void test (TrilinosWrappers::Vector &v)
   for (unsigned int i=0; i<v.size(); ++i)
     if (i%3 == 0)
       v(i) = i+1.;
-  v.compress ();
+  v.compress (VectorOperation::insert);
 
   // then clear it again and make sure the
   // vector is really empty
index 2a19ebfcb78963418d790fbd48270f5ad1684342..81bfc5805cf89c1c576c163f661f3d785da9ac82 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -32,7 +32,7 @@ void test (TrilinosWrappers::Vector &v)
   for (unsigned int i=0; i<v.size(); ++i)
     if (i%3 == 0)
       v(i) = i+1.;
-  v.compress ();
+  v.compress (VectorOperation::insert);
 
   const unsigned int sz = v.size();
   v = 2;
index 2ecb254c4cea12ab5a6963cffff054fd718dba8f..50f26115ee55e66976c8c0c1d20d358829c99f74 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -31,7 +31,7 @@ void test (TrilinosWrappers::Vector &v)
   for (unsigned int i=0; i<v.size(); ++i)
     if (i%3 == 0)
       v(i) = i+1.;
-  v.compress ();
+  v.compress (VectorOperation::insert);
 
   // then copy it
   TrilinosWrappers::Vector w (v.size());
index 299ecf503efddaaec9f296c9fc8515b1c60cc368..6b48afe9249537d526fc3027628d725edc0b067b 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -32,7 +32,7 @@ void test (TrilinosWrappers::Vector &v)
   for (unsigned int i=0; i<v.size(); ++i)
     if (i%3 == 0)
       v(i) = i+1.;
-  v.compress ();
+  v.compress (VectorOperation::insert);
 
   // then copy it to a vector of different
   // size
index 06845b9cb8f2ea922942eee4492f80aa9df7be93..d70f3096c06a8f367feb73bed91f1c55c1c22edc 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -31,7 +31,7 @@ void test (TrilinosWrappers::Vector &v)
   for (unsigned int i=0; i<v.size(); ++i)
     if (i%3 == 0)
       v(i) = i+1.;
-  v.compress ();
+  v.compress (VectorOperation::insert);
 
   // then resize with setting to zero
   v.reinit (13);
index 9d86466c711e7adf1027f18a1f8837e460d306e4..1a5ecd027c5028e1212d84dd82aec36fd3a9d794 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -34,7 +34,7 @@ void test (TrilinosWrappers::Vector &v)
       v(i) = i;
       norm += std::fabs(1.*i)*std::fabs(1.*i);
     }
-  v.compress ();
+  v.compress (VectorOperation::insert);
 
   // then check the norm
   const double eps=typeid(TrilinosScalar)==typeid(double) ? 1e-14 : 1e-5;
index 1c3d2f474c801a48010855a249adb41d98650bc3..42722c60459aa20d2a161dcfaa6ce709d840cc52 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -34,7 +34,7 @@ void test (TrilinosWrappers::Vector &v)
       v(i) = i;
       sum += i;
     }
-  v.compress ();
+  v.compress (VectorOperation::insert);
 
   // then check the norm
   const double eps=typeid(TrilinosScalar)==typeid(double) ? 1e-14 : 1e-5;
index 916f55a02ea3b2d060a8b75bfc52680eda8432de..e7018bb86d402837bb50edb8fa01e9214b9e3367 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -34,7 +34,7 @@ void test (TrilinosWrappers::Vector &v)
       v(i) = i;
       sum += i*i*i;
     }
-  v.compress ();
+  v.compress (VectorOperation::insert);
 
   // then check the norm
   const double eps=typeid(TrilinosScalar)==typeid(double) ? 1e-14 : 1e-5;
index d138aa33a8bdc434d88cc3459f6bc3582af305c5..afeeb9131ec54fa9914e2509749eab03617d9941 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -34,7 +34,7 @@ void test (TrilinosWrappers::Vector &v)
       v(i) = i;
       sum += i*i*i;
     }
-  v.compress ();
+  v.compress (VectorOperation::insert);
 
   // set them to zero again
   v = 0;
index 2c4d0aeaa63e0e9a8f70e61217bfad230ce55ffd..a47811c30c8eb0b989de8950d23c0c7b95b1cfb0 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -37,8 +37,8 @@ void test (TrilinosWrappers::Vector &v,
         w(i) = i+1.;
     }
 
-  v.compress ();
-  w.compress ();
+  v.compress (VectorOperation::insert);
+  w.compress (VectorOperation::insert);
 
   v += w;
 
index fc13983e56888197b8f14e7b19cbdb3a1e631f5f..397eeb216b001bcc4a0f5d10ae8d73c462d51637 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -37,8 +37,8 @@ void test (TrilinosWrappers::Vector &v,
         w(i) = i+1.;
     }
 
-  v.compress ();
-  w.compress ();
+  v.compress (VectorOperation::insert);
+  w.compress (VectorOperation::insert);
 
   v -= w;
 
index 785ce8e8e84664e83a7e53d95a3920f44b372eb8..ea88eb47982d076faac041a3880d4a51c8b5a789 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -30,7 +30,7 @@ void test (TrilinosWrappers::Vector &v)
   for (unsigned int i=0; i<v.size(); ++i)
     v(i) = i;
 
-  v.compress ();
+  v.compress (VectorOperation::insert);
 
   v.add (1.);
 
index 221c458dc67f877360f46d82b41bbcd4652819f6..9b1cbba1014d68e74dad9d50f78312b11ce9e7d6 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -34,8 +34,8 @@ void test (TrilinosWrappers::Vector &v,
       w(i) = i+1.;
     }
 
-  v.compress ();
-  w.compress ();
+  v.compress (VectorOperation::insert);
+  w.compress (VectorOperation::insert);
 
   v.add (w);
 
index b273ed52e4894ad92418b7b7d026eb627f7ad790..8a73b75b1bf445bf3651157e605c643bbd9f12c8 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -34,8 +34,8 @@ void test (TrilinosWrappers::Vector &v,
       w(i) = i+1.;
     }
 
-  v.compress ();
-  w.compress ();
+  v.compress (VectorOperation::insert);
+  w.compress (VectorOperation::insert);
 
   v.add (2, w);
 
index a6d30f98927ca41685085e79c7a5b2ab69ca63d0..65927359f500f38e402d3570f3ad2588b8e69cf6 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -36,9 +36,9 @@ void test (TrilinosWrappers::Vector &v,
       x(i) = i+2.;
     }
 
-  v.compress ();
-  w.compress ();
-  x.compress ();
+  v.compress (VectorOperation::insert);
+  w.compress (VectorOperation::insert);
+  x.compress (VectorOperation::insert);
 
   v.add (2, w, 3, x);
 
index 340342b2f02ef1147365aa926855e61261ea3b08..bf6acb46e7c13dddd98be61526e4bf1c57d21946 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -34,8 +34,8 @@ void test (TrilinosWrappers::Vector &v,
       w(i) = i+1.;
     }
 
-  v.compress ();
-  w.compress ();
+  v.compress (VectorOperation::insert);
+  w.compress (VectorOperation::insert);
 
   v.sadd (2, w);
 
index f34a8cfa10936e3a3ab461bbfd614fd2f7bf4b42..b42a82917b245cd31af929e54d71ae78a4b37023 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -34,8 +34,8 @@ void test (TrilinosWrappers::Vector &v,
       w(i) = i+1.;
     }
 
-  v.compress ();
-  w.compress ();
+  v.compress (VectorOperation::insert);
+  w.compress (VectorOperation::insert);
 
   v.sadd (3, 2, w);
 
index f82e634432379babcec90561f1c274defca9c84f..f67c6e6d6571577929e1c99dd425ea44cb8e7517 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -36,9 +36,9 @@ void test (TrilinosWrappers::Vector &v,
       x(i) = i+2.;
     }
 
-  v.compress ();
-  w.compress ();
-  x.compress ();
+  v.compress (VectorOperation::insert);
+  w.compress (VectorOperation::insert);
+  x.compress (VectorOperation::insert);
 
   v.sadd (1.5, 2, w, 3, x);
 
index 7c8539a5be423a760441313fe15cd5b8d6b2f19c..e4fa4a96bbb0aede16e2d2ba406cc01e8a14cefb 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -38,10 +38,10 @@ void test (TrilinosWrappers::Vector &v,
       y(i) = i+3.;
     }
 
-  v.compress ();
-  w.compress ();
-  x.compress ();
-  y.compress ();
+  v.compress (VectorOperation::insert);
+  w.compress (VectorOperation::insert);
+  x.compress (VectorOperation::insert);
+  y.compress (VectorOperation::insert);
 
   v.sadd (1.5, 2, w, 3, x, 4, y);
 
index 4b44715ff1f0fb44cae47d453fc115b86a988b33..2c70766e96c1be76e1b1f1a5a60eae46628b06c8 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -34,8 +34,8 @@ void test (TrilinosWrappers::Vector &v,
       w(i) = i+1.;
     }
 
-  v.compress ();
-  w.compress ();
+  v.compress (VectorOperation::insert);
+  w.compress (VectorOperation::insert);
 
   v.scale (w);
 
index f72759ee338aefef6beea9c1179c6b5b6d85ff07..dec1cf2ce08ee481c5bef96dd0d5cb11ed0a760f 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -34,8 +34,8 @@ void test (TrilinosWrappers::Vector &v,
       w(i) = i+1.;
     }
 
-  v.compress ();
-  w.compress ();
+  v.compress (VectorOperation::insert);
+  w.compress (VectorOperation::insert);
 
   v.equ (2, w);
 
index 157e9f33e9d7125d6c1224e26dd5ea02cb1fdabe..041d52a93fa03e492fbc1cb678927884ec92948f 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -36,9 +36,9 @@ void test (TrilinosWrappers::Vector &v,
       x(i) = i+2.;
     }
 
-  v.compress ();
-  w.compress ();
-  x.compress ();
+  v.compress (VectorOperation::insert);
+  w.compress (VectorOperation::insert);
+  x.compress (VectorOperation::insert);
 
   v.equ (2, w, 3, x);
 
index 5c1c7af690aa95cdbb3838b027ff1dc5f69d813f..e7d1f02a545bf19dd879880ddd04668ac9f98af9 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -36,9 +36,9 @@ void test (TrilinosWrappers::Vector &v,
       x(i) = i+2.;
     }
 
-  v.compress ();
-  w.compress ();
-  x.compress ();
+  v.compress (VectorOperation::insert);
+  w.compress (VectorOperation::insert);
+  x.compress (VectorOperation::insert);
 
   v.ratio (w, x);
 
index 86790b47ff4858885cde515d9ac5925889b29906..4d7f4fab6e289e6145ede4203d76f51eb75f1326 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -31,11 +31,11 @@ void test (TrilinosWrappers::Vector &v)
   for (unsigned int i=0; i<v.size(); ++i)
     if (i%3 == 0)
       v(i) = i+1.;
-  v.compress ();
+  v.compress (VectorOperation::insert);
 
   // then copy it
   TrilinosWrappers::Vector w (v);
-  w.compress ();
+  w.compress (VectorOperation::insert);
 
   // make sure they're equal
   deallog << v *w << ' ' << v.l2_norm() * w.l2_norm()
index b002e7a4b1f6660b69f99eb6baeaff2e9e8860f6..b39a2fefdda5078740d33d1af88a0c9924fdff6a 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -36,10 +36,11 @@ void test (TrilinosWrappers::Vector &v)
       v(i) = i;
       pattern[i] = true;
     }
+  v.compress (VectorOperation::insert);
   for (unsigned int i=0; i<v.size(); i+=1+i)
     v(i) += i;
 
-  v.compress ();
+  v.compress (VectorOperation::add);
 
   // check that they are ok, and this time
   // all of them
index 09f254f52d6a82ba17f6cf7086bc38a80ed0d28c..4e0d2e383fd146b0a8543173fd358551125a239f 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -36,10 +36,11 @@ void test (TrilinosWrappers::Vector &v)
       v(i) = 2*i;
       pattern[i] = true;
     }
+  v.compress (VectorOperation::insert);
   for (unsigned int i=0; i<v.size(); i+=1+i)
     v(i) -= i;
 
-  v.compress ();
+  v.compress (VectorOperation::add);
 
   // check that they are ok, and this time
   // all of them
index 56dfc57c6d295b4a168258999f261406cca06da2..005ef19a36ec5c65081ddf6a6392470b860e7cca 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -39,7 +39,7 @@ void test (TrilinosWrappers::Vector &v)
   for (unsigned int i=0; i<v.size(); i+=1+i)
     v(i) *= 2;
 
-  v.compress ();
+  v.compress (VectorOperation::insert);
 
   // check that they are ok, and this time
   // all of them
index 56c8b7c44bf9ff7fa308b7b93c07e466d1ff4949..efd22a954e8b2af2fe296e5da8cf272baeac638e 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -39,7 +39,7 @@ void test (TrilinosWrappers::Vector &v)
   for (unsigned int i=0; i<v.size(); i+=1+i)
     v(i) /= 2;
 
-  v.compress ();
+  v.compress (VectorOperation::insert);
 
   // check that they are ok, and this time
   // all of them
index f6150563b80b3c85bffecd1fe238cc06a1cfac91..2c2fe5e5d666837bde7026ecbf0fbe98740f6f19 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -36,7 +36,7 @@ void test (TrilinosWrappers::Vector &v)
       pattern[i] = true;
     }
 
-  v.compress ();
+  v.compress (VectorOperation::add);
 
   // check that the vector is really
   // non-negative
index d1c92c5a1e3073f465d3596c52ae27d17459afa3..cf1b148f22a763c002a01af7fcec5f9a0875c7a7 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -38,7 +38,7 @@ void test (TrilinosWrappers::Vector &v)
       pattern[i] = true;
     }
 
-  v.compress ();
+  v.compress (VectorOperation::add);
 
   Vector<double> w (v);
   Vector<float>  x (v);
index c5b1b4cfed7272ce88967e88d70907545a25dd23..9701c5452c12f8237e08b280f75f40ea49196184 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -38,7 +38,7 @@ void test (TrilinosWrappers::Vector &v)
       pattern[i] = true;
     }
 
-  v.compress ();
+  v.compress (VectorOperation::add);
 
   Vector<double> w (v);
   Vector<float>  x (v);
index 78f9794b68483b9c3219eb1b4f8285d1c0b8ae59..17af35cc05d71a90a2fef960573c4914329c5a7f 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -38,7 +38,7 @@ void test (TrilinosWrappers::Vector &v)
       pattern[i] = true;
     }
 
-  v.compress ();
+  v.compress (VectorOperation::add);
 
   Vector<double> w;
   w=v;
index 4bf25d01181d6b830f20edcad6cd334017aac0c3..5fd5f049010a68cf245a1ed0cbb4fb313666dceb 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -38,7 +38,7 @@ void test (TrilinosWrappers::Vector &v)
       pattern[i] = true;
     }
 
-  v.compress ();
+  v.compress (VectorOperation::add);
 
   Vector<double> w(v.size());
   w=v;
index ec0ae150e6cff1b2df087ad5f8ad86a3654cc0d5..14c36b4b7c093e5ea37d23a06a05704c2da33501 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2014 by the deal.II authors
+// Copyright (C) 2004 - 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -94,8 +94,8 @@ int main(int argc, char **argv)
     TrilinosWrappers::Vector  u(dim);
     f = 1.;
     A.compress ();
-    f.compress ();
-    u.compress ();
+    f.compress (VectorOperation::insert);
+    u.compress (VectorOperation::insert);
 
     GrowingVectorMemory<TrilinosWrappers::Vector> mem;
     SolverCG<TrilinosWrappers::Vector> solver(control, mem);
index 98014991b31dbc886437bded04da8923ff0c8962..21b3c5d5ea52a26d72fab417b5e8751e04cda83c 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2014 by the deal.II authors
+// Copyright (C) 2004 - 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -95,8 +95,8 @@ int main(int argc, char **argv)
     TrilinosWrappers::Vector  u(dim);
     f = 1.;
     A.compress ();
-    f.compress ();
-    u.compress ();
+    f.compress (VectorOperation::insert);
+    u.compress (VectorOperation::insert);
 
     GrowingVectorMemory<TrilinosWrappers::Vector> mem;
     SolverBicgstab<TrilinosWrappers::Vector> solver(control,mem);
index 52f477d159e41addb8da191b9ccf5dd8e92f99a0..394a9489f290c47cf6193b6952561ce3f22a9626 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2014 by the deal.II authors
+// Copyright (C) 2004 - 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -96,8 +96,8 @@ int main(int argc, char **argv)
     TrilinosWrappers::Vector  u(dim);
     f = 1.;
     A.compress ();
-    f.compress ();
-    u.compress ();
+    f.compress (VectorOperation::insert);
+    u.compress (VectorOperation::insert);
 
     GrowingVectorMemory<TrilinosWrappers::Vector> mem;
     SolverGMRES<TrilinosWrappers::Vector> solver(control,mem);
index 5af9b1f76fc856c9e3ea3264ecb981d483ad2212..87ee0046936b172a9b2e26634cd18ba6e59f7be9 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2014 by the deal.II authors
+// Copyright (C) 2004 - 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -95,8 +95,8 @@ int main(int argc, char **argv)
     TrilinosWrappers::Vector  u(dim);
     f = 1.;
     A.compress ();
-    f.compress ();
-    u.compress ();
+    f.compress (VectorOperation::insert);
+    u.compress (VectorOperation::insert);
 
     GrowingVectorMemory<TrilinosWrappers::Vector> mem;
     SolverMinRes<TrilinosWrappers::Vector> solver(control,mem);
index 7013d97b76a5684f09218c349f8bc7bc81af5f28..a34b93bf98cc11584057e7bdfd5925d1b45d7c63 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2014 by the deal.II authors
+// Copyright (C) 2004 - 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -94,8 +94,8 @@ int main(int argc, char **argv)
     TrilinosWrappers::Vector  u(dim);
     f = 1.;
     A.compress ();
-    f.compress ();
-    u.compress ();
+    f.compress (VectorOperation::insert);
+    u.compress (VectorOperation::insert);
 
     GrowingVectorMemory<TrilinosWrappers::Vector> mem;
     SolverQMRS<TrilinosWrappers::Vector> solver(control,mem);
index 9e8a68126ffaa362e5aca5b8d03d4bab3613d8ca..312b6bc111be37da892184aa37a5b39ea5188631 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2014 by the deal.II authors
+// Copyright (C) 2004 - 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -92,8 +92,8 @@ int main(int argc, char **argv)
     TrilinosWrappers::Vector  u(dim);
     f = 1.;
     A.compress ();
-    f.compress ();
-    u.compress ();
+    f.compress (VectorOperation::insert);
+    u.compress (VectorOperation::insert);
 
     GrowingVectorMemory<TrilinosWrappers::Vector> mem;
     SolverRichardson<TrilinosWrappers::Vector> solver(control,mem,0.1);
index 305c463d1e5c31f85a06201858ddeca7669ffea3..d73e57fccab86eb3a96ee7069ef29cbf85812861 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2014 by the deal.II authors
+// Copyright (C) 2004 - 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -89,8 +89,8 @@ int main(int argc, char **argv)
     TrilinosWrappers::Vector  u(dim);
     f = 1.;
     A.compress ();
-    f.compress ();
-    u.compress ();
+    f.compress (VectorOperation::insert);
+    u.compress (VectorOperation::insert);
 
     TrilinosWrappers::SolverCG solver(control);
     TrilinosWrappers::PreconditionJacobi preconditioner;
index d0686bedae03481989a9777ae113f9314929f0f6..b47004759b93d340314f83299f9e612b285afbca 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2014 by the deal.II authors
+// Copyright (C) 2004 - 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -89,8 +89,8 @@ int main(int argc, char **argv)
     TrilinosWrappers::Vector  u(dim);
     f = 1.;
     A.compress ();
-    f.compress ();
-    u.compress ();
+    f.compress (VectorOperation::insert);
+    u.compress (VectorOperation::insert);
 
     TrilinosWrappers::SolverGMRES solver(control);
     TrilinosWrappers::PreconditionJacobi preconditioner;
index ce61c2cd2a67f08064923837ba84db1eda77ada4..7a746bc0160aa5bf4f4a71bd61e5402974ed5f2f 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2014 by the deal.II authors
+// Copyright (C) 2004 - 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -88,8 +88,8 @@ int main(int argc, char **argv)
     TrilinosWrappers::Vector  u(dim);
     f = 1.;
     A.compress ();
-    f.compress ();
-    u.compress ();
+    f.compress (VectorOperation::insert);
+    u.compress (VectorOperation::insert);
 
     TrilinosWrappers::SolverCGS solver(control);
     TrilinosWrappers::PreconditionJacobi preconditioner;
index c4b992015af21d201b9fa4623bb078087e131dc0..2b024faeb8f35c851fb8dfdcc0f0eb39ded07590 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -37,9 +37,9 @@ void test (TrilinosWrappers::Vector &v,
   for (unsigned int i=0; i<v.size(); ++i)
     v(i) = i;
 
-  m.compress ();
-  v.compress ();
-  w.compress ();
+  m.compress (VectorOperation::insert);
+  v.compress (VectorOperation::insert);
+  w.compress (VectorOperation::insert);
 
   // w:=Mv
   m.vmult (w,v);
index 660d34ca84fae0e9a0521c697da0073e7822c6fa..bae507eef74e01894812423aeec3e0b5cd5fc1e7 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -37,9 +37,9 @@ void test (TrilinosWrappers::Vector &v,
   for (unsigned int i=0; i<v.size(); ++i)
     v(i) = i;
 
-  m.compress ();
-  v.compress ();
-  w.compress ();
+  m.compress (VectorOperation::insert);
+  v.compress (VectorOperation::insert);
+  w.compress (VectorOperation::insert);
 
   // w:=Mv
   m.Tvmult (w,v);
index 5b6c1024927112fbb1912ace703dabee007da672..577d5505a1e6c85e55028dba5becba5fe1602f6b 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -40,9 +40,9 @@ void test (TrilinosWrappers::Vector &v,
       w(i) = i;
     }
 
-  m.compress ();
-  v.compress ();
-  w.compress ();
+  m.compress (VectorOperation::insert);
+  v.compress (VectorOperation::insert);
+  w.compress (VectorOperation::insert);
 
   // w:=Mv
   m.vmult_add (w,v);
index bc03c35351713324ad6322f618a7bf5be679fdc3..bfda6f0cea9a9ff31148358c57d55b7b8174d59c 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -40,9 +40,9 @@ void test (TrilinosWrappers::Vector &v,
       w(i) = i;
     }
 
-  m.compress ();
-  v.compress ();
-  w.compress ();
+  m.compress (VectorOperation::insert);
+  v.compress (VectorOperation::insert);
+  w.compress (VectorOperation::insert);
   // w:=Mv
   m.Tvmult_add (w,v);
 
index d0399a2388bf493fb800d6502ee0ec70ee0d1dd3..c221ccd6a460af26d843ad127c229285ca290783 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -40,9 +40,9 @@ void test (TrilinosWrappers::Vector &v,
       w(i) = i+1;
     }
 
-  m.compress ();
-  v.compress ();
-  w.compress ();
+  m.compress (VectorOperation::insert);
+  v.compress (VectorOperation::insert);
+  w.compress (VectorOperation::insert);
 
   // <w,Mv>
   const TrilinosScalar s = m.matrix_scalar_product (w,v);
index 2057203675918e3bf5b04ea28953b2a1a8ca3a02..15bdc4c8b2f6911604d681da310e248f26abb954 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -36,8 +36,8 @@ void test (TrilinosWrappers::Vector &v)
   for (unsigned int i=0; i<v.size(); ++i)
     v(i) = i;
 
-  m.compress ();
-  v.compress ();
+  m.compress (VectorOperation::insert);
+  v.compress (VectorOperation::insert);
 
   // <w,Mv>
   const TrilinosScalar s = m.matrix_norm_square (v);
index 3e57d0adcde47ef9d009464366ffd6557c2321f5..0d4456c8e0a369520ee19a666a46f122b5620240 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2004 - 2013 by the deal.II authors
+// Copyright (C) 2004 - 2013, 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -41,9 +41,9 @@ void test (TrilinosWrappers::Vector &v,
       w(i) = i+1;
     }
 
-  m.compress ();
-  v.compress ();
-  w.compress ();
+  m.compress (VectorOperation::insert);
+  v.compress (VectorOperation::insert);
+  w.compress (VectorOperation::insert);
 
   // x=w-Mv
   const double s = m.residual (x, v, w);

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.