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

index 3f665fac2bdaea077828290098f515cdf5203062..9729e7c20f1afc641ea075652dfc99acb115c99e 100644 (file)
@@ -71,7 +71,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;
 
   // 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.