]> https://gitweb.dealii.org/ - dealii.git/commitdiff
extend text output and comments 7866/head
authorTimo Heister <timo.heister@gmail.com>
Wed, 27 Mar 2019 20:00:58 +0000 (14:00 -0600)
committerTimo Heister <timo.heister@gmail.com>
Wed, 27 Mar 2019 20:00:58 +0000 (14:00 -0600)
tests/trilinos/n_nonzeros_02_parallel.cc
tests/trilinos/n_nonzeros_02_parallel.with_p4est=true.mpirun=9.with_trilinos=true.with_mpi=true.output

index b7ee1737ecce8cd356665e2561de1cd40058240e..463886c4330dbd1ebc7372db8437b809df136bb0 100644 (file)
@@ -15,7 +15,8 @@
 
 
 
-// check n_nonzero_elements() for an empty matrix
+// check n_nonzero_elements() for an empty matrix. We generate a few dummy
+// non-zero entries.
 
 #include <deal.II/distributed/tria.h>
 
@@ -71,8 +72,11 @@ test()
   TrilinosWrappers::SparseMatrix A;
   A.reinit(sparsity);
 
-  // see how many nonzero elements it reports
+  // See how many nonzero elements it reports. Note that we have a
+  // nonlocal Trilinos graph for the off-processor entries and we need
+  // to enter a few dummy elements:
   deallog << A.n_nonzero_elements() << std::endl;
+  A.print(deallog.get_file_stream());
 }
 
 
index d0db2a6bd95d715876147c5596acf5f98fce3aea..de726b1b29bfc50a8787ab7b03f7332f55f828c0 100644 (file)
@@ -1,7 +1,13 @@
 
 DEAL:0::8
+(2,2) 0.00000
+(9,9) 0.00000
+(10,10) 0.00000
 
 DEAL:1::8
+(15,15) 0.00000
+(16,16) 0.00000
+(21,21) 0.00000
 
 
 DEAL:2::8
@@ -11,9 +17,11 @@ DEAL:3::8
 
 
 DEAL:4::8
+(46,46) 0.00000
 
 
 DEAL:5::8
+(51,51) 0.00000
 
 
 DEAL:6::8

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.