]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix a real show stopper bug.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 18 Feb 1999 16:14:16 +0000 (16:14 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 18 Feb 1999 16:14:16 +0000 (16:14 +0000)
git-svn-id: https://svn.dealii.org/trunk@840 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/Attic/examples/grid/grid_test.cc
tests/big-tests/grid/grid_test.cc

index e1b15c9c8e54b93dceb30787c5a79e53531abfa0..0b18f9cee406ffcda9515ecfa1787d9d193349dd 100644 (file)
@@ -80,7 +80,8 @@ CurvedLine<dim>::get_new_point_on_line (const typename Triangulation<dim>::line_
                                   // z-value of the midpoint is either
                                   // 0 or 1, then the z-values of all
                                   // vertices of the line is like that
-  if (((middle(2) == 0) || (middle(2) == 1))
+  if (dim>=3)
+    if (((middle(2) == 0) || (middle(2) == 1))
                                       // find out, if the line is in the
                                       // interior of the top or bottom face
                                       // of the domain, or at the edge.
@@ -93,8 +94,8 @@ CurvedLine<dim>::get_new_point_on_line (const typename Triangulation<dim>::line_
                                       // id was invented after the above was
                                       // written, so we are not very strict
                                       // here with using these flags
-      && (line->boundary_indicator() == 1))
-    return middle;
+       && (line->boundary_indicator() == 1))
+      return middle;
 
 
   double x=middle(0),
index e1b15c9c8e54b93dceb30787c5a79e53531abfa0..0b18f9cee406ffcda9515ecfa1787d9d193349dd 100644 (file)
@@ -80,7 +80,8 @@ CurvedLine<dim>::get_new_point_on_line (const typename Triangulation<dim>::line_
                                   // z-value of the midpoint is either
                                   // 0 or 1, then the z-values of all
                                   // vertices of the line is like that
-  if (((middle(2) == 0) || (middle(2) == 1))
+  if (dim>=3)
+    if (((middle(2) == 0) || (middle(2) == 1))
                                       // find out, if the line is in the
                                       // interior of the top or bottom face
                                       // of the domain, or at the edge.
@@ -93,8 +94,8 @@ CurvedLine<dim>::get_new_point_on_line (const typename Triangulation<dim>::line_
                                       // id was invented after the above was
                                       // written, so we are not very strict
                                       // here with using these flags
-      && (line->boundary_indicator() == 1))
-    return middle;
+       && (line->boundary_indicator() == 1))
+      return middle;
 
 
   double x=middle(0),

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.