From: kronbichler Date: Thu, 23 Oct 2008 13:30:04 +0000 (+0000) Subject: Unify constructors in Trilinos matrices. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c3d740d1cbf4823c6c64f7262f101fbc49fdff3;p=dealii-svn.git Unify constructors in Trilinos matrices. git-svn-id: https://svn.dealii.org/trunk@17321 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/source/trilinos_sparse_matrix.cc b/deal.II/lac/source/trilinos_sparse_matrix.cc index 05e261a633..8feeac441b 100755 --- a/deal.II/lac/source/trilinos_sparse_matrix.cc +++ b/deal.II/lac/source/trilinos_sparse_matrix.cc @@ -131,7 +131,7 @@ namespace TrilinosWrappers last_action (Zero), compressed (true), matrix (std::auto_ptr - (new Epetra_FECrsMatrix(Copy, row_map, col_map, + (new Epetra_FECrsMatrix(Copy, row_map, int(n_max_entries_per_row), false))) {} @@ -144,7 +144,7 @@ namespace TrilinosWrappers last_action (Zero), compressed (true), matrix (std::auto_ptr - (new Epetra_FECrsMatrix(Copy, row_map, col_map, + (new Epetra_FECrsMatrix(Copy, row_map, (int*)const_cast(&(n_entries_per_row[0])), false))) {} @@ -163,7 +163,7 @@ namespace TrilinosWrappers last_action (Zero), compressed (true), matrix (std::auto_ptr - (new Epetra_FECrsMatrix(Copy, row_map, col_map, + (new Epetra_FECrsMatrix(Copy, row_map, int(n_max_entries_per_row), false))) {}