]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make sure things compile also with distributed meshes.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 25 Oct 2010 23:32:14 +0000 (23:32 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 25 Oct 2010 23:32:14 +0000 (23:32 +0000)
git-svn-id: https://svn.dealii.org/trunk@22484 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/distributed/tria.cc

index 479041b78297fe5f931467f8177ce9ade757fdf5..c90a8205f6933b0a60351c08633fc01c97480aa0 100644 (file)
@@ -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 <int dim>

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.