From: Denis Davydov Date: Tue, 29 Mar 2016 05:28:28 +0000 (+0200) Subject: extend gla/block_vec_02 to complex-valued PETSc X-Git-Tag: v8.5.0-rc1~1153^2~17 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ebcea514d08e265c3d078a9d68a040b95cfe98d;p=dealii.git extend gla/block_vec_02 to complex-valued PETSc --- diff --git a/tests/gla/block_vec_02.cc b/tests/gla/block_vec_02.cc index c3ecc99124..975e352669 100644 --- a/tests/gla/block_vec_02.cc +++ b/tests/gla/block_vec_02.cc @@ -69,7 +69,7 @@ void test () deallog << "block(0).size: " << v.block(0).size() << std::endl; deallog << "block(1).size: " << v.block(1).size() << std::endl; if (block1.n_elements()>0) - deallog << "my first entry: " << v(block1.nth_index_in_set(0)) << std::endl; + deallog << "my first entry: " << get_real_assert_zero_imag(v(block1.nth_index_in_set(0))) << std::endl; ConstraintMatrix cm; @@ -78,10 +78,10 @@ void test () cm.close(); if (myid==0) - deallog << "before: " << v(0) << std::endl; + deallog << "before: " << get_real_assert_zero_imag(v(0)) << std::endl; cm.distribute(v); // this should set x(0)= 3.0 * x(1) = 3.0 if (myid==0) - deallog << "after: " << v(0) << std::endl; + deallog << "after: " << get_real_assert_zero_imag(v(0)) << std::endl; // done if (myid==0)