From: bangerth Date: Sun, 10 Feb 2013 04:53:20 +0000 (+0000) Subject: Update for new SparsityPattern storage scheme. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4149608bd38079fc825608d0b8bc9787fd9dd02;p=dealii-svn.git Update for new SparsityPattern storage scheme. git-svn-id: https://svn.dealii.org/trunk@28302 0785d39b-7218-0410-832d-ea1e28bc413d --- 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