]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
fix trilinos vector reinit()
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 18 Apr 2013 23:18:00 +0000 (23:18 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 18 Apr 2013 23:18:00 +0000 (23:18 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_unify_linear_algebra@29337 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/trilinos_vector.h
deal.II/source/lac/trilinos_vector.cc

index dbfeea49b4961e8b23b1957a4a8b82ed9dcf2c04..85fe6377affba79895dec4d6fb1c7710e5eaa525 100644 (file)
@@ -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
index 83962999eb8773b078398a0a09d74fdf43c2f51a..2a0db67e09db0ccbb38c73f44b83d559c6e90b0d 100644 (file)
@@ -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);

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.