From bedf1dc8fc169feb056542e22dd4a3981e6baa1f Mon Sep 17 00:00:00 2001 From: bangerth Date: Mon, 25 Oct 2010 23:32:14 +0000 Subject: [PATCH] Make sure things compile also with distributed meshes. git-svn-id: https://svn.dealii.org/trunk@22484 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/distributed/tria.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/deal.II/source/distributed/tria.cc b/deal.II/source/distributed/tria.cc index 479041b782..c90a8205f6 100644 --- a/deal.II/source/distributed/tria.cc +++ b/deal.II/source/distributed/tria.cc @@ -193,6 +193,7 @@ namespace internal size_t (&connectivity_memory_used) (types<2>::connectivity * p4est); }; +#if deal_II_dimension == 2 int (&functions<2>::quadrant_compare) (const void *v1, const void *v2) = p4est_quadrant_compare; @@ -315,6 +316,9 @@ namespace internal size_t (&functions<2>::connectivity_memory_used) (types<2>::connectivity * p4est) = p4est_connectivity_memory_used; +#endif + + template <> struct functions<3> { static @@ -440,6 +444,8 @@ namespace internal size_t (&connectivity_memory_used) (types<3>::connectivity * p4est); }; +#if deal_II_dimension == 3 + int (&functions<3>::quadrant_compare) (const void *v1, const void *v2) = p8est_quadrant_compare; @@ -564,7 +570,7 @@ namespace internal size_t (&functions<3>::connectivity_memory_used) (types<3>::connectivity * p4est) = p8est_connectivity_memory_used; - +#endif template -- 2.39.5