]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Convert some of the VectorOperation::add into VectorOperation::insert as appropriate.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 10 Nov 2013 15:28:26 +0000 (15:28 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 10 Nov 2013 15:28:26 +0000 (15:28 +0000)
git-svn-id: https://svn.dealii.org/trunk@31605 0785d39b-7218-0410-832d-ea1e28bc413d

tests/petsc/18.cc
tests/petsc/30.cc
tests/petsc/44.cc
tests/petsc/full_matrix_07.cc
tests/petsc/full_matrix_vector_04.cc
tests/petsc/solver_03_precondition_ilu.cc

index 6175fc23f118dc9cc65d6f9bcc64700665621529..eb00b08281e2cb670796320c387494b9bf0a29ed 100644 (file)
@@ -34,7 +34,7 @@ void test (PETScWrappers::Vector &v)
       v(i) = i;
       norm += std::fabs(1.*i)*std::fabs(1.*i);
     }
-  v.compress (VectorOperation::add);
+  v.compress (VectorOperation::insert);
 
   // then check the norm
   const double eps=typeid(PetscScalar)==typeid(double) ? 1e-14 : 1e-5;
index 1bbe5efea48b9cf15bf4bf0edb846c7cd3739a57..efaaf0e53cfea0c0c16a7fedf15064e0f7bb13a3 100644 (file)
@@ -31,7 +31,7 @@ void test (PETScWrappers::Vector &v)
   for (unsigned int i=0; i<v.size(); ++i)
     if (i%3 == 0)
       v(i) = i+1.;
-  v.compress (VectorOperation::add);
+  v.compress (VectorOperation::insert);
 
   // then resize with setting to zero
   v.reinit (13, false);
index 22ef05478c50368878e8ba869b0cc59bac910721..3d8bae73a615669e183ae67602bb58e451c0a8db 100644 (file)
@@ -38,10 +38,10 @@ void test (PETScWrappers::Vector &v,
       y(i) = i+3.;
     }
 
-  v.compress (VectorOperation::add);
-  w.compress (VectorOperation::add);
-  x.compress (VectorOperation::add);
-  y.compress (VectorOperation::add);
+  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 98277237c5343e2e94f1802fbef36ff5546db9bc..09a695f420ac5b088e52b44b4a3e714baa61593f 100644 (file)
@@ -33,7 +33,7 @@ void test (PETScWrappers::FullMatrix &m)
       if ((i+2*j+1) % 3 == 0)
         m.set (i,j, i*j*.5+.5);
 
-  m.compress (VectorOperation::add);
+  m.compress (VectorOperation::insert);
 
   // compare against the exact value of the
   // linfty-norm (max row-sum)
index eaad49e52e7be8f1c05739fa9a4322a09c8a3d30..646c99a517a5f71655d22b8a94c4d6f682fa2d73 100644 (file)
@@ -40,9 +40,9 @@ void test (PETScWrappers::Vector &v,
       w(i) = i;
     }
 
-  m.compress (VectorOperation::add);
-  v.compress (VectorOperation::add);
-  w.compress (VectorOperation::add);
+  m.compress (VectorOperation::insert);
+  v.compress (VectorOperation::insert);
+  w.compress (VectorOperation::insert);
 
   // w:=Mv
   m.Tvmult_add (w,v);
index 477852b01d52f0ef0c881827463977b397fd58de..8e8083b469a740815ca9cda44baf654b9d9bfab9 100644 (file)
@@ -81,9 +81,8 @@ int main(int argc, char **argv)
     PETScWrappers::Vector  f(dim);
     PETScWrappers::Vector  u(dim);
     f = 1.;
-    A.compress (VectorOperation::add);
-    f.compress (VectorOperation::add);
-    u.compress (VectorOperation::add);
+    A.compress (VectorOperation::insert);
+    f.compress (VectorOperation::insert);
 
     PETScWrappers::SolverCG solver(control);
     PETScWrappers::PreconditionILU preconditioner(A);

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.