From: Timo Heister Date: Wed, 27 Mar 2019 20:00:58 +0000 (-0600) Subject: extend text output and comments X-Git-Tag: v9.1.0-rc1~236^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e01e776aadc465174f3e0781fca53874594ea9b;p=dealii.git extend text output and comments --- 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 @@ -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