From 84f80b4cc451a088bb78653e66201eae5d1f5314 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 10 Feb 2013 04:53:20 +0000 Subject: [PATCH] Update for new SparsityPattern storage scheme. git-svn-id: https://svn.dealii.org/trunk@28302 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/trilinos/sparse_matrix_07.cc | 6 ++++-- tests/trilinos/sparse_matrix_07/cmp/generic | 5 +++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/trilinos/sparse_matrix_07.cc b/tests/trilinos/sparse_matrix_07.cc index 7c3754e75c..6637f08708 100644 --- a/tests/trilinos/sparse_matrix_07.cc +++ b/tests/trilinos/sparse_matrix_07.cc @@ -49,8 +49,10 @@ int main (int argc,char **argv) deallog << "Original:" << std::endl; matrix.print_formatted (deallog.get_file_stream()); - // create a separate sparsity pattern to use - SparsityPattern xsparsity (5,5,5,/*optimize_diagonal=*/false); + // create a separate sparsity pattern to use. note that this sparsity + // pattern stores the elements explicitly added here but also the diagonal + // entries (that's what SparsityPattern does for square matrices) + SparsityPattern xsparsity (5,5,5); xsparsity.add (1,2); xsparsity.add (2,3); xsparsity.add (2,4); diff --git a/tests/trilinos/sparse_matrix_07/cmp/generic b/tests/trilinos/sparse_matrix_07/cmp/generic index 372283ed0a..eb8285b717 100644 --- a/tests/trilinos/sparse_matrix_07/cmp/generic +++ b/tests/trilinos/sparse_matrix_07/cmp/generic @@ -6,7 +6,12 @@ DEAL::Original: 6.000e+00 7.000e+00 9.000e+00 8.000e+00 DEAL::Copy structure only: +(0,0) 1.00000 +(1,1) 2.00000 (1,2) 3.00000 (2,1) 0.00000 +(2,2) 4.00000 (2,3) 5.00000 (2,4) 0.00000 +(3,3) 6.00000 +(4,4) 8.00000 -- 2.39.5