From: Denis Davydov Date: Tue, 29 Mar 2016 05:22:09 +0000 (+0200) Subject: extend gla/vec_04 to complex-valued PETSc X-Git-Tag: v8.5.0-rc1~1153^2~21 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=300cf2f3a929eb2ce3ff24ce21afb05b6e958c94;p=dealii.git extend gla/vec_04 to complex-valued PETSc --- diff --git a/tests/gla/vec_04.cc b/tests/gla/vec_04.cc index 95f3435e70..5e75284695 100644 --- a/tests/gla/vec_04.cc +++ b/tests/gla/vec_04.cc @@ -71,10 +71,10 @@ void test () typename LA::MPI::Vector x; x=v; // x is empty so it should copy layout(with ghosts) and data Assert(x.has_ghost_elements(), ExcInternalError()); - deallog << "ghosted value: " << x(1) << std::endl; + deallog << "ghosted value: " << get_real_assert_zero_imag(x(1)) << std::endl; x=vb; // import, so keep ghost elements Assert(x.has_ghost_elements(), ExcInternalError()); - deallog << "ghosted value: " << x(1) << std::endl; + deallog << "ghosted value: " << get_real_assert_zero_imag(x(1)) << std::endl; } { typename LA::MPI::Vector x; @@ -83,7 +83,7 @@ void test () x=test; x=v; Assert(x.has_ghost_elements(), ExcInternalError()); - deallog << "ghosted value: " << x(1) << std::endl; + deallog << "ghosted value: " << get_real_assert_zero_imag(x(1)) << std::endl; } // done