From: Bruno Turcksin Date: Tue, 10 Jan 2017 02:21:15 +0000 (-0500) Subject: Do not use deprecated reinit function. X-Git-Tag: v8.5.0-rc1~272^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef52c69409b6ee3e7d0233e7937172db9c5d6a7f;p=dealii.git Do not use deprecated reinit function. --- diff --git a/include/deal.II/lac/trilinos_vector.h b/include/deal.II/lac/trilinos_vector.h index 9196b94e66..71f130ad18 100644 --- a/include/deal.II/lac/trilinos_vector.h +++ b/include/deal.II/lac/trilinos_vector.h @@ -718,7 +718,14 @@ namespace TrilinosWrappers ))); } - reinit (vector_partitioner(), v); + const Epetra_Map &map = vector_partitioner(); + const int size = map.NumMyElements(); + + // Need to copy out values, since the deal.II might not use doubles, so + // that a direct access is not possible. + for (int i=0; i