From: Martin Kronbichler Date: Fri, 27 Aug 2010 14:59:27 +0000 (+0000) Subject: Make code compile again. X-Git-Tag: v8.0.0~5647 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f82cee4f1b72504be9cbecf320d0204fe4aa646;p=dealii.git Make code compile again. git-svn-id: https://svn.dealii.org/trunk@21751 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 7e6814ae9d..ee526665de 100644 --- a/deal.II/lac/source/trilinos_sparse_matrix.cc +++ b/deal.II/lac/source/trilinos_sparse_matrix.cc @@ -406,10 +406,10 @@ namespace TrilinosWrappers const unsigned int first_row = input_row_map.MinMyGID(), last_row = input_row_map.MaxMyGID()+1; - std::vector n_entries_per_row(last_entry - first_entry); + std::vector n_entries_per_row(last_row-first_row); for (unsigned int row=first_row; row graph; if (input_row_map.Comm().NumProc() > 1) - graph.reset (new Epetra_CrsGraph (Copy, input_row_map, + graph.reset (new Epetra_CrsGraph (Copy, input_row_map, &n_entries_per_row[0], true)); else graph.reset (new Epetra_CrsGraph (Copy, input_row_map, input_col_map, @@ -453,14 +453,14 @@ namespace TrilinosWrappers for (unsigned int row=first_row; row n_entries_per_row(last_entry - first_entry); + std::vector n_entries_per_row(last_row - first_row); for (unsigned int row=first_row; rowInsertGlobalIndices (1, static_cast(&row), row_length, + graph->InsertGlobalIndices (1, reinterpret_cast(&row), row_length, &row_indices[0]); }