From 1711e2c4f8762f8abb875ba8339d3923068d90ab Mon Sep 17 00:00:00 2001 From: Mae Markowski Date: Fri, 9 Aug 2019 08:51:37 -0600 Subject: [PATCH] Fixed typos on step-3 extension. --- examples/step-3/doc/results.dox | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/step-3/doc/results.dox b/examples/step-3/doc/results.dox index 2f5764aa63..8d8522e7c1 100644 --- a/examples/step-3/doc/results.dox +++ b/examples/step-3/doc/results.dox @@ -125,16 +125,15 @@ suggestions: run the program. An alternative way to change the boundary indicator is to label - the boundaries by the cartesian coordinates of the cell centers. + the boundaries by the cartesian coordinates of the face centers. For example, we can label all of the cells along the top and bottom boundaries with a boundary indicator 1 by checking to - see if the cell centers' y-coordiantes are within a tolerance + see if the cell centers' y-coordinates are within a tolerance (here 1e-12) of -1 and 1. Try this immediately after calling GridGenerator::hyper_cube, as before: @code for (; cell != endc; ++cell) { - { for (unsigned int face_number = 0; face_number < GeometryInfo<2>::faces_per_cell; ++face_number) @@ -142,7 +141,6 @@ suggestions: 1e-12) || (std::fabs(cell->face(face_number)->center()(1) - (1)) < 1e-12)) cell->face(face_number)->set_boundary_id(1); - } } @code Although this code is significantly longer than before, it is -- 2.39.5