From: Wolfgang Bangerth Date: Thu, 21 May 2015 03:57:59 +0000 (-0500) Subject: Rewrite test. X-Git-Tag: v8.3.0-rc1~159^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78b730f76dc3a76840c6df78abc3bb8d96163402;p=dealii.git Rewrite test. The test uses PETScWrappers::Vector, but this class is now deprecated and indeed produces an error now (because the respective include file has been removed from the generic_linear_algebra.h include file. --- diff --git a/tests/gla/extract_subvector_to.cc b/tests/gla/extract_subvector_to.cc index 72da2bddb4..2b15af13a0 100644 --- a/tests/gla/extract_subvector_to.cc +++ b/tests/gla/extract_subvector_to.cc @@ -19,6 +19,8 @@ #include "../tests.h" #include +#include +#include #include #include #include @@ -76,7 +78,7 @@ int main (int argc, char **argv) { deallog.push("PETSc"); - PETScWrappers::Vector v(17); + PETScWrappers::MPI::Vector v(MPI_COMM_SELF, 17, 17); test (v); deallog.pop(); } @@ -102,11 +104,11 @@ int main (int argc, char **argv) { deallog.push("PETSc"); - PETScWrappers::BlockVector v(3); - v.block(0).reinit(7); - v.block(1).reinit(5); - v.block(2).reinit(3); - v.collect_sizes(); + std::vector sizes(3); + sizes[0] = 7; + sizes[1] = 5; + sizes[2] = 3; + PETScWrappers::MPI::BlockVector v(sizes, MPI_COMM_SELF, sizes); test (v); deallog.pop(); }