From: Wolfgang Bangerth Date: Sun, 10 Nov 2013 23:01:32 +0000 (+0000) Subject: Adjust a few miscompilations. X-Git-Tag: v8.1.0~328 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55977fdb1474ad13740fa26c37fe9de7800d8f88;p=dealii.git Adjust a few miscompilations. git-svn-id: https://svn.dealii.org/trunk@31613 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/petsc/05.cc b/tests/petsc/05.cc index da9d16bc4d..fc46438c3b 100644 --- a/tests/petsc/05.cc +++ b/tests/petsc/05.cc @@ -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, diff --git a/tests/petsc/slowness_01.cc b/tests/petsc/slowness_01.cc index 09176095b3..98d0ed1fe2 100644 --- a/tests/petsc/slowness_01.cc +++ b/tests/petsc/slowness_01.cc @@ -63,7 +63,7 @@ void test () sparsity.add(global, global+N); } } - sparsity.compress (VectorOperation::add); + sparsity.compress (); // next build the sparse matrix itself diff --git a/tests/petsc/solver_13.cc b/tests/petsc/solver_13.cc index a567e11a63..1142f93b16 100644 --- a/tests/petsc/solver_13.cc +++ b/tests/petsc/solver_13.cc @@ -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);