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

index 70bed13d0098315eb9c01a116f4eadc94600acbf..a8ca001b082c998dc6898c11054c983b8bdb88a7 100644 (file)
@@ -71,17 +71,17 @@ 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;
 
   mat.copy_from(mat);
   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;
 
   mat.reinit(mat);
   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;
 
   if (myid==0)
     deallog << "OK" << std::endl;

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.