]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Adjust a few miscompilations.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 10 Nov 2013 23:01:32 +0000 (23:01 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 10 Nov 2013 23:01:32 +0000 (23:01 +0000)
git-svn-id: https://svn.dealii.org/trunk@31613 0785d39b-7218-0410-832d-ea1e28bc413d

tests/petsc/05.cc
tests/petsc/slowness_01.cc
tests/petsc/solver_13.cc

index da9d16bc4de46cb9086af4dfd1801514a4ae3f80..fc46438c3b7fe2b622277b8453406249d0232e12 100644 (file)
@@ -38,7 +38,7 @@ void test (PETScWrappers::SparseMatrix &m)
           ++counter;
         }
 
-  m.compress VectorOperation::add();
+  m.compress (VectorOperation::add());
 
   deallog << m.n_nonzero_elements() << std::endl;
   Assert (m.n_nonzero_elements() == counter,
index 09176095b39a9052bb8a3d440e46f34860db40e8..98d0ed1fe23fac0ee47c2036266f6b83888e1497 100644 (file)
@@ -63,7 +63,7 @@ void test ()
             sparsity.add(global, global+N);
           }
       }
-  sparsity.compress (VectorOperation::add);
+  sparsity.compress ();
 
 
   // next build the sparse matrix itself
index a567e11a630b53ad606945323e0e69d608fe3e17..1142f93b1644ef913fcc73ceb9ef82b7db6a9539 100644 (file)
@@ -72,9 +72,9 @@ int main(int argc, char **argv)
     PETScWrappers::Vector  u(dim);
     u = 0.;
     f = 1.;
-    A.compress VectorOperation::add();
-    f.compress VectorOperation::add();
-    u.compress VectorOperation::add();
+    A.compress (VectorOperation::add());
+    f.compress (VectorOperation::add());
+    u.compress (VectorOperation::add());
     PETScWrappers::Vector t=u;
 
     PETScWrappers::SolverPreOnly solver(control);

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.