From 5d099ddf52a7273c05c71ac24608411f076db17a Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 10 Mar 2004 15:32:12 +0000 Subject: [PATCH] newpt[] -> tmp[] to avoid confusion --- tutorial/t2.geo | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tutorial/t2.geo b/tutorial/t2.geo index 894dc82a3d..bb32000c44 100644 --- a/tutorial/t2.geo +++ b/tutorial/t2.geo @@ -27,7 +27,7 @@ Translate {-0.05,0,0} { Point{3}; } // The resulting point can also be duplicated and translated by 0.1 // along the y axis: -newpt[] = Translate {0,0.1,0} { Duplicata{ Point{3}; } } ; +tmp[] = Translate {0,0.1,0} { Duplicata{ Point{3}; } } ; // In this case, we assign the result of the Translate command to a // list, so that we can retrieve the number of the newly created point @@ -41,8 +41,8 @@ newpt[] = Translate {0,0.1,0} { Duplicata{ Point{3}; } } ; h = 0.12; Extrude Surface { 6, {0, 0, h} }; -Line(7) = {3,newpt[0]}; -Line(8) = {newpt[0],5}; +Line(7) = {3,tmp[0]}; +Line(8) = {tmp[0],5}; Line Loop(10) = {5,-8,-7,3}; Plane Surface(11) = {10}; @@ -53,7 +53,7 @@ Extrude Surface { 11, {0, 0, h} }; // elementary entities. The following command permits to manually // specify a characteristic length for some of the new points: -Characteristic Length {newpt[0], 22, 2, 3, 16, 12} = lc * 2; +Characteristic Length {tmp[0], 22, 2, 3, 16, 12} = lc * 2; // Note that, if the transformation tools are handy to create complex // geometries, it is also sometimes useful to generate the `flat' -- GitLab