]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Merge pull request #14536 from marcfehling/reinit-ghosted
authorMartin Kronbichler <martin.kronbichler@uni-a.de>
Wed, 31 May 2023 19:16:03 +0000 (21:16 +0200)
committerGitHub <noreply@github.com>
Wed, 31 May 2023 19:16:03 +0000 (21:16 +0200)
Choose to initialize ghost elements with reinit(partitioner).

1  2 
include/deal.II/lac/la_parallel_vector.h
include/deal.II/lac/la_parallel_vector.templates.h
include/deal.II/lac/petsc_vector.h
include/deal.II/lac/trilinos_vector.h
source/lac/petsc_parallel_vector.cc
source/lac/trilinos_vector.cc

index dd71ae63e0311c4a1d09804e8837e9c73805298d,31113568665d9c45ea3f36036300be59cef8e8e1..9d4e6bd9ec50c73930d2ef1bcf41e8a303356cc0
@@@ -401,8 -403,20 +401,20 @@@ namespace LinearAlgebr
        void
        reinit(
          const std::shared_ptr<const Utilities::MPI::Partitioner> &partitioner,
 -        const MPI_Comm &comm_sm = MPI_COMM_SELF);
 +        const MPI_Comm comm_sm = MPI_COMM_SELF);
  
+       /**
+        * This function exists purely for reasons of compatibility with the
+        * PETScWrappers::MPI::Vector and TrilinosWrappers::MPI::Vector classes.
+        *
+        * It calls the function above, and ignores the parameter @p make_ghosted.
+        */
+       void
+       reinit(
+         const std::shared_ptr<const Utilities::MPI::Partitioner> &partitioner,
+         const bool                                                make_ghosted,
+         const MPI_Comm &comm_sm = MPI_COMM_SELF);
        /**
         * Initialize vector with @p local_size locally-owned and @p ghost_size
         * ghost degrees of freedoms.
index 3347055df1236445cf1cc7d07dbb9e7271493572,0f654eea205ee05543cd3e2e0786ab0e4b81132a..cfb3793932f7e68858e4f92c777589eb9ffdd0ca
@@@ -353,8 -349,16 +356,9 @@@ namespace PETScWrapper
         */
        void
        reinit(
-         const std::shared_ptr<const Utilities::MPI::Partitioner> &partitioner);
+         const std::shared_ptr<const Utilities::MPI::Partitioner> &partitioner,
+         const bool make_ghosted = true);
  
 -      /**
 -       * Return a reference to the MPI communicator object in use with this
 -       * vector.
 -       */
 -      const MPI_Comm &
 -      get_mpi_communicator() const override;
 -
        /**
         * Print to a stream. @p precision denotes the desired precision with
         * which values shall be printed, @p scientific whether scientific
Simple merge
Simple merge
Simple merge

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.