]> https://gitweb.dealii.org/ - dealii.git/commitdiff
extend gla/vec_04 to complex-valued PETSc
authorDenis Davydov <davydden@gmail.com>
Tue, 29 Mar 2016 05:22:09 +0000 (07:22 +0200)
committerDenis Davydov <davydden@gmail.com>
Tue, 29 Mar 2016 18:48:46 +0000 (20:48 +0200)
tests/gla/vec_04.cc

index 95f3435e704d64dee107dfb7897c219e3eaffa76..5e752846957edd244d7c383300e76b02382dec1e 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.