]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Do not transfer the MPI communicator when copying the triangulation 8979/head
authorAlexander Grayver <agrayver@erdw.ethz.ch>
Thu, 31 Oct 2019 14:53:46 +0000 (15:53 +0100)
committerDaniel Arndt <arndtd@ornl.gov>
Sat, 2 Nov 2019 22:16:22 +0000 (18:16 -0400)
doc/news/changes/minor/20193110Grayver [new file with mode: 0644]
include/deal.II/distributed/tria_base.h
source/distributed/tria_base.cc

diff --git a/doc/news/changes/minor/20193110Grayver b/doc/news/changes/minor/20193110Grayver
new file mode 100644 (file)
index 0000000..54fa724
--- /dev/null
@@ -0,0 +1,4 @@
+Changed: parallel::TriangulationBase::copy_triangulation does not
+copy the MPI communicator from the given source triangulation.
+<br>
+(Alexander Grayver, 2019/10/31)
index 64b983080d61748ff3478dee15c1d1a1153a8272..ffdb86988ff71239d3fdf9fde91e5aa934ba9be2 100644 (file)
@@ -98,6 +98,11 @@ namespace parallel
 
     /**
      * Implementation of the same function as in the base class.
+     *
+     * @note This function copies the cells, but not the communicator,
+     * of the source triangulation. In other words, the resulting
+     * triangulation will operate on the communicator it was constructed
+     * with.
      */
     virtual void
     copy_triangulation(
index bad673e21e81686fecf05d5f40bb49a9158887c5..0fb62f9a7966d8dc3441831a53486acecf92afaa 100644 (file)
@@ -77,8 +77,6 @@ namespace parallel
           dynamic_cast<const dealii::parallel::TriangulationBase<dim, spacedim>
                          *>(&other_tria))
       {
-        mpi_communicator = other_tria_x->get_communicator();
-
         // release unused vector memory because we will have very different
         // vectors now
         ::dealii::internal::GrowingVectorMemoryImplementation::

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.