From a3c47ed4fc4848860be3b893af57259853870910 Mon Sep 17 00:00:00 2001 From: Marc Fehling Date: Wed, 5 Sep 2018 16:39:23 -0600 Subject: [PATCH] Use workaround in 'p::d::Tria::execute_transfer()' only on older p4est versions. --- source/distributed/tria.cc | 3 +++ 1 file changed, 3 insertions(+) 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( -- 2.39.5