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

index c3ecc9912463a45c493872459955f8fdc814f443..975e35266916dfe94f8f58576a0fcb36a6ceebd9 100644 (file)
@@ -69,7 +69,7 @@ void test ()
   deallog << "block(0).size: " << v.block(0).size() << std::endl;
   deallog << "block(1).size: " << v.block(1).size() << std::endl;
   if (block1.n_elements()>0)
-    deallog << "my first entry: " << v(block1.nth_index_in_set(0)) << std::endl;
+    deallog << "my first entry: " << get_real_assert_zero_imag(v(block1.nth_index_in_set(0))) << std::endl;
 
 
   ConstraintMatrix cm;
@@ -78,10 +78,10 @@ void test ()
   cm.close();
 
   if (myid==0)
-    deallog << "before: " << v(0) << std::endl;
+    deallog << "before: " << get_real_assert_zero_imag(v(0)) << std::endl;
   cm.distribute(v); // this should set x(0)= 3.0 * x(1) = 3.0
   if (myid==0)
-    deallog << "after: " << v(0) << std::endl;
+    deallog << "after: " << get_real_assert_zero_imag(v(0)) << 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.