]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix a problem with gcc2.95:
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 16 Jun 2005 04:02:03 +0000 (04:02 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 16 Jun 2005 04:02:03 +0000 (04:02 +0000)
//TODO: we should really initialize these entries as forward_edge or
backward_edge, but gcc2.95 has a bug where it zero-initializes these data
elements instead, leading to aborts later on.

git-svn-id: https://svn.dealii.org/trunk@10870 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/grid_reordering.cc

index bfc03e0f6fb835fd25db5797f0add843d9d6204c..74c51493c3a0967dfebbfb8ca045bb124e72000e 100644 (file)
@@ -641,16 +641,17 @@ namespace internal
                                        * the edge -1 means the end
                                        * of the edge.
                                        */
+//TODO: we should really initialize these entries as forward_edge or backward_edge, but gcc2.95 has a bug where it zero-initializes these data elements instead, leading to aborts later on.
       static const EdgeOrientation edge_to_node_orient[8][3] = 
       {
-           {forward_edge,forward_edge,forward_edge},
-           {backward_edge,forward_edge,forward_edge},
-           {backward_edge,backward_edge,forward_edge},
-           {forward_edge,backward_edge,forward_edge},
-           {forward_edge,forward_edge,backward_edge},
-           {backward_edge,forward_edge,backward_edge},
-           {backward_edge,backward_edge,backward_edge}, 
-           {forward_edge,backward_edge,backward_edge}
+           {{'f'},{'f'},{'f'}},
+           {{'b'},{'f'},{'f'}},
+           {{'b'},{'b'},{'f'}},
+           {{'f'},{'b'},{'f'}},
+           {{'f'},{'f'},{'b'}},
+           {{'b'},{'f'},{'b'}},
+           {{'b'},{'b'},{'b'}}, 
+           {{'f'},{'b'},{'b'}}
       };           
     
                                       /**

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.