From 6e01e776aadc465174f3e0781fca53874594ea9b Mon Sep 17 00:00:00 2001
From: Timo Heister <timo.heister@gmail.com>
Date: Wed, 27 Mar 2019 14:00:58 -0600
Subject: [PATCH] extend text output and comments

---
 tests/trilinos/n_nonzeros_02_parallel.cc                  | 8 ++++++--
 ...=true.mpirun=9.with_trilinos=true.with_mpi=true.output | 8 ++++++++
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/tests/trilinos/n_nonzeros_02_parallel.cc b/tests/trilinos/n_nonzeros_02_parallel.cc
index b7ee1737ec..463886c433 100644
--- a/tests/trilinos/n_nonzeros_02_parallel.cc
+++ b/tests/trilinos/n_nonzeros_02_parallel.cc
@@ -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());
 }
 
 
diff --git a/tests/trilinos/n_nonzeros_02_parallel.with_p4est=true.mpirun=9.with_trilinos=true.with_mpi=true.output b/tests/trilinos/n_nonzeros_02_parallel.with_p4est=true.mpirun=9.with_trilinos=true.with_mpi=true.output
index d0db2a6bd9..de726b1b29 100644
--- a/tests/trilinos/n_nonzeros_02_parallel.with_p4est=true.mpirun=9.with_trilinos=true.with_mpi=true.output
+++ b/tests/trilinos/n_nonzeros_02_parallel.with_p4est=true.mpirun=9.with_trilinos=true.with_mpi=true.output
@@ -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
-- 
2.39.5