]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use workaround in 'p::d::Tria::execute_transfer()' only on older p4est versions. 7152/head
authorMarc Fehling <marc.fehling@gmx.net>
Wed, 5 Sep 2018 22:39:23 +0000 (16:39 -0600)
committerMarc Fehling <marc.fehling@gmx.net>
Wed, 5 Sep 2018 22:39:23 +0000 (16:39 -0600)
source/distributed/tria.cc

index 8e16f9c3da4051d5fa3f5e41ab8d3a87bff6f5de..adba4ef8b375993c5b233a6823363629d62454c8 100644 (file)
@@ -1547,6 +1547,8 @@ namespace parallel
                             dest_sizes_variable.end(),
                             std::vector<int>::size_type(0)));
 
+#  if DEAL_II_P4EST_VERSION_GTE(2, 0, 65, 0)
+#  else
           // ----- WORKAROUND -----
           // An assertion in p4est prevents us from sending/receiving no data
           // at all, which is mandatory if one of our processes does not own
@@ -1556,6 +1558,7 @@ namespace parallel
             src_sizes_variable.resize(1);
           if (dest_sizes_variable.size() == 0)
             dest_sizes_variable.resize(1);
+#  endif
 
           // Execute variable size transfer.
           dealii::internal::p4est::functions<dim>::transfer_custom(

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.