]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Minor improvements in reinit().
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 16 Apr 2009 11:31:32 +0000 (11:31 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 16 Apr 2009 11:31:32 +0000 (11:31 +0000)
git-svn-id: https://svn.dealii.org/trunk@18623 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/trilinos_sparse_matrix.cc

index 4aa9ea3dce6bdcacf6a3a553ad3385238b923cb2..876ca49fb9017d86fa6e09590e52839fd656de3c 100755 (executable)
@@ -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<Epetra_FECrsMatrix>
@@ -517,7 +518,7 @@ namespace TrilinosWrappers
 //                                   sparsity_pattern.n_cols()));
 
     std::vector<int>   row_indices;
-    
+
     for (unsigned int row=0; row<n_rows; ++row)
       if (row_map.MyGID(row))
        {
@@ -538,6 +539,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<Epetra_FECrsMatrix>

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.