]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Dummy Trilinos objects need to be generated with MPI_COMM_SELF rather than MPI_COMM_W...
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 27 Jan 2009 07:57:25 +0000 (07:57 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 27 Jan 2009 07:57:25 +0000 (07:57 +0000)
git-svn-id: https://svn.dealii.org/trunk@18302 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/trilinos_vector.h
deal.II/lac/source/trilinos_block_sparse_matrix.cc
deal.II/lac/source/trilinos_precondition.cc
deal.II/lac/source/trilinos_sparse_matrix.cc
deal.II/lac/source/trilinos_sparsity_pattern.cc
deal.II/lac/source/trilinos_vector.cc
deal.II/lac/source/trilinos_vector_base.cc

index e1240798809ce321669112fa82056a3b57e3b3e6..b87cc53849e55250638ae08a6619d95824f9caaa 100755 (executable)
@@ -460,7 +460,7 @@ namespace TrilinosWrappers
       if (size() != v.size())
        {
 #ifdef DEAL_II_COMPILER_SUPPORTS_MPI
-         map = Epetra_Map (v.size(), 0, Epetra_MpiComm(MPI_COMM_WORLD));
+         map = Epetra_Map (v.size(), 0, Epetra_MpiComm(MPI_COMM_SELF));
 #else
          map = Epetra_Map (v.size(), 0, Epetra_SerialComm());
 #endif
@@ -647,7 +647,7 @@ namespace TrilinosWrappers
   Vector::Vector (const dealii::Vector<number> &v)
                  :
 #ifdef DEAL_II_COMPILER_SUPPORTS_MPI
-                 map (v.size(), 0, Epetra_MpiComm(MPI_COMM_WORLD))
+                 map (v.size(), 0, Epetra_MpiComm(MPI_COMM_SELF))
 #else
                 map (v.size(), 0, Epetra_SerialComm())
 #endif
@@ -675,7 +675,7 @@ namespace TrilinosWrappers
       {
        vector.release();
 #ifdef DEAL_II_COMPILER_SUPPORTS_MPI
-       map = Epetra_LocalMap (v.size(), 0, Epetra_MpiComm(MPI_COMM_WORLD));
+       map = Epetra_LocalMap (v.size(), 0, Epetra_MpiComm(MPI_COMM_SELF));
 #else
        map = Epetra_LocalMap (v.size(), 0, Epetra_SerialComm());
 #endif
index eea3d942dcfd30b7c8f84aec8c8833200ca8478b..06591f1d47e352507dd850dacbe552b09bf6dde4 100644 (file)
@@ -148,7 +148,7 @@ namespace TrilinosWrappers
                                     // produce a dummy local map and pass it
                                     // off to the other function
 #ifdef DEAL_II_COMPILER_SUPPORTS_MPI
-    Epetra_MpiComm    trilinos_communicator (MPI_COMM_WORLD);
+    Epetra_MpiComm    trilinos_communicator (MPI_COMM_SELF);
 #else
     Epetra_SerialComm trilinos_communicator;
 #endif
@@ -239,7 +239,7 @@ namespace TrilinosWrappers
                                     // produce a dummy local map and pass it
                                     // off to the other function
 #ifdef DEAL_II_COMPILER_SUPPORTS_MPI
-    Epetra_MpiComm    trilinos_communicator (MPI_COMM_WORLD);
+    Epetra_MpiComm    trilinos_communicator (MPI_COMM_SELF);
 #else
     Epetra_SerialComm trilinos_communicator;
 #endif
index bdcde138f03185000145061ebdabddc325b499af..6198f20bcca0e3ee7277d73cbc2b5c7bf4be9deb 100755 (executable)
@@ -36,7 +36,7 @@ namespace TrilinosWrappers
   PreconditionBase::PreconditionBase()
 #ifdef DEAL_II_COMPILER_SUPPORTS_MPI
                     :
-                    communicator (MPI_COMM_WORLD)
+                    communicator (MPI_COMM_SELF)
 #endif
   {}
 
index 31ced248c3d28329cf14b9406c5c428a325c5673..5af9a75a7016b45052c8b847fb6bd58684396ada 100755 (executable)
@@ -85,7 +85,7 @@ namespace TrilinosWrappers
   SparseMatrix::SparseMatrix ()
                  :
 #ifdef DEAL_II_COMPILER_SUPPORTS_MPI
-                  row_map (0, 0, Epetra_MpiComm(MPI_COMM_WORLD)),
+                  row_map (0, 0, Epetra_MpiComm(MPI_COMM_SELF)),
 #else
                   row_map (0, 0, Epetra_SerialComm()),
 #endif
@@ -165,8 +165,8 @@ namespace TrilinosWrappers
                              const unsigned int n_max_entries_per_row)
                  :
 #ifdef DEAL_II_COMPILER_SUPPORTS_MPI
-                  row_map (m, 0, Epetra_MpiComm(MPI_COMM_WORLD)),
-                  col_map (n, 0, Epetra_MpiComm(MPI_COMM_WORLD)),
+                  row_map (m, 0, Epetra_MpiComm(MPI_COMM_SELF)),
+                  col_map (n, 0, Epetra_MpiComm(MPI_COMM_SELF)),
 #else
                   row_map (m, 0, Epetra_SerialComm()),
                   col_map (n, 0, Epetra_SerialComm()),
@@ -185,8 +185,8 @@ namespace TrilinosWrappers
                              const std::vector<unsigned int> &n_entries_per_row)
                  :
 #ifdef DEAL_II_COMPILER_SUPPORTS_MPI
-                  row_map (m, 0, Epetra_MpiComm(MPI_COMM_WORLD)),
-                  col_map (n, 0, Epetra_MpiComm(MPI_COMM_WORLD)),
+                  row_map (m, 0, Epetra_MpiComm(MPI_COMM_SELF)),
+                  col_map (n, 0, Epetra_MpiComm(MPI_COMM_SELF)),
 #else
                   row_map (m, 0, Epetra_SerialComm()),
                   col_map (n, 0, Epetra_SerialComm()),
@@ -253,7 +253,7 @@ namespace TrilinosWrappers
   SparseMatrix::reinit (const SparsityType &sparsity_pattern)
   {
 #ifdef DEAL_II_COMPILER_SUPPORTS_MPI
-    Epetra_MpiComm    trilinos_communicator (MPI_COMM_WORLD);
+    Epetra_MpiComm    trilinos_communicator (MPI_COMM_SELF);
 #else
     Epetra_SerialComm trilinos_communicator;
 #endif
@@ -544,7 +544,7 @@ namespace TrilinosWrappers
                        const double                          drop_tolerance)
   {
 #ifdef DEAL_II_COMPILER_SUPPORTS_MPI
-    Epetra_MpiComm    trilinos_communicator (MPI_COMM_WORLD);
+    Epetra_MpiComm    trilinos_communicator (MPI_COMM_SELF);
 #else
     Epetra_SerialComm trilinos_communicator;
 #endif
@@ -682,7 +682,7 @@ namespace TrilinosWrappers
     matrix.reset();
  
 #ifdef DEAL_II_COMPILER_SUPPORTS_MPI
-    row_map = Epetra_Map (0, 0, Epetra_MpiComm(MPI_COMM_WORLD));
+    row_map = Epetra_Map (0, 0, Epetra_MpiComm(MPI_COMM_SELF));
 #else
     row_map = Epetra_Map (0, 0, Epetra_SerialComm());
 #endif
index 5b5fdaacfaecd9c82f6d775d8802efa42bf94c77..7b005997cf69c4cefa354e7c882d31219f66e1de 100755 (executable)
@@ -83,7 +83,7 @@ namespace TrilinosWrappers
   SparsityPattern::SparsityPattern ()
                  :
 #ifdef DEAL_II_COMPILER_SUPPORTS_MPI
-                  row_map (0, 0, Epetra_MpiComm(MPI_COMM_WORLD)),
+                  row_map (0, 0, Epetra_MpiComm(MPI_COMM_SELF)),
 #else
                   row_map (0, 0, Epetra_SerialComm()),
 #endif
@@ -163,8 +163,8 @@ namespace TrilinosWrappers
                                    const unsigned int n_entries_per_row)
                  :
 #ifdef DEAL_II_COMPILER_SUPPORTS_MPI
-                  row_map (m, 0, Epetra_MpiComm(MPI_COMM_WORLD)),
-                  col_map (n, 0, Epetra_MpiComm(MPI_COMM_WORLD)),
+                  row_map (m, 0, Epetra_MpiComm(MPI_COMM_SELF)),
+                  col_map (n, 0, Epetra_MpiComm(MPI_COMM_SELF)),
 #else
                   row_map (m, 0, Epetra_SerialComm()),
                   col_map (n, 0, Epetra_SerialComm()),
@@ -183,8 +183,8 @@ namespace TrilinosWrappers
                                    const std::vector<unsigned int> &n_entries_per_row)
                  :
 #ifdef DEAL_II_COMPILER_SUPPORTS_MPI
-                  row_map (m, 0, Epetra_MpiComm(MPI_COMM_WORLD)),
-                  col_map (n, 0, Epetra_MpiComm(MPI_COMM_WORLD)),
+                  row_map (m, 0, Epetra_MpiComm(MPI_COMM_SELF)),
+                  col_map (n, 0, Epetra_MpiComm(MPI_COMM_SELF)),
 #else
                   row_map (m, 0, Epetra_SerialComm()),
                   col_map (n, 0, Epetra_SerialComm()),
@@ -239,7 +239,7 @@ namespace TrilinosWrappers
                           const unsigned int  n_entries_per_row)
   {
 #ifdef DEAL_II_COMPILER_SUPPORTS_MPI
-    Epetra_MpiComm    trilinos_communicator (MPI_COMM_WORLD);
+    Epetra_MpiComm    trilinos_communicator (MPI_COMM_SELF);
 #else
     Epetra_SerialComm trilinos_communicator;
 #endif
@@ -285,7 +285,7 @@ namespace TrilinosWrappers
                           const std::vector<unsigned int> &n_entries_per_row)
   {
 #ifdef DEAL_II_COMPILER_SUPPORTS_MPI
-    Epetra_MpiComm    trilinos_communicator (MPI_COMM_WORLD);
+    Epetra_MpiComm    trilinos_communicator (MPI_COMM_SELF);
 #else
     Epetra_SerialComm trilinos_communicator;
 #endif
@@ -469,7 +469,7 @@ namespace TrilinosWrappers
   SparsityPattern::copy_from (const SparsityType &sp)
   {
 #ifdef DEAL_II_COMPILER_SUPPORTS_MPI
-    Epetra_MpiComm    trilinos_communicator (MPI_COMM_WORLD);
+    Epetra_MpiComm    trilinos_communicator (MPI_COMM_SELF);
 #else
     Epetra_SerialComm trilinos_communicator;
 #endif
@@ -491,7 +491,7 @@ namespace TrilinosWrappers
     graph.reset();
  
 #ifdef DEAL_II_COMPILER_SUPPORTS_MPI
-    row_map = Epetra_Map (0, 0, Epetra_MpiComm(MPI_COMM_WORLD));
+    row_map = Epetra_Map (0, 0, Epetra_MpiComm(MPI_COMM_SELF));
 #else
     row_map = Epetra_Map (0, 0, Epetra_SerialComm());
 #endif
index ef8ac334046e37e7bb0bec8627b421b6efbfc91f..0bab6e5c051df466c85f435f0a79a7030b272d8b 100755 (executable)
@@ -32,7 +32,7 @@ namespace TrilinosWrappers
     Vector::Vector ()
                    :
 #ifdef DEAL_II_COMPILER_SUPPORTS_MPI
-                   map (0,0,Epetra_MpiComm(MPI_COMM_WORLD))
+                   map (0,0,Epetra_MpiComm(MPI_COMM_SELF))
 #else
                   map (0,0,Epetra_SerialComm())
 #endif
@@ -264,7 +264,7 @@ namespace TrilinosWrappers
   Vector::Vector ()
                  :
 #ifdef DEAL_II_COMPILER_SUPPORTS_MPI
-                 map (0, 0, Epetra_MpiComm(MPI_COMM_WORLD))
+                 map (0, 0, Epetra_MpiComm(MPI_COMM_SELF))
 #else
                 map (0, 0, Epetra_SerialComm())
 #endif
@@ -278,7 +278,7 @@ namespace TrilinosWrappers
   Vector::Vector (const unsigned int n)
                  :
 #ifdef DEAL_II_COMPILER_SUPPORTS_MPI
-                 map ((int)n, 0, Epetra_MpiComm(MPI_COMM_WORLD))
+                 map ((int)n, 0, Epetra_MpiComm(MPI_COMM_SELF))
 #else
                 map ((int)n, 0, Epetra_SerialComm())
 #endif
@@ -328,7 +328,7 @@ namespace TrilinosWrappers
        vector.reset();
 
 #ifdef DEAL_II_COMPILER_SUPPORTS_MPI
-       map = Epetra_LocalMap ((int)n, 0, Epetra_MpiComm(MPI_COMM_WORLD));
+       map = Epetra_LocalMap ((int)n, 0, Epetra_MpiComm(MPI_COMM_SELF));
 #else
        map = Epetra_LocalMap ((int)n, 0, Epetra_SerialComm());
 #endif
index ba7b12627134691ace26d904a9bb10b36a0f3f7b..9039cbb9b2bf442842a658938041e67c0ff5050d 100644 (file)
@@ -60,7 +60,7 @@ namespace TrilinosWrappers
 #ifdef DEAL_II_COMPILER_SUPPORTS_MPI
                        vector(std::auto_ptr<Epetra_FEVector> 
                          (new Epetra_FEVector(
-                                Epetra_Map(0,0,Epetra_MpiComm(MPI_COMM_WORLD)))))
+                                Epetra_Map(0,0,Epetra_MpiComm(MPI_COMM_SELF)))))
 #else
                        vector(std::auto_ptr<Epetra_FEVector> 
                           (new Epetra_FEVector(
@@ -95,7 +95,7 @@ namespace TrilinosWrappers
     vector.reset();
 
 #ifdef DEAL_II_COMPILER_SUPPORTS_MPI
-    Epetra_Map map (0, 0, Epetra_MpiComm(MPI_COMM_WORLD));
+    Epetra_Map map (0, 0, Epetra_MpiComm(MPI_COMM_SELF));
 #else
     Epetra_Map map (0, 0, Epetra_SerialComm());
 #endif

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.