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

index e26125409f4fc30e91010ac4a2f581270d204132..e38d3d0845a7b796a53b4492f5a3fc88deff5fea 100644 (file)
@@ -59,11 +59,11 @@ void test ()
   v=vb;
   Assert(v.has_ghost_elements(), ExcInternalError());
 
-  deallog << "ghosted value: " << v(1) << " (should be 2.0)" << std::endl;
+  deallog << "ghosted value: " << get_real_assert_zero_imag(v(1)) << " (should be 2.0)" << std::endl;
   v=0;
-  deallog << "ghosted value: " << v(1) << " (should be 0.0)" << std::endl;
+  deallog << "ghosted value: " << get_real_assert_zero_imag(v(1)) << " (should be 0.0)" << std::endl;
   v=42.1;
-  deallog << "ghosted value: " << v(1) << " (should be 42.1)" << std::endl;
+  deallog << "ghosted value: " << get_real_assert_zero_imag(v(1)) << " (should be 42.1)" << std::endl;
 
   // done
   if (myid==0)

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.