From d4b5a85c114f5e445181ee51c143016dade98f9f Mon Sep 17 00:00:00 2001
From: heister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Date: Wed, 4 Sep 2013 17:02:56 +0000
Subject: [PATCH] run test for par::dist::vector too

git-svn-id: https://svn.dealii.org/trunk@30598 0785d39b-7218-0410-832d-ea1e28bc413d
---
 tests/gla/extract_subvector_to_parallel.cc    | 40 +++++++++----------
 .../ncpu_2/cmp/generic                        |  2 +
 2 files changed, 22 insertions(+), 20 deletions(-)

diff --git a/tests/gla/extract_subvector_to_parallel.cc b/tests/gla/extract_subvector_to_parallel.cc
index 5d692e09cd..2ee0ce54d8 100644
--- a/tests/gla/extract_subvector_to_parallel.cc
+++ b/tests/gla/extract_subvector_to_parallel.cc
@@ -86,16 +86,16 @@ int main (int argc, char **argv)
     IndexSet dense_local (10);
     dense_local.add_range(0,10);
 
-//TODO: does not currently compile
-    // {
-    //   deallog.push("deal.II");
-    //   parallel::distributed::Vector<double> w(local, MPI_COMM_WORLD);
-    //   set (w);
-    //   parallel::distributed::Vector<double> v(local, dense_local, MPI_COMM_WORLD);
-    //   v = w; // get copy of vector including ghost elements
-    //   test (v);
-    //   deallog.pop();
-    // }
+    {
+      deallog.push("deal.II");
+      parallel::distributed::Vector<double> w(local, MPI_COMM_WORLD);
+      set (w);
+      parallel::distributed::Vector<double> v(local, dense_local, MPI_COMM_WORLD);
+      v = w; // get copy of vector including ghost elements
+      v.update_ghost_values(); // this is necessary for this kind of vector
+      test (v);
+      deallog.pop();
+    }
 
     {
       deallog.push("PETSc");
@@ -149,16 +149,16 @@ int main (int argc, char **argv)
     }
 
 
-//TODO: does not currently compile
-    // {
-    //   deallog.push("deal.II");
-    //   parallel::distributed::BlockVector<double> w(partitioning, MPI_COMM_WORLD);
-    //   set (w);
-    //   parallel::distributed::BlockVector<double> v(partitioning, dense_partitioning, MPI_COMM_WORLD);
-    //   v = w; // get copy of vector including ghost elements
-    //   test (v);
-    //   deallog.pop();
-    // }
+    {
+      deallog.push("deal.II");
+      parallel::distributed::BlockVector<double> w(partitioning, MPI_COMM_WORLD);
+      set (w);
+      parallel::distributed::BlockVector<double> v(partitioning, dense_partitioning, MPI_COMM_WORLD);
+      v = w; // get copy of vector including ghost elements
+      v.update_ghost_values(); // this is necessary for this kind of vector
+      test (v);
+      deallog.pop();
+    }
 
     {
       deallog.push("PETSc");
diff --git a/tests/gla/extract_subvector_to_parallel/ncpu_2/cmp/generic b/tests/gla/extract_subvector_to_parallel/ncpu_2/cmp/generic
index ae4bdbf19f..c96926ad1b 100644
--- a/tests/gla/extract_subvector_to_parallel/ncpu_2/cmp/generic
+++ b/tests/gla/extract_subvector_to_parallel/ncpu_2/cmp/generic
@@ -1,6 +1,8 @@
 
+DEAL:0:deal.II::OK
 DEAL:0:PETSc::OK
 DEAL:0:Trilinos::OK
+DEAL:0:deal.II::OK
 DEAL:0:PETSc::OK
 DEAL:0:Trilinos::OK
 
-- 
2.39.5