From: Wolfgang Bangerth Date: Mon, 25 Oct 2010 23:32:14 +0000 (+0000) Subject: Make sure things compile also with distributed meshes. X-Git-Tag: v8.0.0~5173 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=574753f8443b8b2ab2eea3bfd9743b5497b2067a;p=dealii.git Make sure things compile also with distributed meshes. git-svn-id: https://svn.dealii.org/trunk@22484 0785d39b-7218-0410-832d-ea1e28bc413d --- 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