From: heister Date: Thu, 18 Apr 2013 23:18:00 +0000 (+0000) Subject: fix trilinos vector reinit() X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a070208b0a18d665ecdbac8da33f8717a6fa6d4d;p=dealii-svn.git fix trilinos vector reinit() git-svn-id: https://svn.dealii.org/branches/branch_unify_linear_algebra@29337 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/lac/trilinos_vector.h b/deal.II/include/deal.II/lac/trilinos_vector.h index dbfeea49b4..85fe6377af 100644 --- a/deal.II/include/deal.II/lac/trilinos_vector.h +++ b/deal.II/include/deal.II/lac/trilinos_vector.h @@ -241,9 +241,9 @@ namespace TrilinosWrappers * own unknowns, add optional ghost * values ghost. */ - void reinit (const MPI_Comm &communicator, - const IndexSet &local, - const IndexSet &ghost=IndexSet(0)); + void reinit (const IndexSet &local, + const IndexSet &ghost, + const MPI_Comm &communicator = MPI_COMM_WORLD); /** * Set all components of the @@ -708,6 +708,8 @@ namespace TrilinosWrappers const MPI_Comm &communicator = MPI_COMM_WORLD, const bool fast = false); + + /** * Reinit function. Takes the * information of a Vector and copies diff --git a/deal.II/source/lac/trilinos_vector.cc b/deal.II/source/lac/trilinos_vector.cc index 83962999eb..2a0db67e09 100644 --- a/deal.II/source/lac/trilinos_vector.cc +++ b/deal.II/source/lac/trilinos_vector.cc @@ -290,7 +290,7 @@ namespace TrilinosWrappers } - void Vector::reinit(const MPI_Comm &communicator, const IndexSet &local, const IndexSet &ghost) + void Vector::reinit(const IndexSet &local, const IndexSet &ghost, const MPI_Comm &communicator) { IndexSet parallel_partitioning = local; parallel_partitioning.add_indices(ghost);