From: heister Date: Wed, 4 Sep 2013 17:02:56 +0000 (+0000) Subject: run test for par::dist::vector too X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4b5a85c114f5e445181ee51c143016dade98f9f;p=dealii-svn.git run test for par::dist::vector too git-svn-id: https://svn.dealii.org/trunk@30598 0785d39b-7218-0410-832d-ea1e28bc413d --- 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 w(local, MPI_COMM_WORLD); - // set (w); - // parallel::distributed::Vector 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 w(local, MPI_COMM_WORLD); + set (w); + parallel::distributed::Vector 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 w(partitioning, MPI_COMM_WORLD); - // set (w); - // parallel::distributed::BlockVector 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 w(partitioning, MPI_COMM_WORLD); + set (w); + parallel::distributed::BlockVector 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