Newer
Older
c->Circle.n[1] = (yyvsp[(8) - (9)].v)[1];
c->Circle.n[2] = (yyvsp[(8) - (9)].v)[2];
rc->Circle.n[0] = (yyvsp[(8) - (9)].v)[0];
rc->Circle.n[1] = (yyvsp[(8) - (9)].v)[1];
rc->Circle.n[2] = (yyvsp[(8) - (9)].v)[2];
List_Delete((yyvsp[(6) - (9)].l));
(yyval.s).Type = MSH_SEGM_ELLI;
(yyval.s).Num = num;
;}
break;

Christophe Geuzaine
committed
case 99:

Christophe Geuzaine
committed
#line 1329 "Gmsh.y"
yymsg(GERROR, "Curve %d already exists", num);
}
else{
Curve *c = Create_Curve(num, MSH_SEGM_PARAMETRIC, 2, NULL, NULL,
-1, -1, (yyvsp[(7) - (17)].d), (yyvsp[(9) - (17)].d));
strcpy(c->functu, (yyvsp[(11) - (17)].c));
strcpy(c->functv, (yyvsp[(13) - (17)].c));
strcpy(c->functw, (yyvsp[(15) - (17)].c));
Free((yyvsp[(11) - (17)].c)); Free((yyvsp[(13) - (17)].c)); Free((yyvsp[(15) - (17)].c));
(yyval.s).Type = MSH_SEGM_PARAMETRIC;
(yyval.s).Num = num;
;}
break;

Christophe Geuzaine
committed
case 100:

Christophe Geuzaine
committed
#line 1348 "Gmsh.y"
if(FindCurve(num)){
yymsg(GERROR, "Curve %d already exists", num);
Curve *c = Create_Curve(num, MSH_SEGM_BSPLN, 2, temp, NULL,
-1, -1, 0., 1.);
List_Delete((yyvsp[(6) - (7)].l));
(yyval.s).Type = MSH_SEGM_BSPLN;
(yyval.s).Num = num;
;}
break;

Christophe Geuzaine
committed
case 101:

Christophe Geuzaine
committed
#line 1366 "Gmsh.y"
if(FindCurve(num)){
yymsg(GERROR, "Curve %d already exists", num);
Curve *c = Create_Curve(num, MSH_SEGM_BEZIER, 2, temp, NULL,
-1, -1, 0., 1.);
List_Delete((yyvsp[(6) - (7)].l));
(yyval.s).Type = MSH_SEGM_BEZIER;
(yyval.s).Num = num;
;}
break;

Christophe Geuzaine
committed
case 102:

Christophe Geuzaine
committed
#line 1384 "Gmsh.y"
{
int num = (int)(yyvsp[(3) - (11)].d);
if(List_Nbr((yyvsp[(6) - (11)].l)) + (int)(yyvsp[(10) - (11)].d) + 1 != List_Nbr((yyvsp[(8) - (11)].l))){
yymsg(GERROR, "Wrong definition of Nurbs Curve %d: "
"got %d knots, need N + D + 1 = %d + %d + 1 = %d",
(int)(yyvsp[(3) - (11)].d), List_Nbr((yyvsp[(8) - (11)].l)), List_Nbr((yyvsp[(6) - (11)].l)), (int)(yyvsp[(10) - (11)].d), List_Nbr((yyvsp[(6) - (11)].l)) + (int)(yyvsp[(10) - (11)].d) + 1);
List_T *temp = ListOfDouble2ListOfInt((yyvsp[(6) - (11)].l));
Curve *c = Create_Curve(num, MSH_SEGM_NURBS, (int)(yyvsp[(10) - (11)].d), temp, (yyvsp[(8) - (11)].l),
List_Delete((yyvsp[(6) - (11)].l));
List_Delete((yyvsp[(8) - (11)].l));
(yyval.s).Type = MSH_SEGM_NURBS;
(yyval.s).Num = num;
;}
break;

Christophe Geuzaine
committed
case 103:

Christophe Geuzaine
committed
#line 1410 "Gmsh.y"
sortEdgesInLoop(num, temp);
EdgeLoop *l = Create_EdgeLoop(num, temp);
List_Delete((yyvsp[(7) - (8)].l));
(yyval.s).Type = MSH_SEGM_LOOP;
(yyval.s).Num = num;
;}
break;

Christophe Geuzaine
committed
case 104:

Christophe Geuzaine
committed
#line 1427 "Gmsh.y"
else{
PhysicalGroup *p = Create_PhysicalGroup(num, MSH_PHYSICAL_LINE, temp);
List_Delete(temp);
List_Add(GModel::current()->getGEOInternals()->PhysicalGroups, &p);
List_Delete((yyvsp[(7) - (8)].l));
(yyval.s).Type = MSH_PHYSICAL_LINE;
(yyval.s).Num = num;
;}
break;

Christophe Geuzaine
committed
case 105:

Christophe Geuzaine
committed
#line 1446 "Gmsh.y"
yymsg(GERROR, "Surface %d already exists", num);
}
else{
Surface *s = Create_Surface(num, MSH_SURF_PLAN);
setSurfaceGeneratrices(s, temp);
List_Delete(temp);
End_Surface(s);
List_Delete((yyvsp[(7) - (8)].l));
(yyval.s).Type = MSH_SURF_PLAN;
(yyval.s).Num = num;
;}
break;

Christophe Geuzaine
committed
case 106:

Christophe Geuzaine
committed
#line 1464 "Gmsh.y"

Christophe Geuzaine
committed
int num = (int)(yyvsp[(4) - (9)].d), type = 0;
yymsg(GERROR, "Surface %d already exists", num);
}
else{
double d;

Christophe Geuzaine
committed
List_Read((yyvsp[(7) - (9)].l), 0, &d);
}
else{
int j = List_Nbr(el->Curves);
if(j == 4){
type = MSH_SURF_REGL;
}
else if(j == 3){
type = MSH_SURF_TRIC;
}
else{
yymsg(GERROR, "Wrong definition of Ruled Surface %d: "
"%d borders instead of 3 or 4", num, j);
type = MSH_SURF_PLAN;
}
Surface *s = Create_Surface(num, type);

Christophe Geuzaine
committed
List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (9)].l));
setSurfaceGeneratrices(s, temp);
List_Delete(temp);
End_Surface(s);

Christophe Geuzaine
committed
s->RuledSurfaceOptions = (yyvsp[(8) - (9)].l);

Christophe Geuzaine
committed
List_Delete((yyvsp[(7) - (9)].l));
(yyval.s).Type = type;
(yyval.s).Num = num;
;}
break;

Christophe Geuzaine
committed
case 107:

Christophe Geuzaine
committed
#line 1503 "Gmsh.y"

Christophe Geuzaine
committed
case 108:

Christophe Geuzaine
committed
#line 1509 "Gmsh.y"
myGmshSurface = gmshSurface::getSurface((int)(yyvsp[(3) - (4)].d));

Christophe Geuzaine
committed
case 109:

Christophe Geuzaine
committed
#line 1515 "Gmsh.y"
int num = (int)(yyvsp[(4) - (10)].d);
myGmshSurface = gmshParametricSurface::NewParametricSurface(num, (yyvsp[(7) - (10)].c), (yyvsp[(8) - (10)].c), (yyvsp[(9) - (10)].c));
(yyval.s).Type = 0;
(yyval.s).Num = num;

Christophe Geuzaine
committed
case 110:

Christophe Geuzaine
committed
#line 1522 "Gmsh.y"
yymsg(GERROR, "Sphere %d has to be defined using 2 points (center + "
List_Read((yyvsp[(6) - (7)].l), 0, &p1);
List_Read((yyvsp[(6) - (7)].l), 1, &p2);
Vertex *v1 = FindPoint((int)p1);
Vertex *v2 = FindPoint((int)p2);
if(!v1) yymsg(GERROR, "Sphere %d : unknown point %d", num, (int)p1);
if(!v2) yymsg(GERROR, "Sphere %d : unknown point %d", num, (int)p2);
if(v1 && v2)
myGmshSurface = gmshSphere::NewSphere
(num, v1->Pos.X, v1->Pos.Y, v1->Pos.Z,
sqrt((v2->Pos.X - v1->Pos.X) * (v2->Pos.X - v1->Pos.X) +
(v2->Pos.Y - v1->Pos.Y) * (v2->Pos.Y - v1->Pos.Y) +
(v2->Pos.Z - v1->Pos.Z) * (v2->Pos.Z - v1->Pos.Z)));
}

Christophe Geuzaine
committed
case 111:

Christophe Geuzaine
committed
#line 1547 "Gmsh.y"
yymsg(GERROR, "PolarSphere %d has to be defined using 2 points (center + "
List_Read((yyvsp[(6) - (7)].l), 0, &p1);
List_Read((yyvsp[(6) - (7)].l), 1, &p2);
Vertex *v1 = FindPoint((int)p1);
Vertex *v2 = FindPoint((int)p2);
if(!v1) yymsg(GERROR, "PolarSphere %d : unknown point %d", num, (int)p1);
if(!v2) yymsg(GERROR, "PolarSphere %d : unknown point %d", num, (int)p2);
if(v1 && v2)
myGmshSurface = gmshPolarSphere::NewPolarSphere
(num, v1->Pos.X, v1->Pos.Y, v1->Pos.Z,
sqrt((v2->Pos.X - v1->Pos.X) * (v2->Pos.X - v1->Pos.X) +
(v2->Pos.Y - v1->Pos.Y) * (v2->Pos.Y - v1->Pos.Y) +
(v2->Pos.Z - v1->Pos.Z) * (v2->Pos.Z - v1->Pos.Z)));
}

Christophe Geuzaine
committed
case 112:

Christophe Geuzaine
committed
#line 1572 "Gmsh.y"
yymsg(GERROR, "Surface loop %d already exists", num);
}
else{
Tree_Add(GModel::current()->getGEOInternals()->SurfaceLoops, &l);
List_Delete((yyvsp[(7) - (8)].l));
(yyval.s).Type = MSH_SURF_LOOP;
(yyval.s).Num = num;
;}
break;

Christophe Geuzaine
committed
case 113:

Christophe Geuzaine
committed
#line 1588 "Gmsh.y"
yymsg(GERROR, "Physical surface %d already exists", num);
}
else{
PhysicalGroup *p = Create_PhysicalGroup(num, MSH_PHYSICAL_SURFACE, temp);
List_Delete(temp);
List_Add(GModel::current()->getGEOInternals()->PhysicalGroups, &p);
List_Delete((yyvsp[(7) - (8)].l));
(yyval.s).Type = MSH_PHYSICAL_SURFACE;
(yyval.s).Num = num;
;}
break;

Christophe Geuzaine
committed
case 114:

Christophe Geuzaine
committed
#line 1608 "Gmsh.y"
yymsg(GERROR, "'Complex Volume' command is deprecated: use 'Volume' instead");
yymsg(GERROR, "Volume %d already exists", num);
}
else{
Volume *v = Create_Volume(num, MSH_VOLUME);
List_Delete((yyvsp[(7) - (8)].l));
(yyval.s).Type = MSH_VOLUME;
(yyval.s).Num = num;
;}
break;

Christophe Geuzaine
committed
case 115:

Christophe Geuzaine
committed
#line 1626 "Gmsh.y"
yymsg(GERROR, "Volume %d already exists", num);
}
else{
Volume *v = Create_Volume(num, MSH_VOLUME);
List_Delete((yyvsp[(6) - (7)].l));
(yyval.s).Type = MSH_VOLUME;
(yyval.s).Num = num;
;}
break;

Christophe Geuzaine
committed
case 116:

Christophe Geuzaine
committed
#line 1643 "Gmsh.y"
yymsg(GERROR, "Physical volume %d already exists", num);
}
else{
PhysicalGroup *p = Create_PhysicalGroup(num, MSH_PHYSICAL_VOLUME, temp);
List_Delete(temp);
List_Add(GModel::current()->getGEOInternals()->PhysicalGroups, &p);
List_Delete((yyvsp[(7) - (8)].l));
(yyval.s).Type = MSH_PHYSICAL_VOLUME;
(yyval.s).Num = num;
;}
break;

Christophe Geuzaine
committed
case 117:

Christophe Geuzaine
committed
#line 1664 "Gmsh.y"
{
TranslateShapes((yyvsp[(2) - (5)].v)[0], (yyvsp[(2) - (5)].v)[1], (yyvsp[(2) - (5)].v)[2], (yyvsp[(4) - (5)].l));
(yyval.l) = (yyvsp[(4) - (5)].l);
;}
break;

Christophe Geuzaine
committed
case 118:

Christophe Geuzaine
committed
#line 1669 "Gmsh.y"
{
RotateShapes((yyvsp[(3) - (11)].v)[0], (yyvsp[(3) - (11)].v)[1], (yyvsp[(3) - (11)].v)[2], (yyvsp[(5) - (11)].v)[0], (yyvsp[(5) - (11)].v)[1], (yyvsp[(5) - (11)].v)[2], (yyvsp[(7) - (11)].d), (yyvsp[(10) - (11)].l));
(yyval.l) = (yyvsp[(10) - (11)].l);
;}
break;

Christophe Geuzaine
committed
case 119:

Christophe Geuzaine
committed
#line 1674 "Gmsh.y"
{
SymmetryShapes((yyvsp[(2) - (5)].v)[0], (yyvsp[(2) - (5)].v)[1], (yyvsp[(2) - (5)].v)[2], (yyvsp[(2) - (5)].v)[3], (yyvsp[(4) - (5)].l));
(yyval.l) = (yyvsp[(4) - (5)].l);
;}
break;

Christophe Geuzaine
committed
case 120:

Christophe Geuzaine
committed
#line 1679 "Gmsh.y"
{
DilatShapes((yyvsp[(3) - (9)].v)[0], (yyvsp[(3) - (9)].v)[1], (yyvsp[(3) - (9)].v)[2], (yyvsp[(5) - (9)].d), (yyvsp[(8) - (9)].l));
(yyval.l) = (yyvsp[(8) - (9)].l);
;}
break;

Christophe Geuzaine
committed
case 121:

Christophe Geuzaine
committed
#line 1684 "Gmsh.y"
{
(yyval.l) = List_Create(3, 3, sizeof(Shape));
for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){

Christophe Geuzaine
committed
case 122:

Christophe Geuzaine
committed
#line 1695 "Gmsh.y"
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
IntersectCurvesWithSurface((yyvsp[(4) - (9)].l), (int)(yyvsp[(8) - (9)].d), (yyval.l));
List_Delete((yyvsp[(4) - (9)].l));
;}
break;

Christophe Geuzaine
committed
case 123:

Christophe Geuzaine
committed
#line 1701 "Gmsh.y"
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
BoundaryShapes((yyvsp[(3) - (4)].l), (yyval.l));
List_Delete((yyvsp[(3) - (4)].l));
;}
break;

Christophe Geuzaine
committed
case 124:

Christophe Geuzaine
committed
#line 1709 "Gmsh.y"

Christophe Geuzaine
committed
case 125:

Christophe Geuzaine
committed
#line 1710 "Gmsh.y"

Christophe Geuzaine
committed
case 126:

Christophe Geuzaine
committed
#line 1715 "Gmsh.y"
{
(yyval.l) = List_Create(3, 3, sizeof(Shape));
;}
break;

Christophe Geuzaine
committed
case 127:

Christophe Geuzaine
committed
#line 1719 "Gmsh.y"
{
List_Add((yyval.l), &(yyvsp[(2) - (2)].s));
;}
break;

Christophe Geuzaine
committed
case 128:

Christophe Geuzaine
committed
#line 1723 "Gmsh.y"
}
else
yymsg(WARNING, "Unknown point %d", TheShape.Num);
}

Christophe Geuzaine
committed
case 129:

Christophe Geuzaine
committed
#line 1746 "Gmsh.y"
}
else
yymsg(WARNING, "Unknown curve %d", TheShape.Num);
}

Christophe Geuzaine
committed
case 130:

Christophe Geuzaine
committed
#line 1769 "Gmsh.y"
}
else
yymsg(WARNING, "Unknown surface %d", TheShape.Num);
}

Christophe Geuzaine
committed
case 131:

Christophe Geuzaine
committed
#line 1792 "Gmsh.y"
}
else
yymsg(WARNING, "Unknown volume %d", TheShape.Num);
}

Christophe Geuzaine
committed
case 132:

Christophe Geuzaine
committed
#line 1820 "Gmsh.y"

Christophe Geuzaine
committed
case 133:

Christophe Geuzaine
committed
#line 1829 "Gmsh.y"
GModel::current()->getFields()->delete_field((int)(yyvsp[(4) - (6)].d));
;}

Christophe Geuzaine
committed
case 134:

Christophe Geuzaine
committed
#line 1833 "Gmsh.y"

Christophe Geuzaine
committed
#if !defined(HAVE_NO_POST)
if(!strcmp((yyvsp[(2) - (6)].c), "View")){
int index = (int)(yyvsp[(4) - (6)].d);
delete PView::list[index];
else
yymsg(GERROR, "Unknown view %d", index);
yymsg(GERROR, "Unknown command 'Delete %s'", (yyvsp[(2) - (6)].c));

Christophe Geuzaine
committed
#endif

Christophe Geuzaine
committed
case 135:

Christophe Geuzaine
committed
#line 1848 "Gmsh.y"
{
if(!strcmp((yyvsp[(2) - (3)].c), "Meshes") || !strcmp((yyvsp[(2) - (3)].c), "All")){
List_Action(GModel::current()->getGEOInternals()->PhysicalGroups,
Free_PhysicalGroup);
List_Reset(GModel::current()->getGEOInternals()->PhysicalGroups);
yymsg(GERROR, "Unknown command 'Delete %s'", (yyvsp[(2) - (3)].c));
Free((yyvsp[(2) - (3)].c));
;}
break;

Christophe Geuzaine
committed
case 136:

Christophe Geuzaine
committed
#line 1864 "Gmsh.y"

Christophe Geuzaine
committed
#if !defined(HAVE_NO_POST)
if(!strcmp((yyvsp[(2) - (4)].c), "Empty") && !strcmp((yyvsp[(3) - (4)].c), "Views")){
for(int i = PView::list.size() - 1; i >= 0; i--)
if(PView::list[i]->getData()->empty()) delete PView::list[i];
yymsg(GERROR, "Unknown command 'Delete %s %s'", (yyvsp[(2) - (4)].c), (yyvsp[(3) - (4)].c));

Christophe Geuzaine
committed
#endif
Free((yyvsp[(2) - (4)].c)); Free((yyvsp[(3) - (4)].c));
;}
break;

Christophe Geuzaine
committed
case 137:

Christophe Geuzaine
committed
#line 1881 "Gmsh.y"
List_Read((yyvsp[(4) - (5)].l), i, &TheShape);
ColorShape(TheShape.Type, TheShape.Num, (yyvsp[(2) - (5)].u));

Christophe Geuzaine
committed
case 138:

Christophe Geuzaine
committed
#line 1895 "Gmsh.y"
VisibilityShape((yyvsp[(2) - (3)].c), i, 1);
Free((yyvsp[(2) - (3)].c));
;}
break;

Christophe Geuzaine
committed
case 139:

Christophe Geuzaine
committed
#line 1901 "Gmsh.y"
VisibilityShape((yyvsp[(2) - (3)].c), i, 0);
Free((yyvsp[(2) - (3)].c));
;}
break;

Christophe Geuzaine
committed
case 140:

Christophe Geuzaine
committed
#line 1907 "Gmsh.y"
VisibilityShape(TheShape.Type, TheShape.Num, 1);

Christophe Geuzaine
committed
case 141:

Christophe Geuzaine
committed
#line 1916 "Gmsh.y"

Christophe Geuzaine
committed
case 142:

Christophe Geuzaine
committed
#line 1930 "Gmsh.y"
// Warning: we *don't* close included files (to allow user
// functions in these files). If you need to include many many
// files and don't have functions in the files, use "Merge"
// instead: some OSes limit the number of files a process can
// open simultaneously. The right solution would be of course
// to modify FunctionManager to reopen the files instead of
// using the FILE pointer, but hey, I'm lazy...
Msg(STATUS2, "Reading '%s'", tmpstring);
ParseFile(tmpstring, 0, 1);
// make sure we have the latest data from GEO_Internals in GModel
// (fixes bug where we would have no geometry in the picture if
// the print command is in the same file as the geometry)
else if(!strcmp((yyvsp[(1) - (3)].c), "Merge") || !strcmp((yyvsp[(1) - (3)].c), "MergeWithBoundingBox")){
}
else if(!strcmp((yyvsp[(1) - (3)].c), "System"))
SystemCall((yyvsp[(2) - (3)].c));
yymsg(GERROR, "Unknown command '%s'", (yyvsp[(1) - (3)].c));
Free((yyvsp[(1) - (3)].c)); Free((yyvsp[(2) - (3)].c));
;}
break;

Christophe Geuzaine
committed
case 143:

Christophe Geuzaine
committed
#line 1978 "Gmsh.y"

Christophe Geuzaine
committed
#if !defined(HAVE_NO_POST)
if(!strcmp((yyvsp[(1) - (7)].c), "Save") && !strcmp((yyvsp[(2) - (7)].c), "View")){
int index = (int)(yyvsp[(4) - (7)].d);

Christophe Geuzaine
committed
#endif
Free((yyvsp[(1) - (7)].c)); Free((yyvsp[(2) - (7)].c)); Free((yyvsp[(6) - (7)].c));
;}
break;

Christophe Geuzaine
committed
case 144:

Christophe Geuzaine
committed
#line 1996 "Gmsh.y"

Christophe Geuzaine
committed
#if !defined(HAVE_NO_POST)
if(!strcmp((yyvsp[(1) - (7)].c), "Background") && !strcmp((yyvsp[(2) - (7)].c), "Mesh") && !strcmp((yyvsp[(3) - (7)].c), "View")){
int index = (int)(yyvsp[(5) - (7)].d);
if(index >= 0 && index < (int)PView::list.size())

Christophe Geuzaine
committed
#endif
Free((yyvsp[(1) - (7)].c)); Free((yyvsp[(2) - (7)].c)); Free((yyvsp[(3) - (7)].c));
;}
break;

Christophe Geuzaine
committed
case 145:

Christophe Geuzaine
committed
#line 2011 "Gmsh.y"
{
if(!strcmp((yyvsp[(1) - (3)].c), "Sleep")){
SleepInSeconds((yyvsp[(2) - (3)].d));
Msg(GERROR, "Surface ReMeshing must be reinterfaced");
// ReMesh();

Christophe Geuzaine
committed
yymsg(GERROR, "Mesh directives are not (yet) allowed in scripts");
yymsg(GERROR, "Mesh directives are not (yet) allowed in scripts");
yymsg(GERROR, "Unknown command '%s'", (yyvsp[(1) - (3)].c));
Free((yyvsp[(1) - (3)].c));
;}
break;

Christophe Geuzaine
committed
case 146:

Christophe Geuzaine
committed
#line 2030 "Gmsh.y"

Christophe Geuzaine
committed
#if !defined(HAVE_NO_POST)
GMSH_PluginManager::instance()->action((yyvsp[(3) - (7)].c), (yyvsp[(6) - (7)].c), 0);
yymsg(GERROR, "Unknown action '%s' or plugin '%s'", (yyvsp[(6) - (7)].c), (yyvsp[(3) - (7)].c));

Christophe Geuzaine
committed
#endif
Free((yyvsp[(3) - (7)].c)); Free((yyvsp[(6) - (7)].c));
;}
break;

Christophe Geuzaine
committed
case 147:

Christophe Geuzaine
committed
#line 2042 "Gmsh.y"

Christophe Geuzaine
committed
#if !defined(HAVE_NO_POST)
else if(!strcmp((yyvsp[(2) - (3)].c), "ElementsFromVisibleViews"))
else if(!strcmp((yyvsp[(2) - (3)].c), "TimeStepsFromVisibleViews"))

Christophe Geuzaine
committed
#endif

Christophe Geuzaine
committed
case 148:

Christophe Geuzaine
committed
#line 2066 "Gmsh.y"

Christophe Geuzaine
committed
case 149:

Christophe Geuzaine
committed
#line 2070 "Gmsh.y"

Christophe Geuzaine
committed
case 150:

Christophe Geuzaine
committed
#line 2075 "Gmsh.y"
SetBoundingBox((yyvsp[(3) - (15)].d), (yyvsp[(5) - (15)].d), (yyvsp[(7) - (15)].d), (yyvsp[(9) - (15)].d), (yyvsp[(11) - (15)].d), (yyvsp[(13) - (15)].d));
;}
break;

Christophe Geuzaine
committed
case 151:

Christophe Geuzaine
committed
#line 2080 "Gmsh.y"

Christophe Geuzaine
committed
case 152:

Christophe Geuzaine
committed
#line 2092 "Gmsh.y"
{
LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[(3) - (6)].d);
LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[(5) - (6)].d);
fgetpos(gmsh_yyin, &yyposImbricatedLoopsTab[ImbricatedLoop]);
yylinenoImbricatedLoopsTab[ImbricatedLoop] = gmsh_yylineno;
if((yyvsp[(3) - (6)].d) > (yyvsp[(5) - (6)].d))
skip_until("For", "EndFor");
else
ImbricatedLoop++;
if(ImbricatedLoop > MAX_RECUR_LOOPS-1){
yymsg(GERROR, "Reached maximum number of imbricated loops");
ImbricatedLoop = MAX_RECUR_LOOPS-1;
}

Christophe Geuzaine
committed
case 153:

Christophe Geuzaine
committed
#line 2109 "Gmsh.y"
{
LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[(3) - (8)].d);
LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[(5) - (8)].d);
LoopControlVariablesTab[ImbricatedLoop][2] = (yyvsp[(7) - (8)].d);
fgetpos(gmsh_yyin, &yyposImbricatedLoopsTab[ImbricatedLoop]);
yylinenoImbricatedLoopsTab[ImbricatedLoop] = gmsh_yylineno;
if(((yyvsp[(7) - (8)].d) > 0. && (yyvsp[(3) - (8)].d) > (yyvsp[(5) - (8)].d)) || ((yyvsp[(7) - (8)].d) < 0. && (yyvsp[(3) - (8)].d) < (yyvsp[(5) - (8)].d)))
skip_until("For", "EndFor");
else
ImbricatedLoop++;
if(ImbricatedLoop > MAX_RECUR_LOOPS-1){
yymsg(GERROR, "Reached maximum number of imbricated loops");
ImbricatedLoop = MAX_RECUR_LOOPS-1;
}

Christophe Geuzaine
committed
case 154:

Christophe Geuzaine
committed
#line 2126 "Gmsh.y"
{
LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[(5) - (8)].d);
LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[(7) - (8)].d);
LoopControlVariablesNameTab[ImbricatedLoop] = (yyvsp[(2) - (8)].c);
if(!(pSymbol = (Symbol*)Tree_PQuery(Symbol_T, &TheSymbol))){
TheSymbol.val = List_Create(1, 1, sizeof(double));
fgetpos(gmsh_yyin, &yyposImbricatedLoopsTab[ImbricatedLoop]);
yylinenoImbricatedLoopsTab[ImbricatedLoop] = gmsh_yylineno;
if((yyvsp[(5) - (8)].d) > (yyvsp[(7) - (8)].d))
skip_until("For", "EndFor");
else
ImbricatedLoop++;
if(ImbricatedLoop > MAX_RECUR_LOOPS-1){
yymsg(GERROR, "Reached maximum number of imbricated loops");
ImbricatedLoop = MAX_RECUR_LOOPS-1;
}

Christophe Geuzaine
committed
case 155:

Christophe Geuzaine
committed
#line 2153 "Gmsh.y"
{
LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[(5) - (10)].d);
LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[(7) - (10)].d);
LoopControlVariablesTab[ImbricatedLoop][2] = (yyvsp[(9) - (10)].d);
LoopControlVariablesNameTab[ImbricatedLoop] = (yyvsp[(2) - (10)].c);
if(!(pSymbol = (Symbol*)Tree_PQuery(Symbol_T, &TheSymbol))){
TheSymbol.val = List_Create(1, 1, sizeof(double));
fgetpos(gmsh_yyin, &yyposImbricatedLoopsTab[ImbricatedLoop]);
yylinenoImbricatedLoopsTab[ImbricatedLoop] = gmsh_yylineno;
if(((yyvsp[(9) - (10)].d) > 0. && (yyvsp[(5) - (10)].d) > (yyvsp[(7) - (10)].d)) || ((yyvsp[(9) - (10)].d) < 0. && (yyvsp[(5) - (10)].d) < (yyvsp[(7) - (10)].d)))
skip_until("For", "EndFor");
else
ImbricatedLoop++;
if(ImbricatedLoop > MAX_RECUR_LOOPS-1){
yymsg(GERROR, "Reached maximum number of imbricated loops");
ImbricatedLoop = MAX_RECUR_LOOPS-1;
}

Christophe Geuzaine
committed
case 156:

Christophe Geuzaine
committed
#line 2180 "Gmsh.y"