From: wolf Date: Thu, 18 Feb 1999 16:14:16 +0000 (+0000) Subject: Fix a real show stopper bug. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=269e9019ac3b6c1415ac924606a8bd08de815269;p=dealii-svn.git Fix a real show stopper bug. git-svn-id: https://svn.dealii.org/trunk@840 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/Attic/examples/grid/grid_test.cc b/deal.II/deal.II/Attic/examples/grid/grid_test.cc index e1b15c9c8e..0b18f9cee4 100644 --- a/deal.II/deal.II/Attic/examples/grid/grid_test.cc +++ b/deal.II/deal.II/Attic/examples/grid/grid_test.cc @@ -80,7 +80,8 @@ CurvedLine::get_new_point_on_line (const typename Triangulation::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::get_new_point_on_line (const typename Triangulation::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), diff --git a/tests/big-tests/grid/grid_test.cc b/tests/big-tests/grid/grid_test.cc index e1b15c9c8e..0b18f9cee4 100644 --- a/tests/big-tests/grid/grid_test.cc +++ b/tests/big-tests/grid/grid_test.cc @@ -80,7 +80,8 @@ CurvedLine::get_new_point_on_line (const typename Triangulation::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::get_new_point_on_line (const typename Triangulation::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),