diff --git a/Parser/Gmsh.tab.cpp b/Parser/Gmsh.tab.cpp index 936739d844cf38db67606d61a3ccab10aa3c0307..47e42acad8c385617fa3e1b83c5b3f69a13ed07d 100644 --- a/Parser/Gmsh.tab.cpp +++ b/Parser/Gmsh.tab.cpp @@ -130,7 +130,7 @@ #line 1 "Gmsh.y" -// $Id: Gmsh.tab.cpp,v 1.319 2007-04-22 06:42:26 geuzaine Exp $ +// $Id: Gmsh.tab.cpp,v 1.320 2007-05-20 13:23:47 geuzaine Exp $ // // Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle // @@ -5488,7 +5488,7 @@ case 207: case 208: #line 2573 "Gmsh.y" { - yymsg(WARNING, "Explicit region numbers in layers are deprecated"); + yymsg(GERROR, "Explicit region numbers in layers are deprecated"); double d; extr.mesh.ExtrudeMesh = true; extr.mesh.NbLayer = List_Nbr(yyvsp[-6].l); diff --git a/Parser/Gmsh.y b/Parser/Gmsh.y index b89a5b425b040de6476f4135d1dc0e8e7f74ac9b..902f20b7e58e664fed1662b0ba50fac21ca0de89 100644 --- a/Parser/Gmsh.y +++ b/Parser/Gmsh.y @@ -1,5 +1,5 @@ %{ -// $Id: Gmsh.y,v 1.274 2007-04-22 06:42:26 geuzaine Exp $ +// $Id: Gmsh.y,v 1.275 2007-05-20 13:23:48 geuzaine Exp $ // // Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle // @@ -2571,7 +2571,7 @@ ExtrudeParameter : } | tLayers '{' ListOfDouble ',' ListOfDouble ',' ListOfDouble '}' tEND { - yymsg(WARNING, "Explicit region numbers in layers are deprecated"); + yymsg(GERROR, "Explicit region numbers in layers are deprecated"); double d; extr.mesh.ExtrudeMesh = true; extr.mesh.NbLayer = List_Nbr($3); diff --git a/Parser/Gmsh.yy.cpp b/Parser/Gmsh.yy.cpp index 665ded2d9073c8f0c35b9b5256fdfd3915dac797..e2c75d4e0a16fd02ad5e2be29b3f24c69a476d4b 100644 --- a/Parser/Gmsh.yy.cpp +++ b/Parser/Gmsh.yy.cpp @@ -2,7 +2,7 @@ /* A lexical scanner generated by flex */ /* Scanner skeleton version: - * $Header: /cvsroot/gmsh/Parser/Gmsh.yy.cpp,v 1.318 2007-04-22 06:42:26 geuzaine Exp $ + * $Header: /cvsroot/gmsh/Parser/Gmsh.yy.cpp,v 1.319 2007-05-20 13:23:48 geuzaine Exp $ */ #define FLEX_SCANNER @@ -752,7 +752,7 @@ char *yytext; #line 1 "Gmsh.l" #define INITIAL 0 #line 2 "Gmsh.l" -// $Id: Gmsh.yy.cpp,v 1.318 2007-04-22 06:42:26 geuzaine Exp $ +// $Id: Gmsh.yy.cpp,v 1.319 2007-05-20 13:23:48 geuzaine Exp $ // // Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle // diff --git a/doc/texinfo/gmsh.texi b/doc/texinfo/gmsh.texi index 52008ee6615090020386307fcaa941df0b9ae266..68938f0dd1a181f37a0c8b715ff2e5940bb78eff 100644 --- a/doc/texinfo/gmsh.texi +++ b/doc/texinfo/gmsh.texi @@ -1,5 +1,5 @@ \input texinfo.tex @c -*-texinfo-*- -@c $Id: gmsh.texi,v 1.231 2007-03-29 16:32:23 geuzaine Exp $ +@c $Id: gmsh.texi,v 1.232 2007-05-20 13:23:48 geuzaine Exp $ @c @c Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle @c @@ -2016,7 +2016,7 @@ extruded and has the following syntax: @end group @end example -In the first @code{Layer} form, @var{expression} gives the number of +In the first @code{Layers} form, @var{expression} gives the number of elements to be created in the (single) layer. In the second form, the first @var{expression-list} defines how many elements should be created in each extruded layer, and the second @var{expression-list} gives the @@ -2029,6 +2029,16 @@ into quadrangles when possible. For surface extrusions, the @code{Recombine} option will recombine tetrahedra into prisms, hexahedra or pyramids. +Please note that, starting with Gmsh 2.0, region numbers cannot be +specified explicitly anymore in @code{Layers} commands. Instead, as with +all other geometry commands, you must use the automatically created +entity identifier created by the extrusion command. For example, the +following extrusion command will return the id of the new ``top'' +surface in @code{num[0]} and the id of the new volume in @code{num[1]}: +@example +num[] = Extrude @{0,0,1@} @{ Surface@{1@}; Layers@{10@}; @}; +@end example + @item Extrude @{ @{ @var{expression-list} @}, @{ @var{expression-list} @}, @var{expression} @} @{ @var{extrude-list} @var{layers} @} Extrudes both the geometry and the mesh using a rotation (@pxref{Extrusions}). The @var{layers} option is defined as above.