From 78b730f76dc3a76840c6df78abc3bb8d96163402 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 20 May 2015 22:57:59 -0500 Subject: [PATCH] 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. --- tests/gla/extract_subvector_to.cc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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(); } -- 2.39.5