From 50bb08f5e342d4b8b3142280696c81d092dbeb69 Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Tue, 29 Mar 2016 08:48:19 +0200 Subject: [PATCH] extend gla/mat_05 to complex-valued PETSc --- tests/gla/mat_05.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/gla/mat_05.cc b/tests/gla/mat_05.cc index a3b091d3ab..0d49b48ec3 100644 --- a/tests/gla/mat_05.cc +++ b/tests/gla/mat_05.cc @@ -71,7 +71,7 @@ void test () deallog << "l1-norm: " << mat.l1_norm() << std::endl; if (myid==0) - deallog << "mat(0,1): " << mat(0,1) << std::endl; + deallog << "mat(0,1): " << get_real_assert_zero_imag(mat(0,1)) << std::endl; { // disabled: @@ -89,11 +89,11 @@ void test () mat2.reinit(mat); deallog << "l1-norm: " << mat2.l1_norm() << std::endl; if (myid==0) - deallog << "mat(0,1): " << mat2(0,1) << std::endl; + deallog << "mat(0,1): " << get_real_assert_zero_imag(mat2(0,1)) << std::endl; mat2.add(0,1,0.3); mat2.compress(VectorOperation::add); if (myid==0) - deallog << "after adding mat(0,1): " << mat2(0,1) << std::endl; + deallog << "after adding mat(0,1): " << get_real_assert_zero_imag(mat2(0,1)) << std::endl; } { deallog << "* copy_from():" << std::endl; @@ -103,11 +103,11 @@ void test () mat2.copy_from(mat); deallog << "l1-norm: " << mat2.l1_norm() << std::endl; if (myid==0) - deallog << "mat(0,1): " << mat2(0,1) << std::endl; + deallog << "mat(0,1): " << get_real_assert_zero_imag(mat2(0,1)) << std::endl; mat2.add(0,1,0.3); mat2.compress(VectorOperation::add); if (myid==0) - deallog << "after adding mat(0,1): " << mat2(0,1) << std::endl; + deallog << "after adding mat(0,1): " << get_real_assert_zero_imag(mat2(0,1)) << std::endl; } // done -- 2.39.5