]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
run test for par::dist::vector too
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 4 Sep 2013 17:02:56 +0000 (17:02 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 4 Sep 2013 17:02:56 +0000 (17:02 +0000)
git-svn-id: https://svn.dealii.org/trunk@30598 0785d39b-7218-0410-832d-ea1e28bc413d

tests/gla/extract_subvector_to_parallel.cc
tests/gla/extract_subvector_to_parallel/ncpu_2/cmp/generic

index 5d692e09cdbed29a3d6c3ed82cdd6a4aa0f55571..2ee0ce54d895121bc71720884e35ecf21b3d8eb5 100644 (file)
@@ -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");
index ae4bdbf19f13bca6beffd137e3beb2c5d3f9960e..c96926ad1b6c368843a1c3795d5130b84a992da9 100644 (file)
@@ -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
 

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.