]> https://gitweb.dealii.org/ - dealii.git/commitdiff
PETScWrappers::MatrixFree remove improper usage of MPI_COMM_WORLD
authorStefano Zampini <stefano.zampini@gmail.com>
Thu, 10 Nov 2022 16:53:40 +0000 (17:53 +0100)
committerLuca Heltai <luca.heltai@sissa.it>
Tue, 20 Dec 2022 09:52:45 +0000 (10:52 +0100)
source/lac/petsc_matrix_free.cc

index bb4f86528aa690aeaae1794731e37dcd5ab5f9c9..751d64d4647b2132c7a69b5ac270f7b3ae05399b 100644 (file)
@@ -149,7 +149,7 @@ namespace PETScWrappers
                      const unsigned int local_rows,
                      const unsigned int local_columns)
   {
-    reinit(MPI_COMM_WORLD, m, n, local_rows, local_columns);
+    reinit(this->communicator, m, n, local_rows, local_columns);
   }
 
 
@@ -161,7 +161,7 @@ namespace PETScWrappers
                      const std::vector<unsigned int> &local_columns_per_process,
                      const unsigned int               this_process)
   {
-    reinit(MPI_COMM_WORLD,
+    reinit(this->communicator,
            m,
            n,
            local_rows_per_process,

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.