From 3a87a1fb2776145a1a853741e8df4c9f0e0ba9fc Mon Sep 17 00:00:00 2001 From: kronbichler Date: Thu, 16 Apr 2009 11:31:32 +0000 Subject: [PATCH] Minor improvements in reinit(). git-svn-id: https://svn.dealii.org/trunk@18623 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/source/trilinos_sparse_matrix.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deal.II/lac/source/trilinos_sparse_matrix.cc b/deal.II/lac/source/trilinos_sparse_matrix.cc index 4aa9ea3dce..876ca49fb9 100755 --- a/deal.II/lac/source/trilinos_sparse_matrix.cc +++ b/deal.II/lac/source/trilinos_sparse_matrix.cc @@ -415,6 +415,7 @@ namespace TrilinosWrappers // Now, fill the graph (sort indices, make // memory contiguous, etc). graph->FillComplete(col_map, row_map); + graph->OptimizeStorage(); // And now finally generate the matrix. matrix = std::auto_ptr @@ -517,7 +518,7 @@ namespace TrilinosWrappers // sparsity_pattern.n_cols())); std::vector row_indices; - + for (unsigned int row=0; rowFillComplete(col_map, row_map); + graph->OptimizeStorage(); // And now finally generate the matrix. matrix = std::auto_ptr -- 2.39.5