From: Marc Fehling Date: Wed, 5 Sep 2018 22:39:23 +0000 (-0600) Subject: Use workaround in 'p::d::Tria::execute_transfer()' only on older p4est versions. X-Git-Tag: v9.1.0-rc1~748^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7152%2Fhead;p=dealii.git Use workaround in 'p::d::Tria::execute_transfer()' only on older p4est versions. --- diff --git a/source/distributed/tria.cc b/source/distributed/tria.cc index 8e16f9c3da..adba4ef8b3 100644 --- a/source/distributed/tria.cc +++ b/source/distributed/tria.cc @@ -1547,6 +1547,8 @@ namespace parallel dest_sizes_variable.end(), std::vector::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::transfer_custom(