From: Timo Heister Date: Tue, 22 Jul 2014 10:48:37 +0000 (+0200) Subject: compatibility fixes for p4est 1.0 X-Git-Tag: v8.2.0-rc1~261^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10%2Fhead;p=dealii.git compatibility fixes for p4est 1.0 The deprecated type p4est_connect_type_t got removed in p4est >=1.0. Use connect_type_t instead. --- diff --git a/include/deal.II/distributed/tria.h b/include/deal.II/distributed/tria.h index ea3e88bc09..8daa70dd59 100644 --- a/include/deal.II/distributed/tria.h +++ b/include/deal.II/distributed/tria.h @@ -88,7 +88,11 @@ namespace internal typedef p4est_quadrant_t quadrant; typedef p4est_topidx_t topidx; typedef p4est_locidx_t locidx; +#if DEAL_II_P4EST_VERSION_GTE(0,3,4,3) + typedef p4est_connect_type_t balance_type; +#else typedef p4est_balance_type_t balance_type; +#endif typedef p4est_ghost_t ghost; }; @@ -101,7 +105,11 @@ namespace internal typedef p8est_quadrant_t quadrant; typedef p4est_topidx_t topidx; typedef p4est_locidx_t locidx; +#if DEAL_II_P4EST_VERSION_GTE(0,3,4,3) + typedef p8est_connect_type_t balance_type; +#else typedef p8est_balance_type_t balance_type; +#endif typedef p8est_ghost_t ghost; };