From ef52c69409b6ee3e7d0233e7937172db9c5d6a7f Mon Sep 17 00:00:00 2001 From: Bruno Turcksin Date: Mon, 9 Jan 2017 21:21:15 -0500 Subject: [PATCH] Do not use deprecated reinit function. --- include/deal.II/lac/trilinos_vector.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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