]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Extend text regarding allow_artificial_cells 11910/head
authorPeter Munch <peterrmuench@gmail.com>
Sun, 14 Mar 2021 16:21:56 +0000 (17:21 +0100)
committerPeter Munch <peterrmuench@gmail.com>
Thu, 18 Mar 2021 07:38:34 +0000 (08:38 +0100)
include/deal.II/distributed/shared_tria.h

index 0d4efafe5e2442e11bd0121c8c9c3e26aad01462..798a7b9be434a3ac17f62ed789c868dee63c9711 100644 (file)
@@ -228,11 +228,25 @@ namespace parallel
       /**
        * Constructor.
        *
-       * If @p allow_aritifical_cells is true, this class will behave similar
-       * to parallel::distributed::Triangulation in that there will be locally
-       * owned, ghost and artificial cells.
+       * The flag @p allow_artificial_cells can be used to enable artifical
+       * cells. If enabled, this class will behave similarly
+       * to parallel::distributed::Triangulation and
+       * parallel::fullydistributed::Triangulation in the sense that there will
+       * be locally owned cells, a single layer of ghost cells, and
+       * artificial cells. However, one should not forget that in contrast to
+       * those parallel triangulations all cells are duplicated on all
+       * processes, leading in most cases to significantly more artificial
+       * cells.
        *
-       * Otherwise all non-locally owned cells are considered ghost.
+       * If artificial cells are disabled, all non-locally owned cells are
+       * considered ghost cells. This might lead to very expensive ghost-value
+       * update steps. While in the case of artificial cells, ghost-value
+       * updates lead to communication only with the direct process neighbors in
+       * a point-to-point fashion, these degenerate to an operation in which
+       * every process communicates with every other process (an "all-to-all"
+       * communication) if no artifical cells are available. If such ghost-value
+       * updates are the bottleneck in your code, you may want to consider
+       * enabling artificial cells.
        */
       Triangulation(
         const MPI_Comm &mpi_communicator,

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.