From 2e1afb02ebec35276decfe705b39ac61dc9a9d4b Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Tue, 29 Mar 2016 07:14:32 +0200 Subject: [PATCH] extend gla/vec_01 to complex-valued PETSc --- tests/gla/vec_01.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/gla/vec_01.cc b/tests/gla/vec_01.cc index 9a1782acf5..5754ffe417 100644 --- a/tests/gla/vec_01.cc +++ b/tests/gla/vec_01.cc @@ -64,18 +64,18 @@ void test () // check local values if (myid==0) { - deallog << myid*2 << ":" << v(myid*2) << std::endl; - deallog << myid*2+1 << ":" << v(myid*2+1) << std::endl; + deallog << myid*2 << ":" << get_real_assert_zero_imag(v(myid*2)) << std::endl; + deallog << myid*2+1 << ":" << get_real_assert_zero_imag(v(myid*2+1)) << std::endl; } - Assert(v(myid*2) == myid*4.0, ExcInternalError()); - Assert(v(myid*2+1) == myid*4.0+2.0, ExcInternalError()); + Assert(get_real_assert_zero_imag(v(myid*2)) == myid*4.0, ExcInternalError()); + Assert(get_real_assert_zero_imag(v(myid*2+1)) == myid*4.0+2.0, ExcInternalError()); // check ghost values if (myid==0) - deallog << "ghost: " << v(1) << std::endl; - Assert(v(1) == 2.0, ExcInternalError()); + deallog << "ghost: " << get_real_assert_zero_imag(v(1)) << std::endl; + Assert(get_real_assert_zero_imag(v(1)) == 2.0, ExcInternalError()); // done if (myid==0) -- 2.39.5