From: kronbichler Date: Wed, 22 May 2013 05:35:32 +0000 (+0000) Subject: Extend test to negative entries. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f06dfc117be26da86bbf89bf02e03e0cdd1aff9;p=dealii-svn.git Extend test to negative entries. git-svn-id: https://svn.dealii.org/trunk@29545 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/mpi/parallel_vector_13.cc b/tests/mpi/parallel_vector_13.cc index 159a3ea814..b9b5c9c3a5 100644 --- a/tests/mpi/parallel_vector_13.cc +++ b/tests/mpi/parallel_vector_13.cc @@ -59,6 +59,15 @@ void test () v(1) = 7; v.compress(VectorOperation::insert); + if (myid == 0) + { + deallog << myid*2 << ":" << v(myid*2) << std::endl; + deallog << myid*2+1 << ":" << v(myid*2+1) << std::endl; + } + + v(1) = -7; + v.compress(VectorOperation::insert); + if (myid == 0) { deallog << myid*2 << ":" << v(myid*2) << std::endl; @@ -67,7 +76,7 @@ void test () // import ghosts onto all procs v.update_ghost_values(); - Assert (v(1) == 7.0, ExcInternalError()); + Assert (v(1) == -7.0, ExcInternalError()); // check l2 norm const double l2_norm = v.l2_norm(); diff --git a/tests/mpi/parallel_vector_13/ncpu_10/cmp/generic b/tests/mpi/parallel_vector_13/ncpu_10/cmp/generic index 10f1691ab2..1ace2d5e74 100644 --- a/tests/mpi/parallel_vector_13/ncpu_10/cmp/generic +++ b/tests/mpi/parallel_vector_13/ncpu_10/cmp/generic @@ -2,5 +2,7 @@ DEAL:0::numproc=10 DEAL:0::0:1.000 DEAL:0::1:7.000 +DEAL:0::0:1.000 +DEAL:0::1:-7.000 DEAL:0::L2 norm: 103.4 DEAL:0::OK diff --git a/tests/mpi/parallel_vector_13/ncpu_4/cmp/generic b/tests/mpi/parallel_vector_13/ncpu_4/cmp/generic index 3054471d30..7b256adb36 100644 --- a/tests/mpi/parallel_vector_13/ncpu_4/cmp/generic +++ b/tests/mpi/parallel_vector_13/ncpu_4/cmp/generic @@ -2,5 +2,7 @@ DEAL:0::numproc=4 DEAL:0::0:1.000 DEAL:0::1:7.000 +DEAL:0::0:1.000 +DEAL:0::1:-7.000 DEAL:0::L2 norm: 26.83 DEAL:0::OK