From 17524d53c797ec6c2331623affbc970a220fc159 Mon Sep 17 00:00:00 2001 From: kronbichler Date: Mon, 6 Dec 2010 13:55:13 +0000 Subject: [PATCH] Fix copy of matrix values. git-svn-id: https://svn.dealii.org/trunk@22927 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/lac/trilinos_sparse_matrix.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/deal.II/source/lac/trilinos_sparse_matrix.cc b/deal.II/source/lac/trilinos_sparse_matrix.cc index 7e5f2167a1..d1856fd101 100644 --- a/deal.II/source/lac/trilinos_sparse_matrix.cc +++ b/deal.II/source/lac/trilinos_sparse_matrix.cc @@ -678,11 +678,13 @@ namespace TrilinosWrappers if (copy_values == true) { + // point to the first data entry in the two + // matrices and copy the content const TrilinosScalar * in_values = input_matrix[0]; TrilinosScalar * values = (*matrix)[0]; const unsigned int my_nonzeros = input_matrix.NumMyNonzeros(); - for (unsigned int i=0; i