Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
238f1c5f
Commit
238f1c5f
authored
8 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
fix partial circle/ellipse
parent
9d0bfc10
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Parser/Gmsh.tab.cpp
+477
-475
477 additions, 475 deletions
Parser/Gmsh.tab.cpp
Parser/Gmsh.y
+7
-5
7 additions, 5 deletions
Parser/Gmsh.y
with
484 additions
and
480 deletions
Parser/Gmsh.tab.cpp
+
477
−
475
View file @
238f1c5f
...
@@ -1408,49 +1408,49 @@ static const yytype_uint16 yyrline[] =
...
@@ -1408,49 +1408,49 @@ static const yytype_uint16 yyrline[] =
1494, 1502, 1508, 1513, 1539, 1540, 1544, 1555, 1570, 1580,
1494, 1502, 1508, 1513, 1539, 1540, 1544, 1555, 1570, 1580,
1581, 1586, 1594, 1603, 1611, 1629, 1633, 1639, 1647, 1651,
1581, 1586, 1594, 1603, 1611, 1629, 1633, 1639, 1647, 1651,
1657, 1665, 1669, 1675, 1683, 1687, 1693, 1702, 1705, 1712,
1657, 1665, 1669, 1675, 1683, 1687, 1693, 1702, 1705, 1712,
1715, 1722, 1743, 1757, 1771, 180
5
, 184
2
, 185
6
, 187
0
, 189
0
,
1715, 1722, 1743, 1757, 1771, 180
6
, 184
4
, 185
8
, 187
2
, 189
2
,
1
899
, 191
3
, 19
28
, 194
2
, 196
1
, 197
1
, 197
7
, 198
3
, 199
0
, 201
7
,
1
901
, 191
5
, 19
30
, 194
4
, 196
3
, 197
3
, 197
9
, 198
5
, 199
2
, 201
9
,
203
2
, 205
2
, 207
3
, 209
4
, 211
5
, 213
7
, 21
59
, 218
0
, 220
3
, 221
2
,
203
4
, 205
4
, 207
5
, 209
6
, 211
7
, 213
9
, 21
61
, 218
2
, 220
5
, 221
4
,
223
3
, 22
48
, 226
2
, 227
7
, 229
2
, 230
7
, 231
6
, 23
59
, 240
2
, 244
5
,
223
5
, 22
50
, 226
4
, 227
9
, 229
4
, 230
9
, 231
8
, 23
61
, 240
4
, 244
7
,
249
3
, 251
0
, 25
28
, 25
38
, 25
48
, 25
58
, 262
1
, 263
2
, 26
48
, 26
49
,
249
5
, 251
2
, 25
30
, 25
40
, 25
50
, 25
60
, 262
3
, 263
4
, 26
50
, 26
51
,
265
4
, 265
7
, 266
1
, 267
2
, 268
3
, 269
4
, 271
0
, 273
2
, 27
58
, 278
0
,
265
6
, 265
9
, 266
3
, 267
4
, 268
5
, 269
6
, 271
2
, 273
4
, 27
60
, 278
2
,
280
3
, 282
4
, 288
0
, 290
4
, 29
29
, 295
5
, 30
68
, 308
7
, 313
0
, 315
1
,
280
5
, 282
6
, 288
2
, 290
6
, 29
31
, 295
7
, 30
70
, 308
9
, 313
2
, 315
3
,
315
7
, 317
2
, 320
0
, 321
7
, 322
6
, 324
0
, 325
4
, 326
0
, 326
6
, 327
5
,
315
9
, 317
4
, 320
2
, 321
9
, 322
8
, 324
2
, 325
6
, 326
2
, 326
8
, 327
7
,
328
4
, 329
3
, 330
7
, 337
7
, 339
5
, 341
2
, 342
7
, 34
59
, 347
1
, 349
5
,
328
6
, 329
5
, 330
9
, 337
9
, 339
7
, 341
4
, 342
9
, 34
61
, 347
3
, 349
7
,
3
499
, 350
4
, 351
0
, 351
5
, 352
4
, 35
29
, 353
5
, 354
3
, 354
7
, 355
1
,
3
501
, 350
6
, 351
2
, 351
7
, 352
6
, 35
31
, 353
7
, 354
5
, 354
9
, 355
3
,
35
59
, 362
2
, 36
38
, 365
5
, 367
2
, 369
4
, 371
6
, 375
1
, 37
59
, 376
7
,
35
61
, 362
4
, 36
40
, 365
7
, 367
4
, 369
6
, 371
8
, 375
3
, 37
61
, 376
9
,
377
3
, 378
0
, 378
7
, 380
7
, 383
3
, 384
5
, 385
7
, 388
7
, 39
18
, 392
7
,
377
5
, 378
2
, 378
9
, 380
9
, 383
5
, 384
7
, 385
9
, 388
9
, 39
20
, 392
9
,
392
6
, 394
1
, 394
0
, 395
5
, 395
4
, 39
69
, 39
68
, 398
1
, 400
8
, 402
7
,
392
8
, 394
3
, 394
2
, 395
7
, 395
6
, 39
71
, 39
70
, 398
3
, 40
1
0, 402
9
,
404
6
, 407
2
, 40
79
, 408
6
, 409
3
, 410
0
, 410
7
, 411
4
, 412
1
, 41
28
,
404
8
, 407
4
, 40
81
, 408
8
, 409
5
, 410
2
, 410
9
, 411
6
, 412
3
, 41
30
,
413
6
, 413
5
, 41
49
, 41
48
, 416
2
, 416
1
, 417
5
, 417
4
, 41
88
, 418
7
,
413
8
, 413
7
, 41
51
, 41
50
, 416
4
, 416
3
, 417
7
, 417
6
, 41
90
, 418
9
,
420
1
, 420
0
, 421
4
, 421
3
, 422
7
, 422
6
, 424
0
, 42
39
, 425
6
, 42
59
,
420
3
, 420
2
, 421
6
, 421
5
, 422
9
, 422
8
, 424
2
, 42
41
, 425
8
, 42
61
,
426
5
, 427
7
, 429
7
, 432
1
, 432
5
, 43
29
, 433
3
, 433
7
, 434
1
, 434
7
,
426
7
, 427
9
, 429
9
, 432
3
, 432
7
, 43
31
, 433
5
, 433
9
, 434
3
, 434
9
,
435
3
, 435
7
, 436
1
, 436
5
, 43
69
, 43
88
, 440
1
, 440
2
, 440
3
, 440
4
,
435
5
, 435
9
, 436
3
, 436
7
, 43
71
, 43
90
, 440
3
, 440
4
, 440
5
, 440
6
,
440
5
, 44
09
, 441
0
, 441
1
, 441
4
, 44
48
, 447
4
, 4
498
, 450
1
, 451
7
,
440
7
, 44
11
, 441
2
, 441
3
, 441
6
, 44
50
, 447
6
, 4
500
, 450
3
, 451
9
,
452
0
, 453
7
, 454
0
, 454
6
, 45
49
, 455
6
, 45
59
, 456
6
, 45
79
, 463
5
,
452
2
, 453
9
, 454
2
, 454
8
, 45
51
, 455
8
, 45
61
, 456
8
, 45
81
, 463
7
,
470
5
, 471
0
, 477
7
, 481
3
, 482
1
, 486
4
, 490
3
, 492
3
, 495
5
, 498
2
,
470
7
, 471
2
, 477
9
, 481
5
, 482
3
, 486
6
, 490
5
, 492
5
, 495
7
, 498
4
,
500
8
, 503
4
, 506
0
, 508
6
, 510
8
, 511
4
, 512
0
, 512
6
, 513
2
, 51
38
,
50
1
0, 503
6
, 506
2
, 508
8
, 51
1
0, 511
6
, 512
2
, 512
8
, 513
4
, 51
40
,
517
7
, 521
6
, 523
3
, 525
0
, 526
7
, 52
79
, 528
5
, 529
1
, 530
3
, 530
7
,
517
9
, 521
8
, 523
5
, 525
2
, 526
9
, 52
81
, 528
7
, 529
3
, 530
5
, 530
9
,
531
7
, 53
28
, 53
29
, 533
0
, 533
4
, 534
0
, 535
2
, 537
0
, 5
398
, 5
399
,
531
9
, 53
30
, 53
31
, 533
2
, 533
6
, 534
2
, 535
4
, 537
2
, 5
400
, 5
401
,
5400, 5401,
5402, 5403, 5404, 5405, 5406, 54
13
, 54
14, 5415
,
5402, 5403, 5404, 5405, 5406, 54
07
, 54
08, 5415, 5416, 5417
,
5416, 5417,
5418, 5419, 5420, 5421, 5422, 5423, 5424, 5425,
5418, 5419, 5420, 5421, 5422, 5423, 5424, 5425,
5426, 5427,
5426, 5427,
5428, 5429, 5430, 5431, 5432, 5433, 5434, 5435,
5428, 5429, 5430, 5431, 5432, 5433, 5434, 5435,
5436, 5437,
5436, 5437,
5438, 5439, 5440, 5441, 5442, 5443, 5444, 5445,
5438, 5439, 5440, 5441, 5442, 5443, 5444, 5445,
5446, 5447,
5454, 5455,
5456, 5457, 5458, 5459, 5460, 5461, 5462, 5463,
5456, 5457, 5458, 5459, 5460, 5461, 5462, 5463,
5464, 5465,
546
4
, 54
69
, 54
68
, 547
6
, 548
1
, 548
6
, 550
3
, 552
1
, 55
39
, 555
7
,
546
6
, 54
71
, 54
70
, 547
8
, 548
3
, 548
8
, 550
5
, 552
3
, 55
41
, 555
9
,
557
5
, 558
0
, 558
6
, 560
1
, 562
0
, 564
0
, 566
0
, 568
0
, 570
3
, 570
8
,
557
7
, 558
2
, 558
8
, 560
3
, 562
2
, 564
2
, 566
2
, 568
2
, 570
5
, 57
1
0,
571
3
, 572
3, 5733
, 573
8
, 574
9
, 575
8
, 576
3
, 576
8
, 57
95
, 579
9
,
571
5
, 572
5
, 573
5
, 574
0
, 575
1
, 576
0
, 576
5
, 57
70
, 579
7, 5801
,
580
3
, 580
7
, 581
1
, 58
18
, 582
2
, 582
6
, 583
0
, 583
7
, 584
2
, 58
49
,
580
5
, 580
9
, 581
3
, 58
20
, 582
4
, 582
8
, 583
2
, 583
9
, 584
4
, 58
51
,
585
4
, 58
58
, 586
3
, 586
7
, 587
5
, 588
6
, 589
0
, 590
2
, 591
0
, 59
18
,
585
6
, 58
60
, 586
5
, 586
9
, 587
7
, 588
8
, 589
2
, 590
4
, 591
2
, 59
20
,
592
5
, 593
5
, 595
7
, 596
1
, 596
5
, 59
69
, 597
3
, 597
7
, 598
1
, 598
5
,
592
7
, 593
7
, 595
9
, 596
3
, 596
7
, 59
71
, 597
5
, 597
9
, 598
3
, 598
7
,
59
8
9, 602
0
, 605
1
, 608
2
, 611
3
, 61
29
, 614
5
, 616
1
, 617
7
, 618
7
,
599
1
, 602
2
, 605
3
, 608
4
, 611
5
, 61
31
, 614
7
, 616
3
, 617
9
, 618
9
,
619
7
, 620
7
, 621
9
, 623
2, 6244, 6248
, 625
2
, 625
6
, 626
0
, 62
7
8,
619
9
, 620
9
, 62
2
1, 623
4, 6246, 6250
, 625
4
, 625
8
, 626
2
, 628
0
,
629
6
, 630
4
, 631
2
, 634
1
, 635
1
, 637
0
, 637
5
, 63
79
, 638
3
, 639
5
,
629
8
, 630
6
, 631
4
, 634
3
, 635
3
, 637
2
, 637
7
, 63
81
, 638
5
, 639
7
,
6
399
, 641
1
, 64
28
, 64
38
, 644
2
, 645
7
, 646
2
, 64
69
, 647
3
, 648
6
,
6
401
, 641
3
, 64
30
, 64
40
, 644
4
, 645
9
, 646
4
, 64
71
, 647
5
, 648
8
,
650
0
, 651
4
, 65
28
, 654
2
, 655
0
, 656
1
, 656
5
, 65
69
, 657
7
, 658
3
,
650
2
, 651
6
, 65
30
, 654
4
, 655
2
, 656
3
, 656
7
, 65
71
, 657
9
, 658
5
,
65
8
9, 659
7
, 660
5
, 661
2
, 662
0
, 663
5
, 66
49
, 666
3
, 667
5
, 669
1
,
659
1
, 659
9
, 660
7
, 661
4
, 662
2
, 663
7
, 66
51
, 666
5
, 667
7
, 669
3
,
670
0
, 67
09
, 671
9
, 673
0
, 67
38
, 674
6
, 675
0
, 67
69
, 677
6
, 678
2
,
670
2
, 67
11
, 67
2
1, 673
2
, 67
40
, 674
8
, 675
2
, 67
71
, 677
8
, 678
4
,
67
8
9, 679
7
, 679
6
, 68
09
, 681
4
, 682
0
, 68
29
, 684
2
, 684
5
, 68
49
679
1
, 679
9
, 679
8
, 68
11
, 681
6
, 682
2
, 68
31
, 684
4
, 684
7
, 68
51
};
};
#endif
#endif
...
@@ -8111,8 +8111,9 @@ yyreduce:
...
@@ -8111,8 +8111,9 @@ yyreduce:
}
}
else if(param.size() >= 4 && param.size() <= 6){
else if(param.size() >= 4 && param.size() <= 6){
double r = param[3];
double r = param[3];
double a1 = (param.size() >= 5) ? param[4] : 0.;
double a1 = (param.size() == 6) ? param[4] : 0.;
double a2 = (param.size() >= 6) ? param[5] : 2.*M_PI;
double a2 = (param.size() == 6) ? param[5] :
(param.size() == 5) ? param[4] : 2.*M_PI;
GModel::current()->getOCCInternals()->addCircle
GModel::current()->getOCCInternals()->addCircle
(num, param[0], param[1], param[2], r, a1, a2);
(num, param[0], param[1], param[2], r, a1, a2);
}
}
...
@@ -8136,7 +8137,7 @@ yyreduce:
...
@@ -8136,7 +8137,7 @@ yyreduce:
break;
break;
case 175:
case 175:
#line 180
6
"Gmsh.y"
#line 180
7
"Gmsh.y"
{
{
int num = (int)(yyvsp[(3) - (8)].d);
int num = (int)(yyvsp[(3) - (8)].d);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(6) - (8)].l), tags);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(6) - (8)].l), tags);
...
@@ -8151,8 +8152,9 @@ yyreduce:
...
@@ -8151,8 +8152,9 @@ yyreduce:
(num, tags[0], tags[1], tags[3]);
(num, tags[0], tags[1], tags[3]);
}
}
else if(param.size() >= 5 && param.size() <= 7){
else if(param.size() >= 5 && param.size() <= 7){
double a1 = (param.size() >= 6) ? param[5] : 0.;
double a1 = (param.size() == 7) ? param[5] : 0.;
double a2 = (param.size() >= 7) ? param[6] : 2.*M_PI;
double a2 = (param.size() == 7) ? param[6] :
(param.size() == 6) ? param[5] : 2.*M_PI;
GModel::current()->getOCCInternals()->addEllipse
GModel::current()->getOCCInternals()->addEllipse
(num, param[0], param[1], param[2], param[3], param[4], a1, a2);
(num, param[0], param[1], param[2], param[3], param[4], a1, a2);
}
}
...
@@ -8176,7 +8178,7 @@ yyreduce:
...
@@ -8176,7 +8178,7 @@ yyreduce:
break;
break;
case 176:
case 176:
#line 184
3
"Gmsh.y"
#line 184
5
"Gmsh.y"
{
{
int num = (int)(yyvsp[(3) - (7)].d);
int num = (int)(yyvsp[(3) - (7)].d);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(6) - (7)].l), tags);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(6) - (7)].l), tags);
...
@@ -8193,7 +8195,7 @@ yyreduce:
...
@@ -8193,7 +8195,7 @@ yyreduce:
break;
break;
case 177:
case 177:
#line 185
7
"Gmsh.y"
#line 185
9
"Gmsh.y"
{
{
int num = (int)(yyvsp[(3) - (7)].d);
int num = (int)(yyvsp[(3) - (7)].d);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(6) - (7)].l), tags);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(6) - (7)].l), tags);
...
@@ -8210,7 +8212,7 @@ yyreduce:
...
@@ -8210,7 +8212,7 @@ yyreduce:
break;
break;
case 178:
case 178:
#line 187
2
"Gmsh.y"
#line 187
4
"Gmsh.y"
{
{
int num = (int)(yyvsp[(3) - (11)].d);
int num = (int)(yyvsp[(3) - (11)].d);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(6) - (11)].l), tags);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(6) - (11)].l), tags);
...
@@ -8232,7 +8234,7 @@ yyreduce:
...
@@ -8232,7 +8234,7 @@ yyreduce:
break;
break;
case 179:
case 179:
#line 189
1
"Gmsh.y"
#line 189
3
"Gmsh.y"
{
{
int num = (int)(yyvsp[(4) - (8)].d);
int num = (int)(yyvsp[(4) - (8)].d);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(7) - (8)].l), tags);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(7) - (8)].l), tags);
...
@@ -8244,7 +8246,7 @@ yyreduce:
...
@@ -8244,7 +8246,7 @@ yyreduce:
break;
break;
case 180:
case 180:
#line 190
0
"Gmsh.y"
#line 190
2
"Gmsh.y"
{
{
int num = (int)(yyvsp[(3) - (7)].d);
int num = (int)(yyvsp[(3) - (7)].d);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(6) - (7)].l), tags);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(6) - (7)].l), tags);
...
@@ -8261,7 +8263,7 @@ yyreduce:
...
@@ -8261,7 +8263,7 @@ yyreduce:
break;
break;
case 181:
case 181:
#line 191
4
"Gmsh.y"
#line 191
6
"Gmsh.y"
{
{
int num = (int)(yyvsp[(4) - (8)].d);
int num = (int)(yyvsp[(4) - (8)].d);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(7) - (8)].l), tags);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(7) - (8)].l), tags);
...
@@ -8279,7 +8281,7 @@ yyreduce:
...
@@ -8279,7 +8281,7 @@ yyreduce:
break;
break;
case 182:
case 182:
#line 19
29
"Gmsh.y"
#line 19
31
"Gmsh.y"
{
{
int num = (int)(yyvsp[(4) - (8)].d);
int num = (int)(yyvsp[(4) - (8)].d);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(7) - (8)].l), tags);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(7) - (8)].l), tags);
...
@@ -8296,7 +8298,7 @@ yyreduce:
...
@@ -8296,7 +8298,7 @@ yyreduce:
break;
break;
case 183:
case 183:
#line 194
3
"Gmsh.y"
#line 194
5
"Gmsh.y"
{
{
int num = (int)(yyvsp[(3) - (8)].d);
int num = (int)(yyvsp[(3) - (8)].d);
std::vector<int> wires; ListOfDouble2Vector((yyvsp[(6) - (8)].l), wires);
std::vector<int> wires; ListOfDouble2Vector((yyvsp[(6) - (8)].l), wires);
...
@@ -8318,7 +8320,7 @@ yyreduce:
...
@@ -8318,7 +8320,7 @@ yyreduce:
break;
break;
case 184:
case 184:
#line 196
2
"Gmsh.y"
#line 196
4
"Gmsh.y"
{
{
yymsg(1, "'Ruled Surface' command is deprecated: use 'Surface' instead");
yymsg(1, "'Ruled Surface' command is deprecated: use 'Surface' instead");
int num = (int)(yyvsp[(4) - (9)].d);
int num = (int)(yyvsp[(4) - (9)].d);
...
@@ -8331,7 +8333,7 @@ yyreduce:
...
@@ -8331,7 +8333,7 @@ yyreduce:
break;
break;
case 185:
case 185:
#line 197
2
"Gmsh.y"
#line 197
4
"Gmsh.y"
{
{
myGmshSurface = 0;
myGmshSurface = 0;
(yyval.s).Type = 0;
(yyval.s).Type = 0;
...
@@ -8340,7 +8342,7 @@ yyreduce:
...
@@ -8340,7 +8342,7 @@ yyreduce:
break;
break;
case 186:
case 186:
#line 19
7
8 "Gmsh.y"
#line 198
0
"Gmsh.y"
{
{
myGmshSurface = gmshSurface::getSurface((int)(yyvsp[(3) - (4)].d));
myGmshSurface = gmshSurface::getSurface((int)(yyvsp[(3) - (4)].d));
(yyval.s).Type = 0;
(yyval.s).Type = 0;
...
@@ -8349,7 +8351,7 @@ yyreduce:
...
@@ -8349,7 +8351,7 @@ yyreduce:
break;
break;
case 187:
case 187:
#line 198
4
"Gmsh.y"
#line 198
6
"Gmsh.y"
{
{
int num = (int)(yyvsp[(4) - (10)].d);
int num = (int)(yyvsp[(4) - (10)].d);
myGmshSurface = gmshParametricSurface::NewParametricSurface(num, (yyvsp[(7) - (10)].c), (yyvsp[(8) - (10)].c), (yyvsp[(9) - (10)].c));
myGmshSurface = gmshParametricSurface::NewParametricSurface(num, (yyvsp[(7) - (10)].c), (yyvsp[(8) - (10)].c), (yyvsp[(9) - (10)].c));
...
@@ -8359,7 +8361,7 @@ yyreduce:
...
@@ -8359,7 +8361,7 @@ yyreduce:
break;
break;
case 188:
case 188:
#line 199
1
"Gmsh.y"
#line 199
3
"Gmsh.y"
{
{
int num = (int)(yyvsp[(3) - (7)].d);
int num = (int)(yyvsp[(3) - (7)].d);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(6) - (7)].l), tags);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(6) - (7)].l), tags);
...
@@ -8389,7 +8391,7 @@ yyreduce:
...
@@ -8389,7 +8391,7 @@ yyreduce:
break;
break;
case 189:
case 189:
#line 20
18
"Gmsh.y"
#line 20
20
"Gmsh.y"
{
{
int num = (int)(yyvsp[(3) - (7)].d);
int num = (int)(yyvsp[(3) - (7)].d);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(6) - (7)].l), tags);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(6) - (7)].l), tags);
...
@@ -8407,7 +8409,7 @@ yyreduce:
...
@@ -8407,7 +8409,7 @@ yyreduce:
break;
break;
case 190:
case 190:
#line 203
3
"Gmsh.y"
#line 203
5
"Gmsh.y"
{
{
int num = (int)(yyvsp[(3) - (7)].d);
int num = (int)(yyvsp[(3) - (7)].d);
std::vector<double> param; ListOfDouble2Vector((yyvsp[(6) - (7)].l), param);
std::vector<double> param; ListOfDouble2Vector((yyvsp[(6) - (7)].l), param);
...
@@ -8430,7 +8432,7 @@ yyreduce:
...
@@ -8430,7 +8432,7 @@ yyreduce:
break;
break;
case 191:
case 191:
#line 205
3
"Gmsh.y"
#line 205
5
"Gmsh.y"
{
{
int num = (int)(yyvsp[(3) - (7)].d);
int num = (int)(yyvsp[(3) - (7)].d);
std::vector<double> param; ListOfDouble2Vector((yyvsp[(6) - (7)].l), param);
std::vector<double> param; ListOfDouble2Vector((yyvsp[(6) - (7)].l), param);
...
@@ -8454,7 +8456,7 @@ yyreduce:
...
@@ -8454,7 +8456,7 @@ yyreduce:
break;
break;
case 192:
case 192:
#line 207
4
"Gmsh.y"
#line 207
6
"Gmsh.y"
{
{
int num = (int)(yyvsp[(3) - (7)].d);
int num = (int)(yyvsp[(3) - (7)].d);
std::vector<double> param; ListOfDouble2Vector((yyvsp[(6) - (7)].l), param);
std::vector<double> param; ListOfDouble2Vector((yyvsp[(6) - (7)].l), param);
...
@@ -8478,7 +8480,7 @@ yyreduce:
...
@@ -8478,7 +8480,7 @@ yyreduce:
break;
break;
case 193:
case 193:
#line 209
5
"Gmsh.y"
#line 209
7
"Gmsh.y"
{
{
int num = (int)(yyvsp[(3) - (7)].d);
int num = (int)(yyvsp[(3) - (7)].d);
std::vector<double> param; ListOfDouble2Vector((yyvsp[(6) - (7)].l), param);
std::vector<double> param; ListOfDouble2Vector((yyvsp[(6) - (7)].l), param);
...
@@ -8502,7 +8504,7 @@ yyreduce:
...
@@ -8502,7 +8504,7 @@ yyreduce:
break;
break;
case 194:
case 194:
#line 211
6
"Gmsh.y"
#line 211
8
"Gmsh.y"
{
{
int num = (int)(yyvsp[(3) - (7)].d);
int num = (int)(yyvsp[(3) - (7)].d);
std::vector<double> param; ListOfDouble2Vector((yyvsp[(6) - (7)].l), param);
std::vector<double> param; ListOfDouble2Vector((yyvsp[(6) - (7)].l), param);
...
@@ -8527,7 +8529,7 @@ yyreduce:
...
@@ -8527,7 +8529,7 @@ yyreduce:
break;
break;
case 195:
case 195:
#line 21
38
"Gmsh.y"
#line 21
40
"Gmsh.y"
{
{
int num = (int)(yyvsp[(3) - (7)].d);
int num = (int)(yyvsp[(3) - (7)].d);
std::vector<double> param; ListOfDouble2Vector((yyvsp[(6) - (7)].l), param);
std::vector<double> param; ListOfDouble2Vector((yyvsp[(6) - (7)].l), param);
...
@@ -8552,7 +8554,7 @@ yyreduce:
...
@@ -8552,7 +8554,7 @@ yyreduce:
break;
break;
case 196:
case 196:
#line 216
0
"Gmsh.y"
#line 216
2
"Gmsh.y"
{
{
int num = (int)(yyvsp[(3) - (7)].d);
int num = (int)(yyvsp[(3) - (7)].d);
std::vector<double> param; ListOfDouble2Vector((yyvsp[(6) - (7)].l), param);
std::vector<double> param; ListOfDouble2Vector((yyvsp[(6) - (7)].l), param);
...
@@ -8576,7 +8578,7 @@ yyreduce:
...
@@ -8576,7 +8578,7 @@ yyreduce:
break;
break;
case 197:
case 197:
#line 218
1
"Gmsh.y"
#line 218
3
"Gmsh.y"
{
{
int num = (int)(yyvsp[(3) - (7)].d);
int num = (int)(yyvsp[(3) - (7)].d);
std::vector<double> param; ListOfDouble2Vector((yyvsp[(6) - (7)].l), param);
std::vector<double> param; ListOfDouble2Vector((yyvsp[(6) - (7)].l), param);
...
@@ -8602,7 +8604,7 @@ yyreduce:
...
@@ -8602,7 +8604,7 @@ yyreduce:
break;
break;
case 198:
case 198:
#line 220
4
"Gmsh.y"
#line 220
6
"Gmsh.y"
{
{
int num = (int)(yyvsp[(4) - (8)].d);
int num = (int)(yyvsp[(4) - (8)].d);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(7) - (8)].l), tags);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(7) - (8)].l), tags);
...
@@ -8614,7 +8616,7 @@ yyreduce:
...
@@ -8614,7 +8616,7 @@ yyreduce:
break;
break;
case 199:
case 199:
#line 221
4
"Gmsh.y"
#line 221
6
"Gmsh.y"
{
{
int num = (int)(yyvsp[(4) - (12)].d);
int num = (int)(yyvsp[(4) - (12)].d);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(7) - (12)].l), tags);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(7) - (12)].l), tags);
...
@@ -8637,7 +8639,7 @@ yyreduce:
...
@@ -8637,7 +8639,7 @@ yyreduce:
break;
break;
case 200:
case 200:
#line 223
4
"Gmsh.y"
#line 223
6
"Gmsh.y"
{
{
int num = (int)(yyvsp[(4) - (8)].d);
int num = (int)(yyvsp[(4) - (8)].d);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(7) - (8)].l), tags);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(7) - (8)].l), tags);
...
@@ -8655,7 +8657,7 @@ yyreduce:
...
@@ -8655,7 +8657,7 @@ yyreduce:
break;
break;
case 201:
case 201:
#line 22
49
"Gmsh.y"
#line 22
51
"Gmsh.y"
{
{
int num = (int)(yyvsp[(3) - (7)].d);
int num = (int)(yyvsp[(3) - (7)].d);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(6) - (7)].l), tags);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(6) - (7)].l), tags);
...
@@ -8672,7 +8674,7 @@ yyreduce:
...
@@ -8672,7 +8674,7 @@ yyreduce:
break;
break;
case 202:
case 202:
#line 226
3
"Gmsh.y"
#line 226
5
"Gmsh.y"
{
{
yymsg(1, "'Complex Volume' command is deprecated: use 'Volume' instead");
yymsg(1, "'Complex Volume' command is deprecated: use 'Volume' instead");
int num = (int)(yyvsp[(4) - (8)].d);
int num = (int)(yyvsp[(4) - (8)].d);
...
@@ -8690,7 +8692,7 @@ yyreduce:
...
@@ -8690,7 +8692,7 @@ yyreduce:
break;
break;
case 203:
case 203:
#line 22
7
8 "Gmsh.y"
#line 228
0
"Gmsh.y"
{
{
int num = (int)(yyvsp[(3) - (7)].d);
int num = (int)(yyvsp[(3) - (7)].d);
std::vector<int> wires, out[4]; ListOfDouble2Vector((yyvsp[(6) - (7)].l), wires);
std::vector<int> wires, out[4]; ListOfDouble2Vector((yyvsp[(6) - (7)].l), wires);
...
@@ -8708,7 +8710,7 @@ yyreduce:
...
@@ -8708,7 +8710,7 @@ yyreduce:
break;
break;
case 204:
case 204:
#line 229
3
"Gmsh.y"
#line 229
5
"Gmsh.y"
{
{
int num = (int)(yyvsp[(4) - (8)].d);
int num = (int)(yyvsp[(4) - (8)].d);
std::vector<int> wires, out[4]; ListOfDouble2Vector((yyvsp[(7) - (8)].l), wires);
std::vector<int> wires, out[4]; ListOfDouble2Vector((yyvsp[(7) - (8)].l), wires);
...
@@ -8726,7 +8728,7 @@ yyreduce:
...
@@ -8726,7 +8728,7 @@ yyreduce:
break;
break;
case 205:
case 205:
#line 230
8
"Gmsh.y"
#line 23
1
0 "Gmsh.y"
{
{
int num = (int)(yyvsp[(4) - (8)].d);
int num = (int)(yyvsp[(4) - (8)].d);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(7) - (8)].l), tags);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(7) - (8)].l), tags);
...
@@ -8738,7 +8740,7 @@ yyreduce:
...
@@ -8738,7 +8740,7 @@ yyreduce:
break;
break;
case 206:
case 206:
#line 231
7
"Gmsh.y"
#line 231
9
"Gmsh.y"
{
{
int num = (int)(yyvsp[(4) - (8)].i);
int num = (int)(yyvsp[(4) - (8)].i);
int op = (yyvsp[(6) - (8)].i);
int op = (yyvsp[(6) - (8)].i);
...
@@ -8784,7 +8786,7 @@ yyreduce:
...
@@ -8784,7 +8786,7 @@ yyreduce:
break;
break;
case 207:
case 207:
#line 236
0
"Gmsh.y"
#line 236
2
"Gmsh.y"
{
{
int num = (int)(yyvsp[(4) - (8)].i);
int num = (int)(yyvsp[(4) - (8)].i);
int op = (yyvsp[(6) - (8)].i);
int op = (yyvsp[(6) - (8)].i);
...
@@ -8830,7 +8832,7 @@ yyreduce:
...
@@ -8830,7 +8832,7 @@ yyreduce:
break;
break;
case 208:
case 208:
#line 240
3
"Gmsh.y"
#line 240
5
"Gmsh.y"
{
{
int num = (int)(yyvsp[(4) - (8)].i);
int num = (int)(yyvsp[(4) - (8)].i);
int op = (yyvsp[(6) - (8)].i);
int op = (yyvsp[(6) - (8)].i);
...
@@ -8876,7 +8878,7 @@ yyreduce:
...
@@ -8876,7 +8878,7 @@ yyreduce:
break;
break;
case 209:
case 209:
#line 244
6
"Gmsh.y"
#line 244
8
"Gmsh.y"
{
{
int num = (int)(yyvsp[(4) - (8)].i);
int num = (int)(yyvsp[(4) - (8)].i);
int op = (yyvsp[(6) - (8)].i);
int op = (yyvsp[(6) - (8)].i);
...
@@ -8922,7 +8924,7 @@ yyreduce:
...
@@ -8922,7 +8924,7 @@ yyreduce:
break;
break;
case 210:
case 210:
#line 249
4
"Gmsh.y"
#line 249
6
"Gmsh.y"
{
{
if(factory == "OpenCASCADE"){
if(factory == "OpenCASCADE"){
std::vector<int> in[4];
std::vector<int> in[4];
...
@@ -8942,7 +8944,7 @@ yyreduce:
...
@@ -8942,7 +8944,7 @@ yyreduce:
break;
break;
case 211:
case 211:
#line 251
1
"Gmsh.y"
#line 251
3
"Gmsh.y"
{
{
if(factory == "OpenCASCADE"){
if(factory == "OpenCASCADE"){
std::vector<int> in[4];
std::vector<int> in[4];
...
@@ -8963,7 +8965,7 @@ yyreduce:
...
@@ -8963,7 +8965,7 @@ yyreduce:
break;
break;
case 212:
case 212:
#line 25
29
"Gmsh.y"
#line 25
31
"Gmsh.y"
{
{
if(factory == "OpenCASCADE"){
if(factory == "OpenCASCADE"){
Msg::Error("TODO OCC Symmetry");
Msg::Error("TODO OCC Symmetry");
...
@@ -8976,7 +8978,7 @@ yyreduce:
...
@@ -8976,7 +8978,7 @@ yyreduce:
break;
break;
case 213:
case 213:
#line 25
39
"Gmsh.y"
#line 25
41
"Gmsh.y"
{
{
if(factory == "OpenCASCADE"){
if(factory == "OpenCASCADE"){
Msg::Error("TODO OCC Dilate");
Msg::Error("TODO OCC Dilate");
...
@@ -8989,7 +8991,7 @@ yyreduce:
...
@@ -8989,7 +8991,7 @@ yyreduce:
break;
break;
case 214:
case 214:
#line 25
49
"Gmsh.y"
#line 25
51
"Gmsh.y"
{
{
if(factory == "OpenCASCADE"){
if(factory == "OpenCASCADE"){
Msg::Error("TODO OCC Dilate");
Msg::Error("TODO OCC Dilate");
...
@@ -9002,7 +9004,7 @@ yyreduce:
...
@@ -9002,7 +9004,7 @@ yyreduce:
break;
break;
case 215:
case 215:
#line 25
59
"Gmsh.y"
#line 25
61
"Gmsh.y"
{
{
(yyval.l) = List_Create(3, 3, sizeof(Shape));
(yyval.l) = List_Create(3, 3, sizeof(Shape));
if(!strcmp((yyvsp[(1) - (4)].c), "Duplicata")){
if(!strcmp((yyvsp[(1) - (4)].c), "Duplicata")){
...
@@ -9068,7 +9070,7 @@ yyreduce:
...
@@ -9068,7 +9070,7 @@ yyreduce:
break;
break;
case 216:
case 216:
#line 262
2
"Gmsh.y"
#line 262
4
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
if(factory == "OpenCASCADE"){
if(factory == "OpenCASCADE"){
...
@@ -9082,7 +9084,7 @@ yyreduce:
...
@@ -9082,7 +9084,7 @@ yyreduce:
break;
break;
case 217:
case 217:
#line 263
3
"Gmsh.y"
#line 263
5
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape*));
(yyval.l) = List_Create(2, 1, sizeof(Shape*));
if(factory == "OpenCASCADE"){
if(factory == "OpenCASCADE"){
...
@@ -9098,31 +9100,31 @@ yyreduce:
...
@@ -9098,31 +9100,31 @@ yyreduce:
break;
break;
case 218:
case 218:
#line 26
48
"Gmsh.y"
#line 26
50
"Gmsh.y"
{ (yyval.l) = (yyvsp[(1) - (1)].l); ;}
{ (yyval.l) = (yyvsp[(1) - (1)].l); ;}
break;
break;
case 219:
case 219:
#line 26
49
"Gmsh.y"
#line 26
51
"Gmsh.y"
{ (yyval.l) = (yyvsp[(1) - (1)].l); ;}
{ (yyval.l) = (yyvsp[(1) - (1)].l); ;}
break;
break;
case 220:
case 220:
#line 265
4
"Gmsh.y"
#line 265
6
"Gmsh.y"
{
{
(yyval.l) = List_Create(3, 3, sizeof(Shape));
(yyval.l) = List_Create(3, 3, sizeof(Shape));
;}
;}
break;
break;
case 221:
case 221:
#line 26
58
"Gmsh.y"
#line 26
60
"Gmsh.y"
{
{
List_Add((yyval.l), &(yyvsp[(2) - (2)].s));
List_Add((yyval.l), &(yyvsp[(2) - (2)].s));
;}
;}
break;
break;
case 222:
case 222:
#line 266
2
"Gmsh.y"
#line 266
4
"Gmsh.y"
{
{
for(int i = 0; i < List_Nbr((yyvsp[(4) - (6)].l)); i++){
for(int i = 0; i < List_Nbr((yyvsp[(4) - (6)].l)); i++){
double d;
double d;
...
@@ -9136,7 +9138,7 @@ yyreduce:
...
@@ -9136,7 +9138,7 @@ yyreduce:
break;
break;
case 223:
case 223:
#line 267
3
"Gmsh.y"
#line 267
5
"Gmsh.y"
{
{
for(int i = 0; i < List_Nbr((yyvsp[(4) - (6)].l)); i++){
for(int i = 0; i < List_Nbr((yyvsp[(4) - (6)].l)); i++){
double d;
double d;
...
@@ -9150,7 +9152,7 @@ yyreduce:
...
@@ -9150,7 +9152,7 @@ yyreduce:
break;
break;
case 224:
case 224:
#line 268
4
"Gmsh.y"
#line 268
6
"Gmsh.y"
{
{
for(int i = 0; i < List_Nbr((yyvsp[(4) - (6)].l)); i++){
for(int i = 0; i < List_Nbr((yyvsp[(4) - (6)].l)); i++){
double d;
double d;
...
@@ -9164,7 +9166,7 @@ yyreduce:
...
@@ -9164,7 +9166,7 @@ yyreduce:
break;
break;
case 225:
case 225:
#line 269
5
"Gmsh.y"
#line 269
7
"Gmsh.y"
{
{
for(int i = 0; i < List_Nbr((yyvsp[(4) - (6)].l)); i++){
for(int i = 0; i < List_Nbr((yyvsp[(4) - (6)].l)); i++){
double d;
double d;
...
@@ -9178,7 +9180,7 @@ yyreduce:
...
@@ -9178,7 +9180,7 @@ yyreduce:
break;
break;
case 226:
case 226:
#line 271
1
"Gmsh.y"
#line 271
3
"Gmsh.y"
{
{
#if defined(HAVE_DINTEGRATION)
#if defined(HAVE_DINTEGRATION)
if(List_Nbr((yyvsp[(7) - (8)].l)) == 4){
if(List_Nbr((yyvsp[(7) - (8)].l)) == 4){
...
@@ -9203,7 +9205,7 @@ yyreduce:
...
@@ -9203,7 +9205,7 @@ yyreduce:
break;
break;
case 227:
case 227:
#line 273
3
"Gmsh.y"
#line 273
5
"Gmsh.y"
{
{
#if defined(HAVE_DINTEGRATION)
#if defined(HAVE_DINTEGRATION)
int t = (int)(yyvsp[(4) - (10)].d);
int t = (int)(yyvsp[(4) - (10)].d);
...
@@ -9232,7 +9234,7 @@ yyreduce:
...
@@ -9232,7 +9234,7 @@ yyreduce:
break;
break;
case 228:
case 228:
#line 276
0
"Gmsh.y"
#line 276
2
"Gmsh.y"
{
{
#if defined(HAVE_DINTEGRATION)
#if defined(HAVE_DINTEGRATION)
if(List_Nbr((yyvsp[(12) - (14)].l)) == 0){
if(List_Nbr((yyvsp[(12) - (14)].l)) == 0){
...
@@ -9256,7 +9258,7 @@ yyreduce:
...
@@ -9256,7 +9258,7 @@ yyreduce:
break;
break;
case 229:
case 229:
#line 278
2
"Gmsh.y"
#line 278
4
"Gmsh.y"
{
{
#if defined(HAVE_DINTEGRATION)
#if defined(HAVE_DINTEGRATION)
if(List_Nbr((yyvsp[(14) - (16)].l)) == 0){
if(List_Nbr((yyvsp[(14) - (16)].l)) == 0){
...
@@ -9281,7 +9283,7 @@ yyreduce:
...
@@ -9281,7 +9283,7 @@ yyreduce:
break;
break;
case 230:
case 230:
#line 280
4
"Gmsh.y"
#line 280
6
"Gmsh.y"
{
{
#if defined(HAVE_DINTEGRATION)
#if defined(HAVE_DINTEGRATION)
if(List_Nbr((yyvsp[(10) - (12)].l)) == 1){
if(List_Nbr((yyvsp[(10) - (12)].l)) == 1){
...
@@ -9305,7 +9307,7 @@ yyreduce:
...
@@ -9305,7 +9307,7 @@ yyreduce:
break;
break;
case 231:
case 231:
#line 282
6
"Gmsh.y"
#line 282
8
"Gmsh.y"
{
{
#if defined(HAVE_DINTEGRATION)
#if defined(HAVE_DINTEGRATION)
if(List_Nbr((yyvsp[(12) - (14)].l)) == 1){
if(List_Nbr((yyvsp[(12) - (14)].l)) == 1){
...
@@ -9363,7 +9365,7 @@ yyreduce:
...
@@ -9363,7 +9365,7 @@ yyreduce:
break;
break;
case 232:
case 232:
#line 288
2
"Gmsh.y"
#line 288
4
"Gmsh.y"
{
{
#if defined(HAVE_DINTEGRATION)
#if defined(HAVE_DINTEGRATION)
if(List_Nbr((yyvsp[(12) - (14)].l)) == 1){
if(List_Nbr((yyvsp[(12) - (14)].l)) == 1){
...
@@ -9389,7 +9391,7 @@ yyreduce:
...
@@ -9389,7 +9391,7 @@ yyreduce:
break;
break;
case 233:
case 233:
#line 290
6
"Gmsh.y"
#line 290
8
"Gmsh.y"
{
{
#if defined(HAVE_DINTEGRATION)
#if defined(HAVE_DINTEGRATION)
if(List_Nbr((yyvsp[(12) - (14)].l)) == 3){
if(List_Nbr((yyvsp[(12) - (14)].l)) == 3){
...
@@ -9416,7 +9418,7 @@ yyreduce:
...
@@ -9416,7 +9418,7 @@ yyreduce:
break;
break;
case 234:
case 234:
#line 293
1
"Gmsh.y"
#line 293
3
"Gmsh.y"
{
{
#if defined(HAVE_DINTEGRATION)
#if defined(HAVE_DINTEGRATION)
if(List_Nbr((yyvsp[(12) - (14)].l)) == 5){
if(List_Nbr((yyvsp[(12) - (14)].l)) == 5){
...
@@ -9444,7 +9446,7 @@ yyreduce:
...
@@ -9444,7 +9446,7 @@ yyreduce:
break;
break;
case 235:
case 235:
#line 295
6
"Gmsh.y"
#line 295
8
"Gmsh.y"
{
{
#if defined(HAVE_DINTEGRATION)
#if defined(HAVE_DINTEGRATION)
if(!strcmp((yyvsp[(2) - (8)].c), "Union")){
if(!strcmp((yyvsp[(2) - (8)].c), "Union")){
...
@@ -9560,7 +9562,7 @@ yyreduce:
...
@@ -9560,7 +9562,7 @@ yyreduce:
break;
break;
case 236:
case 236:
#line 30
69
"Gmsh.y"
#line 30
71
"Gmsh.y"
{
{
#if defined(HAVE_DINTEGRATION)
#if defined(HAVE_DINTEGRATION)
if(!strcmp((yyvsp[(2) - (8)].c), "MathEval")){
if(!strcmp((yyvsp[(2) - (8)].c), "MathEval")){
...
@@ -9582,7 +9584,7 @@ yyreduce:
...
@@ -9582,7 +9584,7 @@ yyreduce:
break;
break;
case 237:
case 237:
#line 30
88
"Gmsh.y"
#line 30
90
"Gmsh.y"
{
{
#if defined(HAVE_DINTEGRATION)
#if defined(HAVE_DINTEGRATION)
if(!strcmp((yyvsp[(2) - (6)].c), "CutMesh")){
if(!strcmp((yyvsp[(2) - (6)].c), "CutMesh")){
...
@@ -9623,7 +9625,7 @@ yyreduce:
...
@@ -9623,7 +9625,7 @@ yyreduce:
break;
break;
case 238:
case 238:
#line 313
1
"Gmsh.y"
#line 313
3
"Gmsh.y"
{
{
if(factory == "OpenCASCADE"){
if(factory == "OpenCASCADE"){
std::vector<int> in[4];
std::vector<int> in[4];
...
@@ -9647,7 +9649,7 @@ yyreduce:
...
@@ -9647,7 +9649,7 @@ yyreduce:
break;
break;
case 239:
case 239:
#line 315
2
"Gmsh.y"
#line 315
4
"Gmsh.y"
{
{
#if defined(HAVE_MESH)
#if defined(HAVE_MESH)
GModel::current()->getFields()->deleteField((int)(yyvsp[(4) - (6)].d));
GModel::current()->getFields()->deleteField((int)(yyvsp[(4) - (6)].d));
...
@@ -9656,7 +9658,7 @@ yyreduce:
...
@@ -9656,7 +9658,7 @@ yyreduce:
break;
break;
case 240:
case 240:
#line 31
58
"Gmsh.y"
#line 31
60
"Gmsh.y"
{
{
#if defined(HAVE_POST)
#if defined(HAVE_POST)
if(!strcmp((yyvsp[(2) - (6)].c), "View")){
if(!strcmp((yyvsp[(2) - (6)].c), "View")){
...
@@ -9674,7 +9676,7 @@ yyreduce:
...
@@ -9674,7 +9676,7 @@ yyreduce:
break;
break;
case 241:
case 241:
#line 317
3
"Gmsh.y"
#line 317
5
"Gmsh.y"
{
{
if(!strcmp((yyvsp[(2) - (3)].c), "Meshes") || !strcmp((yyvsp[(2) - (3)].c), "All")){
if(!strcmp((yyvsp[(2) - (3)].c), "Meshes") || !strcmp((yyvsp[(2) - (3)].c), "All")){
ClearProject();
ClearProject();
...
@@ -9705,7 +9707,7 @@ yyreduce:
...
@@ -9705,7 +9707,7 @@ yyreduce:
break;
break;
case 242:
case 242:
#line 320
1
"Gmsh.y"
#line 320
3
"Gmsh.y"
{
{
#if defined(HAVE_POST)
#if defined(HAVE_POST)
if(!strcmp((yyvsp[(2) - (4)].c), "Empty") && !strcmp((yyvsp[(3) - (4)].c), "Views")){
if(!strcmp((yyvsp[(2) - (4)].c), "Empty") && !strcmp((yyvsp[(3) - (4)].c), "Views")){
...
@@ -9720,7 +9722,7 @@ yyreduce:
...
@@ -9720,7 +9722,7 @@ yyreduce:
break;
break;
case 243:
case 243:
#line 32
18
"Gmsh.y"
#line 32
20
"Gmsh.y"
{
{
for(int i = 0; i < List_Nbr((yyvsp[(4) - (5)].l)); i++){
for(int i = 0; i < List_Nbr((yyvsp[(4) - (5)].l)); i++){
Shape TheShape;
Shape TheShape;
...
@@ -9732,7 +9734,7 @@ yyreduce:
...
@@ -9732,7 +9734,7 @@ yyreduce:
break;
break;
case 244:
case 244:
#line 322
7
"Gmsh.y"
#line 322
9
"Gmsh.y"
{
{
for(int i = 0; i < List_Nbr((yyvsp[(5) - (6)].l)); i++){
for(int i = 0; i < List_Nbr((yyvsp[(5) - (6)].l)); i++){
Shape TheShape;
Shape TheShape;
...
@@ -9744,7 +9746,7 @@ yyreduce:
...
@@ -9744,7 +9746,7 @@ yyreduce:
break;
break;
case 245:
case 245:
#line 324
1
"Gmsh.y"
#line 324
3
"Gmsh.y"
{
{
for(int i = 0; i < List_Nbr((yyvsp[(4) - (5)].l)); i++){
for(int i = 0; i < List_Nbr((yyvsp[(4) - (5)].l)); i++){
Shape TheShape;
Shape TheShape;
...
@@ -9756,7 +9758,7 @@ yyreduce:
...
@@ -9756,7 +9758,7 @@ yyreduce:
break;
break;
case 246:
case 246:
#line 325
5
"Gmsh.y"
#line 325
7
"Gmsh.y"
{
{
for(int i = 0; i < 4; i++)
for(int i = 0; i < 4; i++)
VisibilityShape((yyvsp[(2) - (3)].c), i, 1, false);
VisibilityShape((yyvsp[(2) - (3)].c), i, 1, false);
...
@@ -9765,7 +9767,7 @@ yyreduce:
...
@@ -9765,7 +9767,7 @@ yyreduce:
break;
break;
case 247:
case 247:
#line 326
1
"Gmsh.y"
#line 326
3
"Gmsh.y"
{
{
for(int i = 0; i < 4; i++)
for(int i = 0; i < 4; i++)
VisibilityShape((yyvsp[(2) - (3)].c), i, 0, false);
VisibilityShape((yyvsp[(2) - (3)].c), i, 0, false);
...
@@ -9774,7 +9776,7 @@ yyreduce:
...
@@ -9774,7 +9776,7 @@ yyreduce:
break;
break;
case 248:
case 248:
#line 326
7
"Gmsh.y"
#line 326
9
"Gmsh.y"
{
{
for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){
for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){
Shape TheShape;
Shape TheShape;
...
@@ -9786,7 +9788,7 @@ yyreduce:
...
@@ -9786,7 +9788,7 @@ yyreduce:
break;
break;
case 249:
case 249:
#line 327
6
"Gmsh.y"
#line 327
8
"Gmsh.y"
{
{
for(int i = 0; i < List_Nbr((yyvsp[(4) - (5)].l)); i++){
for(int i = 0; i < List_Nbr((yyvsp[(4) - (5)].l)); i++){
Shape TheShape;
Shape TheShape;
...
@@ -9798,7 +9800,7 @@ yyreduce:
...
@@ -9798,7 +9800,7 @@ yyreduce:
break;
break;
case 250:
case 250:
#line 328
5
"Gmsh.y"
#line 328
7
"Gmsh.y"
{
{
for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){
for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){
Shape TheShape;
Shape TheShape;
...
@@ -9810,7 +9812,7 @@ yyreduce:
...
@@ -9810,7 +9812,7 @@ yyreduce:
break;
break;
case 251:
case 251:
#line 329
4
"Gmsh.y"
#line 329
6
"Gmsh.y"
{
{
for(int i = 0; i < List_Nbr((yyvsp[(4) - (5)].l)); i++){
for(int i = 0; i < List_Nbr((yyvsp[(4) - (5)].l)); i++){
Shape TheShape;
Shape TheShape;
...
@@ -9822,7 +9824,7 @@ yyreduce:
...
@@ -9822,7 +9824,7 @@ yyreduce:
break;
break;
case 252:
case 252:
#line 330
8
"Gmsh.y"
#line 33
1
0 "Gmsh.y"
{
{
if(!strcmp((yyvsp[(1) - (3)].c), "Include")){
if(!strcmp((yyvsp[(1) - (3)].c), "Include")){
std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(2) - (3)].c));
std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(2) - (3)].c));
...
@@ -9895,7 +9897,7 @@ yyreduce:
...
@@ -9895,7 +9897,7 @@ yyreduce:
break;
break;
case 253:
case 253:
#line 33
7
8 "Gmsh.y"
#line 338
0
"Gmsh.y"
{
{
int n = List_Nbr((yyvsp[(3) - (5)].l));
int n = List_Nbr((yyvsp[(3) - (5)].l));
if(n == 1){
if(n == 1){
...
@@ -9916,7 +9918,7 @@ yyreduce:
...
@@ -9916,7 +9918,7 @@ yyreduce:
break;
break;
case 254:
case 254:
#line 339
6
"Gmsh.y"
#line 339
8
"Gmsh.y"
{
{
#if defined(HAVE_POST)
#if defined(HAVE_POST)
if(!strcmp((yyvsp[(1) - (7)].c), "Save") && !strcmp((yyvsp[(2) - (7)].c), "View")){
if(!strcmp((yyvsp[(1) - (7)].c), "Save") && !strcmp((yyvsp[(2) - (7)].c), "View")){
...
@@ -9936,7 +9938,7 @@ yyreduce:
...
@@ -9936,7 +9938,7 @@ yyreduce:
break;
break;
case 255:
case 255:
#line 341
3
"Gmsh.y"
#line 341
5
"Gmsh.y"
{
{
#if defined(HAVE_POST) && defined(HAVE_MESH)
#if defined(HAVE_POST) && defined(HAVE_MESH)
if(!strcmp((yyvsp[(1) - (7)].c), "Background") && !strcmp((yyvsp[(2) - (7)].c), "Mesh") && !strcmp((yyvsp[(3) - (7)].c), "View")){
if(!strcmp((yyvsp[(1) - (7)].c), "Background") && !strcmp((yyvsp[(2) - (7)].c), "Mesh") && !strcmp((yyvsp[(3) - (7)].c), "View")){
...
@@ -9954,7 +9956,7 @@ yyreduce:
...
@@ -9954,7 +9956,7 @@ yyreduce:
break;
break;
case 256:
case 256:
#line 34
28
"Gmsh.y"
#line 34
30
"Gmsh.y"
{
{
if(!strcmp((yyvsp[(1) - (3)].c), "Sleep")){
if(!strcmp((yyvsp[(1) - (3)].c), "Sleep")){
SleepInSeconds((yyvsp[(2) - (3)].d));
SleepInSeconds((yyvsp[(2) - (3)].d));
...
@@ -9989,7 +9991,7 @@ yyreduce:
...
@@ -9989,7 +9991,7 @@ yyreduce:
break;
break;
case 257:
case 257:
#line 346
0
"Gmsh.y"
#line 346
2
"Gmsh.y"
{
{
#if defined(HAVE_PLUGINS)
#if defined(HAVE_PLUGINS)
try {
try {
...
@@ -10004,7 +10006,7 @@ yyreduce:
...
@@ -10004,7 +10006,7 @@ yyreduce:
break;
break;
case 258:
case 258:
#line 347
2
"Gmsh.y"
#line 347
4
"Gmsh.y"
{
{
#if defined(HAVE_POST)
#if defined(HAVE_POST)
if(!strcmp((yyvsp[(2) - (3)].c), "ElementsFromAllViews"))
if(!strcmp((yyvsp[(2) - (3)].c), "ElementsFromAllViews"))
...
@@ -10031,14 +10033,14 @@ yyreduce:
...
@@ -10031,14 +10033,14 @@ yyreduce:
break;
break;
case 259:
case 259:
#line 349
6
"Gmsh.y"
#line 349
8
"Gmsh.y"
{
{
Msg::Exit(0);
Msg::Exit(0);
;}
;}
break;
break;
case 260:
case 260:
#line 350
0
"Gmsh.y"
#line 350
2
"Gmsh.y"
{
{
gmsh_yyerrorstate = 999; // this will be checked when yyparse returns
gmsh_yyerrorstate = 999; // this will be checked when yyparse returns
YYABORT;
YYABORT;
...
@@ -10046,7 +10048,7 @@ yyreduce:
...
@@ -10046,7 +10048,7 @@ yyreduce:
break;
break;
case 261:
case 261:
#line 350
5
"Gmsh.y"
#line 350
7
"Gmsh.y"
{
{
// force sync
// force sync
GModel::current()->getOCCInternals()->synchronize(GModel::current());
GModel::current()->getOCCInternals()->synchronize(GModel::current());
...
@@ -10055,7 +10057,7 @@ yyreduce:
...
@@ -10055,7 +10057,7 @@ yyreduce:
break;
break;
case 262:
case 262:
#line 351
1
"Gmsh.y"
#line 351
3
"Gmsh.y"
{
{
new GModel();
new GModel();
GModel::current(GModel::list.size() - 1);
GModel::current(GModel::list.size() - 1);
...
@@ -10063,7 +10065,7 @@ yyreduce:
...
@@ -10063,7 +10065,7 @@ yyreduce:
break;
break;
case 263:
case 263:
#line 351
6
"Gmsh.y"
#line 351
8
"Gmsh.y"
{
{
CTX::instance()->forcedBBox = 0;
CTX::instance()->forcedBBox = 0;
if(GModel::current()->getOCCInternals()->getChanged())
if(GModel::current()->getOCCInternals()->getChanged())
...
@@ -10075,7 +10077,7 @@ yyreduce:
...
@@ -10075,7 +10077,7 @@ yyreduce:
break;
break;
case 264:
case 264:
#line 352
5
"Gmsh.y"
#line 352
7
"Gmsh.y"
{
{
CTX::instance()->forcedBBox = 1;
CTX::instance()->forcedBBox = 1;
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));
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));
...
@@ -10083,7 +10085,7 @@ yyreduce:
...
@@ -10083,7 +10085,7 @@ yyreduce:
break;
break;
case 265:
case 265:
#line 353
0
"Gmsh.y"
#line 353
2
"Gmsh.y"
{
{
#if defined(HAVE_OPENGL)
#if defined(HAVE_OPENGL)
drawContext::global()->draw();
drawContext::global()->draw();
...
@@ -10092,7 +10094,7 @@ yyreduce:
...
@@ -10092,7 +10094,7 @@ yyreduce:
break;
break;
case 266:
case 266:
#line 353
6
"Gmsh.y"
#line 353
8
"Gmsh.y"
{
{
#if defined(HAVE_OPENGL)
#if defined(HAVE_OPENGL)
CTX::instance()->mesh.changed = ENT_ALL;
CTX::instance()->mesh.changed = ENT_ALL;
...
@@ -10103,21 +10105,21 @@ yyreduce:
...
@@ -10103,21 +10105,21 @@ yyreduce:
break;
break;
case 267:
case 267:
#line 354
4
"Gmsh.y"
#line 354
6
"Gmsh.y"
{
{
GModel::current()->createTopologyFromMesh();
GModel::current()->createTopologyFromMesh();
;}
;}
break;
break;
case 268:
case 268:
#line 35
48
"Gmsh.y"
#line 35
50
"Gmsh.y"
{
{
GModel::current()->createTopologyFromMesh(1);
GModel::current()->createTopologyFromMesh(1);
;}
;}
break;
break;
case 269:
case 269:
#line 355
2
"Gmsh.y"
#line 355
4
"Gmsh.y"
{
{
if(GModel::current()->getOCCInternals()->getChanged())
if(GModel::current()->getOCCInternals()->getChanged())
GModel::current()->getOCCInternals()->synchronize(GModel::current());
GModel::current()->getOCCInternals()->synchronize(GModel::current());
...
@@ -10128,7 +10130,7 @@ yyreduce:
...
@@ -10128,7 +10130,7 @@ yyreduce:
break;
break;
case 270:
case 270:
#line 356
1
"Gmsh.y"
#line 356
3
"Gmsh.y"
{
{
int lock = CTX::instance()->lock;
int lock = CTX::instance()->lock;
CTX::instance()->lock = 0;
CTX::instance()->lock = 0;
...
@@ -10188,7 +10190,7 @@ yyreduce:
...
@@ -10188,7 +10190,7 @@ yyreduce:
break;
break;
case 271:
case 271:
#line 362
3
"Gmsh.y"
#line 362
5
"Gmsh.y"
{
{
#if defined(HAVE_POPPLER)
#if defined(HAVE_POPPLER)
std::vector<int> is;
std::vector<int> is;
...
@@ -10203,7 +10205,7 @@ yyreduce:
...
@@ -10203,7 +10205,7 @@ yyreduce:
break;
break;
case 272:
case 272:
#line 36
39
"Gmsh.y"
#line 36
41
"Gmsh.y"
{
{
LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[(3) - (6)].d);
LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[(3) - (6)].d);
LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[(5) - (6)].d);
LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[(5) - (6)].d);
...
@@ -10223,7 +10225,7 @@ yyreduce:
...
@@ -10223,7 +10225,7 @@ yyreduce:
break;
break;
case 273:
case 273:
#line 365
6
"Gmsh.y"
#line 365
8
"Gmsh.y"
{
{
LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[(3) - (8)].d);
LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[(3) - (8)].d);
LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[(5) - (8)].d);
LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[(5) - (8)].d);
...
@@ -10243,7 +10245,7 @@ yyreduce:
...
@@ -10243,7 +10245,7 @@ yyreduce:
break;
break;
case 274:
case 274:
#line 367
3
"Gmsh.y"
#line 367
5
"Gmsh.y"
{
{
LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[(5) - (8)].d);
LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[(5) - (8)].d);
LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[(7) - (8)].d);
LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[(7) - (8)].d);
...
@@ -10268,7 +10270,7 @@ yyreduce:
...
@@ -10268,7 +10270,7 @@ yyreduce:
break;
break;
case 275:
case 275:
#line 369
5
"Gmsh.y"
#line 369
7
"Gmsh.y"
{
{
LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[(5) - (10)].d);
LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[(5) - (10)].d);
LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[(7) - (10)].d);
LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[(7) - (10)].d);
...
@@ -10293,7 +10295,7 @@ yyreduce:
...
@@ -10293,7 +10295,7 @@ yyreduce:
break;
break;
case 276:
case 276:
#line 371
7
"Gmsh.y"
#line 371
9
"Gmsh.y"
{
{
if(ImbricatedLoop <= 0){
if(ImbricatedLoop <= 0){
yymsg(0, "Invalid For/EndFor loop");
yymsg(0, "Invalid For/EndFor loop");
...
@@ -10331,7 +10333,7 @@ yyreduce:
...
@@ -10331,7 +10333,7 @@ yyreduce:
break;
break;
case 277:
case 277:
#line 375
2
"Gmsh.y"
#line 375
4
"Gmsh.y"
{
{
if(!FunctionManager::Instance()->createFunction
if(!FunctionManager::Instance()->createFunction
(std::string((yyvsp[(2) - (2)].c)), gmsh_yyin, gmsh_yyname, gmsh_yylineno))
(std::string((yyvsp[(2) - (2)].c)), gmsh_yyin, gmsh_yyname, gmsh_yylineno))
...
@@ -10342,7 +10344,7 @@ yyreduce:
...
@@ -10342,7 +10344,7 @@ yyreduce:
break;
break;
case 278:
case 278:
#line 376
0
"Gmsh.y"
#line 376
2
"Gmsh.y"
{
{
if(!FunctionManager::Instance()->createFunction
if(!FunctionManager::Instance()->createFunction
(std::string((yyvsp[(2) - (2)].c)), gmsh_yyin, gmsh_yyname, gmsh_yylineno))
(std::string((yyvsp[(2) - (2)].c)), gmsh_yyin, gmsh_yyname, gmsh_yylineno))
...
@@ -10353,7 +10355,7 @@ yyreduce:
...
@@ -10353,7 +10355,7 @@ yyreduce:
break;
break;
case 279:
case 279:
#line 37
68
"Gmsh.y"
#line 37
70
"Gmsh.y"
{
{
if(!FunctionManager::Instance()->leaveFunction
if(!FunctionManager::Instance()->leaveFunction
(&gmsh_yyin, gmsh_yyname, gmsh_yylineno))
(&gmsh_yyin, gmsh_yyname, gmsh_yylineno))
...
@@ -10362,7 +10364,7 @@ yyreduce:
...
@@ -10362,7 +10364,7 @@ yyreduce:
break;
break;
case 280:
case 280:
#line 377
4
"Gmsh.y"
#line 377
6
"Gmsh.y"
{
{
if(!FunctionManager::Instance()->enterFunction
if(!FunctionManager::Instance()->enterFunction
(std::string((yyvsp[(2) - (3)].c)), &gmsh_yyin, gmsh_yyname, gmsh_yylineno))
(std::string((yyvsp[(2) - (3)].c)), &gmsh_yyin, gmsh_yyname, gmsh_yylineno))
...
@@ -10372,7 +10374,7 @@ yyreduce:
...
@@ -10372,7 +10374,7 @@ yyreduce:
break;
break;
case 281:
case 281:
#line 378
1
"Gmsh.y"
#line 378
3
"Gmsh.y"
{
{
if(!FunctionManager::Instance()->enterFunction
if(!FunctionManager::Instance()->enterFunction
(std::string((yyvsp[(2) - (3)].c)), &gmsh_yyin, gmsh_yyname, gmsh_yylineno))
(std::string((yyvsp[(2) - (3)].c)), &gmsh_yyin, gmsh_yyname, gmsh_yylineno))
...
@@ -10382,7 +10384,7 @@ yyreduce:
...
@@ -10382,7 +10384,7 @@ yyreduce:
break;
break;
case 282:
case 282:
#line 37
88
"Gmsh.y"
#line 37
90
"Gmsh.y"
{
{
ImbricatedTest++;
ImbricatedTest++;
if(ImbricatedTest > MAX_RECUR_TESTS-1){
if(ImbricatedTest > MAX_RECUR_TESTS-1){
...
@@ -10405,7 +10407,7 @@ yyreduce:
...
@@ -10405,7 +10407,7 @@ yyreduce:
break;
break;
case 283:
case 283:
#line 380
8
"Gmsh.y"
#line 38
1
0 "Gmsh.y"
{
{
if(ImbricatedTest > 0){
if(ImbricatedTest > 0){
if (statusImbricatedTests[ImbricatedTest]){
if (statusImbricatedTests[ImbricatedTest]){
...
@@ -10434,7 +10436,7 @@ yyreduce:
...
@@ -10434,7 +10436,7 @@ yyreduce:
break;
break;
case 284:
case 284:
#line 383
4
"Gmsh.y"
#line 383
6
"Gmsh.y"
{
{
if(ImbricatedTest > 0){
if(ImbricatedTest > 0){
if(statusImbricatedTests[ImbricatedTest]){
if(statusImbricatedTests[ImbricatedTest]){
...
@@ -10449,7 +10451,7 @@ yyreduce:
...
@@ -10449,7 +10451,7 @@ yyreduce:
break;
break;
case 285:
case 285:
#line 384
6
"Gmsh.y"
#line 384
8
"Gmsh.y"
{
{
ImbricatedTest--;
ImbricatedTest--;
if(ImbricatedTest < 0)
if(ImbricatedTest < 0)
...
@@ -10458,7 +10460,7 @@ yyreduce:
...
@@ -10458,7 +10460,7 @@ yyreduce:
break;
break;
case 286:
case 286:
#line 38
58
"Gmsh.y"
#line 38
60
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
if(factory == "OpenCASCADE"){
if(factory == "OpenCASCADE"){
...
@@ -10491,7 +10493,7 @@ yyreduce:
...
@@ -10491,7 +10493,7 @@ yyreduce:
break;
break;
case 287:
case 287:
#line 38
88
"Gmsh.y"
#line 38
90
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
if(factory == "OpenCASCADE"){
if(factory == "OpenCASCADE"){
...
@@ -10525,7 +10527,7 @@ yyreduce:
...
@@ -10525,7 +10527,7 @@ yyreduce:
break;
break;
case 288:
case 288:
#line 391
9
"Gmsh.y"
#line 39
2
1 "Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
ExtrudeShapes(TRANSLATE_ROTATE, (yyvsp[(12) - (13)].l),
ExtrudeShapes(TRANSLATE_ROTATE, (yyvsp[(12) - (13)].l),
...
@@ -10536,7 +10538,7 @@ yyreduce:
...
@@ -10536,7 +10538,7 @@ yyreduce:
break;
break;
case 289:
case 289:
#line 392
7
"Gmsh.y"
#line 392
9
"Gmsh.y"
{
{
extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false;
extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false;
extr.mesh.QuadToTri = NO_QUADTRI;
extr.mesh.QuadToTri = NO_QUADTRI;
...
@@ -10545,7 +10547,7 @@ yyreduce:
...
@@ -10545,7 +10547,7 @@ yyreduce:
break;
break;
case 290:
case 290:
#line 393
3
"Gmsh.y"
#line 393
5
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
ExtrudeShapes(TRANSLATE, (yyvsp[(4) - (7)].l),
ExtrudeShapes(TRANSLATE, (yyvsp[(4) - (7)].l),
...
@@ -10556,7 +10558,7 @@ yyreduce:
...
@@ -10556,7 +10558,7 @@ yyreduce:
break;
break;
case 291:
case 291:
#line 394
1
"Gmsh.y"
#line 394
3
"Gmsh.y"
{
{
extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false;
extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false;
extr.mesh.QuadToTri = NO_QUADTRI;
extr.mesh.QuadToTri = NO_QUADTRI;
...
@@ -10565,7 +10567,7 @@ yyreduce:
...
@@ -10565,7 +10567,7 @@ yyreduce:
break;
break;
case 292:
case 292:
#line 394
7
"Gmsh.y"
#line 394
9
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
ExtrudeShapes(ROTATE, (yyvsp[(10) - (13)].l),
ExtrudeShapes(ROTATE, (yyvsp[(10) - (13)].l),
...
@@ -10576,7 +10578,7 @@ yyreduce:
...
@@ -10576,7 +10578,7 @@ yyreduce:
break;
break;
case 293:
case 293:
#line 395
5
"Gmsh.y"
#line 395
7
"Gmsh.y"
{
{
extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false;
extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false;
extr.mesh.QuadToTri = NO_QUADTRI;
extr.mesh.QuadToTri = NO_QUADTRI;
...
@@ -10585,7 +10587,7 @@ yyreduce:
...
@@ -10585,7 +10587,7 @@ yyreduce:
break;
break;
case 294:
case 294:
#line 396
1
"Gmsh.y"
#line 396
3
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
ExtrudeShapes(TRANSLATE_ROTATE, (yyvsp[(12) - (15)].l),
ExtrudeShapes(TRANSLATE_ROTATE, (yyvsp[(12) - (15)].l),
...
@@ -10596,7 +10598,7 @@ yyreduce:
...
@@ -10596,7 +10598,7 @@ yyreduce:
break;
break;
case 295:
case 295:
#line 39
69
"Gmsh.y"
#line 39
71
"Gmsh.y"
{
{
extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false;
extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false;
extr.mesh.QuadToTri = NO_QUADTRI;
extr.mesh.QuadToTri = NO_QUADTRI;
...
@@ -10605,7 +10607,7 @@ yyreduce:
...
@@ -10605,7 +10607,7 @@ yyreduce:
break;
break;
case 296:
case 296:
#line 397
5
"Gmsh.y"
#line 397
7
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
ExtrudeShapes(BOUNDARY_LAYER, (yyvsp[(3) - (6)].l), 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
ExtrudeShapes(BOUNDARY_LAYER, (yyvsp[(3) - (6)].l), 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
...
@@ -10615,7 +10617,7 @@ yyreduce:
...
@@ -10615,7 +10617,7 @@ yyreduce:
break;
break;
case 297:
case 297:
#line 398
2
"Gmsh.y"
#line 398
4
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
if(factory == "OpenCASCADE"){
if(factory == "OpenCASCADE"){
...
@@ -10645,7 +10647,7 @@ yyreduce:
...
@@ -10645,7 +10647,7 @@ yyreduce:
break;
break;
case 298:
case 298:
#line 40
09
"Gmsh.y"
#line 40
11
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
if(factory == "OpenCASCADE"){
if(factory == "OpenCASCADE"){
...
@@ -10667,7 +10669,7 @@ yyreduce:
...
@@ -10667,7 +10669,7 @@ yyreduce:
break;
break;
case 299:
case 299:
#line 40
28
"Gmsh.y"
#line 40
30
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
if(factory == "OpenCASCADE"){
if(factory == "OpenCASCADE"){
...
@@ -10689,7 +10691,7 @@ yyreduce:
...
@@ -10689,7 +10691,7 @@ yyreduce:
break;
break;
case 300:
case 300:
#line 404
7
"Gmsh.y"
#line 404
9
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
if(factory == "OpenCASCADE"){
if(factory == "OpenCASCADE"){
...
@@ -10717,7 +10719,7 @@ yyreduce:
...
@@ -10717,7 +10719,7 @@ yyreduce:
break;
break;
case 301:
case 301:
#line 407
3
"Gmsh.y"
#line 407
5
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
ExtrudeShape(TRANSLATE, MSH_POINT, (int)(yyvsp[(4) - (8)].d),
ExtrudeShape(TRANSLATE, MSH_POINT, (int)(yyvsp[(4) - (8)].d),
...
@@ -10727,7 +10729,7 @@ yyreduce:
...
@@ -10727,7 +10729,7 @@ yyreduce:
break;
break;
case 302:
case 302:
#line 408
0
"Gmsh.y"
#line 408
2
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
ExtrudeShape(TRANSLATE, MSH_SEGM_LINE, (int)(yyvsp[(4) - (8)].d),
ExtrudeShape(TRANSLATE, MSH_SEGM_LINE, (int)(yyvsp[(4) - (8)].d),
...
@@ -10737,7 +10739,7 @@ yyreduce:
...
@@ -10737,7 +10739,7 @@ yyreduce:
break;
break;
case 303:
case 303:
#line 408
7
"Gmsh.y"
#line 408
9
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
ExtrudeShape(TRANSLATE, MSH_SURF_PLAN, (int)(yyvsp[(4) - (8)].d),
ExtrudeShape(TRANSLATE, MSH_SURF_PLAN, (int)(yyvsp[(4) - (8)].d),
...
@@ -10747,7 +10749,7 @@ yyreduce:
...
@@ -10747,7 +10749,7 @@ yyreduce:
break;
break;
case 304:
case 304:
#line 409
4
"Gmsh.y"
#line 409
6
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
ExtrudeShape(ROTATE, MSH_POINT, (int)(yyvsp[(4) - (12)].d),
ExtrudeShape(ROTATE, MSH_POINT, (int)(yyvsp[(4) - (12)].d),
...
@@ -10757,7 +10759,7 @@ yyreduce:
...
@@ -10757,7 +10759,7 @@ yyreduce:
break;
break;
case 305:
case 305:
#line 410
1
"Gmsh.y"
#line 410
3
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
ExtrudeShape(ROTATE, MSH_SEGM_LINE, (int)(yyvsp[(4) - (12)].d),
ExtrudeShape(ROTATE, MSH_SEGM_LINE, (int)(yyvsp[(4) - (12)].d),
...
@@ -10767,7 +10769,7 @@ yyreduce:
...
@@ -10767,7 +10769,7 @@ yyreduce:
break;
break;
case 306:
case 306:
#line 410
8
"Gmsh.y"
#line 41
1
0 "Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
ExtrudeShape(ROTATE, MSH_SURF_PLAN, (int)(yyvsp[(4) - (12)].d),
ExtrudeShape(ROTATE, MSH_SURF_PLAN, (int)(yyvsp[(4) - (12)].d),
...
@@ -10777,7 +10779,7 @@ yyreduce:
...
@@ -10777,7 +10779,7 @@ yyreduce:
break;
break;
case 307:
case 307:
#line 411
5
"Gmsh.y"
#line 411
7
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
ExtrudeShape(TRANSLATE_ROTATE, MSH_POINT, (int)(yyvsp[(4) - (14)].d),
ExtrudeShape(TRANSLATE_ROTATE, MSH_POINT, (int)(yyvsp[(4) - (14)].d),
...
@@ -10787,7 +10789,7 @@ yyreduce:
...
@@ -10787,7 +10789,7 @@ yyreduce:
break;
break;
case 308:
case 308:
#line 412
2
"Gmsh.y"
#line 412
4
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
ExtrudeShape(TRANSLATE_ROTATE, MSH_SEGM_LINE, (int)(yyvsp[(4) - (14)].d),
ExtrudeShape(TRANSLATE_ROTATE, MSH_SEGM_LINE, (int)(yyvsp[(4) - (14)].d),
...
@@ -10797,7 +10799,7 @@ yyreduce:
...
@@ -10797,7 +10799,7 @@ yyreduce:
break;
break;
case 309:
case 309:
#line 41
29
"Gmsh.y"
#line 41
31
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
ExtrudeShape(TRANSLATE_ROTATE, MSH_SURF_PLAN, (int)(yyvsp[(4) - (14)].d),
ExtrudeShape(TRANSLATE_ROTATE, MSH_SURF_PLAN, (int)(yyvsp[(4) - (14)].d),
...
@@ -10807,7 +10809,7 @@ yyreduce:
...
@@ -10807,7 +10809,7 @@ yyreduce:
break;
break;
case 310:
case 310:
#line 413
6
"Gmsh.y"
#line 413
8
"Gmsh.y"
{
{
extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false;
extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false;
extr.mesh.QuadToTri = NO_QUADTRI;
extr.mesh.QuadToTri = NO_QUADTRI;
...
@@ -10816,7 +10818,7 @@ yyreduce:
...
@@ -10816,7 +10818,7 @@ yyreduce:
break;
break;
case 311:
case 311:
#line 414
2
"Gmsh.y"
#line 414
4
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
ExtrudeShape(TRANSLATE, MSH_POINT, (int)(yyvsp[(4) - (12)].d),
ExtrudeShape(TRANSLATE, MSH_POINT, (int)(yyvsp[(4) - (12)].d),
...
@@ -10826,7 +10828,7 @@ yyreduce:
...
@@ -10826,7 +10828,7 @@ yyreduce:
break;
break;
case 312:
case 312:
#line 41
49
"Gmsh.y"
#line 41
51
"Gmsh.y"
{
{
extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false;
extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false;
extr.mesh.QuadToTri = NO_QUADTRI;
extr.mesh.QuadToTri = NO_QUADTRI;
...
@@ -10835,7 +10837,7 @@ yyreduce:
...
@@ -10835,7 +10837,7 @@ yyreduce:
break;
break;
case 313:
case 313:
#line 415
5
"Gmsh.y"
#line 415
7
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
ExtrudeShape(TRANSLATE, MSH_SEGM_LINE, (int)(yyvsp[(4) - (12)].d),
ExtrudeShape(TRANSLATE, MSH_SEGM_LINE, (int)(yyvsp[(4) - (12)].d),
...
@@ -10845,7 +10847,7 @@ yyreduce:
...
@@ -10845,7 +10847,7 @@ yyreduce:
break;
break;
case 314:
case 314:
#line 416
2
"Gmsh.y"
#line 416
4
"Gmsh.y"
{
{
extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false;
extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false;
extr.mesh.QuadToTri = NO_QUADTRI;
extr.mesh.QuadToTri = NO_QUADTRI;
...
@@ -10854,7 +10856,7 @@ yyreduce:
...
@@ -10854,7 +10856,7 @@ yyreduce:
break;
break;
case 315:
case 315:
#line 41
68
"Gmsh.y"
#line 41
70
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
ExtrudeShape(TRANSLATE, MSH_SURF_PLAN, (int)(yyvsp[(4) - (12)].d),
ExtrudeShape(TRANSLATE, MSH_SURF_PLAN, (int)(yyvsp[(4) - (12)].d),
...
@@ -10864,7 +10866,7 @@ yyreduce:
...
@@ -10864,7 +10866,7 @@ yyreduce:
break;
break;
case 316:
case 316:
#line 417
5
"Gmsh.y"
#line 417
7
"Gmsh.y"
{
{
extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false;
extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false;
extr.mesh.QuadToTri = NO_QUADTRI;
extr.mesh.QuadToTri = NO_QUADTRI;
...
@@ -10873,7 +10875,7 @@ yyreduce:
...
@@ -10873,7 +10875,7 @@ yyreduce:
break;
break;
case 317:
case 317:
#line 418
1
"Gmsh.y"
#line 418
3
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
ExtrudeShape(ROTATE, MSH_POINT, (int)(yyvsp[(4) - (16)].d),
ExtrudeShape(ROTATE, MSH_POINT, (int)(yyvsp[(4) - (16)].d),
...
@@ -10883,7 +10885,7 @@ yyreduce:
...
@@ -10883,7 +10885,7 @@ yyreduce:
break;
break;
case 318:
case 318:
#line 41
88
"Gmsh.y"
#line 41
90
"Gmsh.y"
{
{
extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false;
extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false;
extr.mesh.QuadToTri = NO_QUADTRI;
extr.mesh.QuadToTri = NO_QUADTRI;
...
@@ -10892,7 +10894,7 @@ yyreduce:
...
@@ -10892,7 +10894,7 @@ yyreduce:
break;
break;
case 319:
case 319:
#line 419
4
"Gmsh.y"
#line 419
6
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
ExtrudeShape(ROTATE, MSH_SEGM_LINE, (int)(yyvsp[(4) - (16)].d),
ExtrudeShape(ROTATE, MSH_SEGM_LINE, (int)(yyvsp[(4) - (16)].d),
...
@@ -10902,7 +10904,7 @@ yyreduce:
...
@@ -10902,7 +10904,7 @@ yyreduce:
break;
break;
case 320:
case 320:
#line 420
1
"Gmsh.y"
#line 420
3
"Gmsh.y"
{
{
extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false;
extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false;
extr.mesh.QuadToTri = NO_QUADTRI;
extr.mesh.QuadToTri = NO_QUADTRI;
...
@@ -10911,7 +10913,7 @@ yyreduce:
...
@@ -10911,7 +10913,7 @@ yyreduce:
break;
break;
case 321:
case 321:
#line 420
7
"Gmsh.y"
#line 420
9
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
ExtrudeShape(ROTATE, MSH_SURF_PLAN, (int)(yyvsp[(4) - (16)].d),
ExtrudeShape(ROTATE, MSH_SURF_PLAN, (int)(yyvsp[(4) - (16)].d),
...
@@ -10921,7 +10923,7 @@ yyreduce:
...
@@ -10921,7 +10923,7 @@ yyreduce:
break;
break;
case 322:
case 322:
#line 421
4
"Gmsh.y"
#line 421
6
"Gmsh.y"
{
{
extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false;
extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false;
extr.mesh.QuadToTri = NO_QUADTRI;
extr.mesh.QuadToTri = NO_QUADTRI;
...
@@ -10930,7 +10932,7 @@ yyreduce:
...
@@ -10930,7 +10932,7 @@ yyreduce:
break;
break;
case 323:
case 323:
#line 422
0
"Gmsh.y"
#line 422
2
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
ExtrudeShape(TRANSLATE_ROTATE, MSH_POINT, (int)(yyvsp[(4) - (18)].d),
ExtrudeShape(TRANSLATE_ROTATE, MSH_POINT, (int)(yyvsp[(4) - (18)].d),
...
@@ -10940,7 +10942,7 @@ yyreduce:
...
@@ -10940,7 +10942,7 @@ yyreduce:
break;
break;
case 324:
case 324:
#line 422
7
"Gmsh.y"
#line 422
9
"Gmsh.y"
{
{
extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false;
extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false;
extr.mesh.QuadToTri = NO_QUADTRI;
extr.mesh.QuadToTri = NO_QUADTRI;
...
@@ -10949,7 +10951,7 @@ yyreduce:
...
@@ -10949,7 +10951,7 @@ yyreduce:
break;
break;
case 325:
case 325:
#line 423
3
"Gmsh.y"
#line 423
5
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
ExtrudeShape(TRANSLATE_ROTATE, MSH_SEGM_LINE, (int)(yyvsp[(4) - (18)].d),
ExtrudeShape(TRANSLATE_ROTATE, MSH_SEGM_LINE, (int)(yyvsp[(4) - (18)].d),
...
@@ -10959,7 +10961,7 @@ yyreduce:
...
@@ -10959,7 +10961,7 @@ yyreduce:
break;
break;
case 326:
case 326:
#line 424
0
"Gmsh.y"
#line 424
2
"Gmsh.y"
{
{
extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false;
extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false;
extr.mesh.QuadToTri = NO_QUADTRI;
extr.mesh.QuadToTri = NO_QUADTRI;
...
@@ -10968,7 +10970,7 @@ yyreduce:
...
@@ -10968,7 +10970,7 @@ yyreduce:
break;
break;
case 327:
case 327:
#line 424
6
"Gmsh.y"
#line 424
8
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
ExtrudeShape(TRANSLATE_ROTATE, MSH_SURF_PLAN, (int)(yyvsp[(4) - (18)].d),
ExtrudeShape(TRANSLATE_ROTATE, MSH_SURF_PLAN, (int)(yyvsp[(4) - (18)].d),
...
@@ -10978,19 +10980,19 @@ yyreduce:
...
@@ -10978,19 +10980,19 @@ yyreduce:
break;
break;
case 328:
case 328:
#line 425
7
"Gmsh.y"
#line 425
9
"Gmsh.y"
{
{
;}
;}
break;
break;
case 329:
case 329:
#line 426
0
"Gmsh.y"
#line 426
2
"Gmsh.y"
{
{
;}
;}
break;
break;
case 330:
case 330:
#line 426
6
"Gmsh.y"
#line 426
8
"Gmsh.y"
{
{
int n = (int)fabs((yyvsp[(3) - (5)].d));
int n = (int)fabs((yyvsp[(3) - (5)].d));
if(n){ // we accept n==0 to easily disable layers
if(n){ // we accept n==0 to easily disable layers
...
@@ -11005,7 +11007,7 @@ yyreduce:
...
@@ -11005,7 +11007,7 @@ yyreduce:
break;
break;
case 331:
case 331:
#line 42
7
8 "Gmsh.y"
#line 428
0
"Gmsh.y"
{
{
extr.mesh.ExtrudeMesh = true;
extr.mesh.ExtrudeMesh = true;
extr.mesh.NbLayer = List_Nbr((yyvsp[(3) - (7)].l));
extr.mesh.NbLayer = List_Nbr((yyvsp[(3) - (7)].l));
...
@@ -11028,7 +11030,7 @@ yyreduce:
...
@@ -11028,7 +11030,7 @@ yyreduce:
break;
break;
case 332:
case 332:
#line 4
298
"Gmsh.y"
#line 4
300
"Gmsh.y"
{
{
yymsg(1, "Explicit region numbers in layers are deprecated");
yymsg(1, "Explicit region numbers in layers are deprecated");
extr.mesh.ExtrudeMesh = true;
extr.mesh.ExtrudeMesh = true;
...
@@ -11054,42 +11056,42 @@ yyreduce:
...
@@ -11054,42 +11056,42 @@ yyreduce:
break;
break;
case 333:
case 333:
#line 432
2
"Gmsh.y"
#line 432
4
"Gmsh.y"
{
{
extr.mesh.ScaleLast = true;
extr.mesh.ScaleLast = true;
;}
;}
break;
break;
case 334:
case 334:
#line 432
6
"Gmsh.y"
#line 432
8
"Gmsh.y"
{
{
extr.mesh.Recombine = true;
extr.mesh.Recombine = true;
;}
;}
break;
break;
case 335:
case 335:
#line 433
0
"Gmsh.y"
#line 433
2
"Gmsh.y"
{
{
extr.mesh.Recombine = (yyvsp[(2) - (3)].d) ? true : false;
extr.mesh.Recombine = (yyvsp[(2) - (3)].d) ? true : false;
;}
;}
break;
break;
case 336:
case 336:
#line 433
4
"Gmsh.y"
#line 433
6
"Gmsh.y"
{
{
yymsg(0, "Keyword 'QuadTriSngl' deprecated. Use 'QuadTriNoNewVerts' instead.");
yymsg(0, "Keyword 'QuadTriSngl' deprecated. Use 'QuadTriNoNewVerts' instead.");
;}
;}
break;
break;
case 337:
case 337:
#line 43
38
"Gmsh.y"
#line 43
40
"Gmsh.y"
{
{
yymsg(0, "Keyword 'QuadTriSngl' deprecated. Use 'QuadTriNoNewVerts' instead.");
yymsg(0, "Keyword 'QuadTriSngl' deprecated. Use 'QuadTriNoNewVerts' instead.");
;}
;}
break;
break;
case 338:
case 338:
#line 434
2
"Gmsh.y"
#line 434
4
"Gmsh.y"
{
{
yymsg(0, "Method 'QuadTriDbl' deprecated. Use 'QuadTriAddVerts' instead, "
yymsg(0, "Method 'QuadTriDbl' deprecated. Use 'QuadTriAddVerts' instead, "
"which has no requirement for the number of extrusion layers and meshes "
"which has no requirement for the number of extrusion layers and meshes "
...
@@ -11098,7 +11100,7 @@ yyreduce:
...
@@ -11098,7 +11100,7 @@ yyreduce:
break;
break;
case 339:
case 339:
#line 43
48
"Gmsh.y"
#line 43
50
"Gmsh.y"
{
{
yymsg(0, "Method 'QuadTriDbl' deprecated. Use 'QuadTriAddVerts' instead, "
yymsg(0, "Method 'QuadTriDbl' deprecated. Use 'QuadTriAddVerts' instead, "
"which has no requirement for the number of extrusion layers and meshes "
"which has no requirement for the number of extrusion layers and meshes "
...
@@ -11107,35 +11109,35 @@ yyreduce:
...
@@ -11107,35 +11109,35 @@ yyreduce:
break;
break;
case 340:
case 340:
#line 435
4
"Gmsh.y"
#line 435
6
"Gmsh.y"
{
{
extr.mesh.QuadToTri = QUADTRI_ADDVERTS_1;
extr.mesh.QuadToTri = QUADTRI_ADDVERTS_1;
;}
;}
break;
break;
case 341:
case 341:
#line 43
58
"Gmsh.y"
#line 43
60
"Gmsh.y"
{
{
extr.mesh.QuadToTri = QUADTRI_ADDVERTS_1_RECOMB;
extr.mesh.QuadToTri = QUADTRI_ADDVERTS_1_RECOMB;
;}
;}
break;
break;
case 342:
case 342:
#line 436
2
"Gmsh.y"
#line 436
4
"Gmsh.y"
{
{
extr.mesh.QuadToTri = QUADTRI_NOVERTS_1;
extr.mesh.QuadToTri = QUADTRI_NOVERTS_1;
;}
;}
break;
break;
case 343:
case 343:
#line 436
6
"Gmsh.y"
#line 436
8
"Gmsh.y"
{
{
extr.mesh.QuadToTri = QUADTRI_NOVERTS_1_RECOMB;
extr.mesh.QuadToTri = QUADTRI_NOVERTS_1_RECOMB;
;}
;}
break;
break;
case 344:
case 344:
#line 437
0
"Gmsh.y"
#line 437
2
"Gmsh.y"
{
{
int num = (int)(yyvsp[(3) - (9)].d);
int num = (int)(yyvsp[(3) - (9)].d);
if(FindSurface(num)){
if(FindSurface(num)){
...
@@ -11157,7 +11159,7 @@ yyreduce:
...
@@ -11157,7 +11159,7 @@ yyreduce:
break;
break;
case 345:
case 345:
#line 43
8
9 "Gmsh.y"
#line 439
1
"Gmsh.y"
{
{
if(!strcmp((yyvsp[(2) - (6)].c), "Index"))
if(!strcmp((yyvsp[(2) - (6)].c), "Index"))
extr.mesh.BoundaryLayerIndex = (yyvsp[(4) - (6)].d);
extr.mesh.BoundaryLayerIndex = (yyvsp[(4) - (6)].d);
...
@@ -11168,47 +11170,47 @@ yyreduce:
...
@@ -11168,47 +11170,47 @@ yyreduce:
break;
break;
case 346:
case 346:
#line 440
1
"Gmsh.y"
#line 440
3
"Gmsh.y"
{ (yyval.i) = OCC_Internals::Union; ;}
{ (yyval.i) = OCC_Internals::Union; ;}
break;
break;
case 347:
case 347:
#line 440
2
"Gmsh.y"
#line 440
4
"Gmsh.y"
{ (yyval.i) = OCC_Internals::Intersection; ;}
{ (yyval.i) = OCC_Internals::Intersection; ;}
break;
break;
case 348:
case 348:
#line 440
3
"Gmsh.y"
#line 440
5
"Gmsh.y"
{ (yyval.i) = OCC_Internals::Difference; ;}
{ (yyval.i) = OCC_Internals::Difference; ;}
break;
break;
case 349:
case 349:
#line 440
4
"Gmsh.y"
#line 440
6
"Gmsh.y"
{ (yyval.i) = OCC_Internals::Section; ;}
{ (yyval.i) = OCC_Internals::Section; ;}
break;
break;
case 350:
case 350:
#line 440
5
"Gmsh.y"
#line 440
7
"Gmsh.y"
{ (yyval.i) = OCC_Internals::Fragments; ;}
{ (yyval.i) = OCC_Internals::Fragments; ;}
break;
break;
case 351:
case 351:
#line 44
09
"Gmsh.y"
#line 44
11
"Gmsh.y"
{ (yyval.i) = 0; ;}
{ (yyval.i) = 0; ;}
break;
break;
case 352:
case 352:
#line 441
0
"Gmsh.y"
#line 441
2
"Gmsh.y"
{ (yyval.i) = 1; ;}
{ (yyval.i) = 1; ;}
break;
break;
case 353:
case 353:
#line 441
1
"Gmsh.y"
#line 441
3
"Gmsh.y"
{ (yyval.i) = (yyvsp[(2) - (3)].d); ;}
{ (yyval.i) = (yyvsp[(2) - (3)].d); ;}
break;
break;
case 354:
case 354:
#line 441
6
"Gmsh.y"
#line 441
8
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
if(factory == "OpenCASCADE"){
if(factory == "OpenCASCADE"){
...
@@ -11244,7 +11246,7 @@ yyreduce:
...
@@ -11244,7 +11246,7 @@ yyreduce:
break;
break;
case 355:
case 355:
#line 44
49
"Gmsh.y"
#line 44
51
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(Shape));
(yyval.l) = List_Create(2, 1, sizeof(Shape));
if(factory == "OpenCASCADE"){
if(factory == "OpenCASCADE"){
...
@@ -11270,7 +11272,7 @@ yyreduce:
...
@@ -11270,7 +11272,7 @@ yyreduce:
break;
break;
case 356:
case 356:
#line 447
6
"Gmsh.y"
#line 447
8
"Gmsh.y"
{
{
if(factory == "OpenCASCADE"){
if(factory == "OpenCASCADE"){
std::vector<int> shape[4], tool[4];
std::vector<int> shape[4], tool[4];
...
@@ -11292,14 +11294,14 @@ yyreduce:
...
@@ -11292,14 +11294,14 @@ yyreduce:
break;
break;
case 357:
case 357:
#line 4
498
"Gmsh.y"
#line 4
500
"Gmsh.y"
{
{
(yyval.v)[0] = (yyval.v)[1] = 1.;
(yyval.v)[0] = (yyval.v)[1] = 1.;
;}
;}
break;
break;
case 358:
case 358:
#line 450
2
"Gmsh.y"
#line 450
4
"Gmsh.y"
{
{
if(!strcmp((yyvsp[(2) - (3)].c), "Progression") || !strcmp((yyvsp[(2) - (3)].c), "Power"))
if(!strcmp((yyvsp[(2) - (3)].c), "Progression") || !strcmp((yyvsp[(2) - (3)].c), "Power"))
(yyval.v)[0] = 1.;
(yyval.v)[0] = 1.;
...
@@ -11315,14 +11317,14 @@ yyreduce:
...
@@ -11315,14 +11317,14 @@ yyreduce:
break;
break;
case 359:
case 359:
#line 451
7
"Gmsh.y"
#line 451
9
"Gmsh.y"
{
{
(yyval.i) = -1; // left
(yyval.i) = -1; // left
;}
;}
break;
break;
case 360:
case 360:
#line 452
1
"Gmsh.y"
#line 452
3
"Gmsh.y"
{
{
if(!strcmp((yyvsp[(1) - (1)].c), "Right"))
if(!strcmp((yyvsp[(1) - (1)].c), "Right"))
(yyval.i) = 1;
(yyval.i) = 1;
...
@@ -11339,49 +11341,49 @@ yyreduce:
...
@@ -11339,49 +11341,49 @@ yyreduce:
break;
break;
case 361:
case 361:
#line 453
7
"Gmsh.y"
#line 453
9
"Gmsh.y"
{
{
(yyval.l) = List_Create(1, 1, sizeof(double));
(yyval.l) = List_Create(1, 1, sizeof(double));
;}
;}
break;
break;
case 362:
case 362:
#line 454
1
"Gmsh.y"
#line 454
3
"Gmsh.y"
{
{
(yyval.l) = (yyvsp[(2) - (2)].l);
(yyval.l) = (yyvsp[(2) - (2)].l);
;}
;}
break;
break;
case 363:
case 363:
#line 454
6
"Gmsh.y"
#line 454
8
"Gmsh.y"
{
{
(yyval.i) = 45;
(yyval.i) = 45;
;}
;}
break;
break;
case 364:
case 364:
#line 455
0
"Gmsh.y"
#line 455
2
"Gmsh.y"
{
{
(yyval.i) = (int)(yyvsp[(2) - (2)].d);
(yyval.i) = (int)(yyvsp[(2) - (2)].d);
;}
;}
break;
break;
case 365:
case 365:
#line 455
6
"Gmsh.y"
#line 455
8
"Gmsh.y"
{
{
(yyval.l) = List_Create(1, 1, sizeof(double));
(yyval.l) = List_Create(1, 1, sizeof(double));
;}
;}
break;
break;
case 366:
case 366:
#line 456
0
"Gmsh.y"
#line 456
2
"Gmsh.y"
{
{
(yyval.l) = (yyvsp[(2) - (2)].l);
(yyval.l) = (yyvsp[(2) - (2)].l);
;}
;}
break;
break;
case 367:
case 367:
#line 456
7
"Gmsh.y"
#line 456
9
"Gmsh.y"
{
{
for(int i = 0; i < List_Nbr((yyvsp[(3) - (6)].l)); i++){
for(int i = 0; i < List_Nbr((yyvsp[(3) - (6)].l)); i++){
double d;
double d;
...
@@ -11397,7 +11399,7 @@ yyreduce:
...
@@ -11397,7 +11399,7 @@ yyreduce:
break;
break;
case 368:
case 368:
#line 458
0
"Gmsh.y"
#line 458
2
"Gmsh.y"
{
{
int type = (int)(yyvsp[(6) - (7)].v)[0];
int type = (int)(yyvsp[(6) - (7)].v)[0];
double coef = fabs((yyvsp[(6) - (7)].v)[1]);
double coef = fabs((yyvsp[(6) - (7)].v)[1]);
...
@@ -11456,7 +11458,7 @@ yyreduce:
...
@@ -11456,7 +11458,7 @@ yyreduce:
break;
break;
case 369:
case 369:
#line 463
6
"Gmsh.y"
#line 463
8
"Gmsh.y"
{
{
int k = List_Nbr((yyvsp[(4) - (6)].l));
int k = List_Nbr((yyvsp[(4) - (6)].l));
if(k != 0 && k != 3 && k != 4){
if(k != 0 && k != 3 && k != 4){
...
@@ -11529,7 +11531,7 @@ yyreduce:
...
@@ -11529,7 +11531,7 @@ yyreduce:
break;
break;
case 370:
case 370:
#line 470
6
"Gmsh.y"
#line 470
8
"Gmsh.y"
{
{
yymsg(1, "Elliptic Surface is deprecated: use Transfinite instead (with smoothing)");
yymsg(1, "Elliptic Surface is deprecated: use Transfinite instead (with smoothing)");
List_Delete((yyvsp[(7) - (8)].l));
List_Delete((yyvsp[(7) - (8)].l));
...
@@ -11537,7 +11539,7 @@ yyreduce:
...
@@ -11537,7 +11539,7 @@ yyreduce:
break;
break;
case 371:
case 371:
#line 471
1
"Gmsh.y"
#line 471
3
"Gmsh.y"
{
{
int k = List_Nbr((yyvsp[(4) - (5)].l));
int k = List_Nbr((yyvsp[(4) - (5)].l));
if(k != 0 && k != 6 && k != 8){
if(k != 0 && k != 6 && k != 8){
...
@@ -11607,7 +11609,7 @@ yyreduce:
...
@@ -11607,7 +11609,7 @@ yyreduce:
break;
break;
case 372:
case 372:
#line 47
7
8 "Gmsh.y"
#line 478
0
"Gmsh.y"
{
{
if(!(yyvsp[(2) - (3)].l)){
if(!(yyvsp[(2) - (3)].l)){
List_T *tmp = Tree2List(GModel::current()->getGEOInternals()->Volumes);
List_T *tmp = Tree2List(GModel::current()->getGEOInternals()->Volumes);
...
@@ -11646,7 +11648,7 @@ yyreduce:
...
@@ -11646,7 +11648,7 @@ yyreduce:
break;
break;
case 373:
case 373:
#line 481
4
"Gmsh.y"
#line 481
6
"Gmsh.y"
{
{
for(int i = 0; i < List_Nbr((yyvsp[(4) - (8)].l)); i++){
for(int i = 0; i < List_Nbr((yyvsp[(4) - (8)].l)); i++){
double d;
double d;
...
@@ -11657,7 +11659,7 @@ yyreduce:
...
@@ -11657,7 +11659,7 @@ yyreduce:
break;
break;
case 374:
case 374:
#line 482
2
"Gmsh.y"
#line 482
4
"Gmsh.y"
{
{
if(!(yyvsp[(3) - (5)].l)){
if(!(yyvsp[(3) - (5)].l)){
List_T *tmp = Tree2List(GModel::current()->getGEOInternals()->Surfaces);
List_T *tmp = Tree2List(GModel::current()->getGEOInternals()->Surfaces);
...
@@ -11703,7 +11705,7 @@ yyreduce:
...
@@ -11703,7 +11705,7 @@ yyreduce:
break;
break;
case 375:
case 375:
#line 486
5
"Gmsh.y"
#line 486
7
"Gmsh.y"
{
{
if(!(yyvsp[(3) - (4)].l)){
if(!(yyvsp[(3) - (4)].l)){
List_T *tmp = Tree2List(GModel::current()->getGEOInternals()->Volumes);
List_T *tmp = Tree2List(GModel::current()->getGEOInternals()->Volumes);
...
@@ -11745,7 +11747,7 @@ yyreduce:
...
@@ -11745,7 +11747,7 @@ yyreduce:
break;
break;
case 376:
case 376:
#line 490
4
"Gmsh.y"
#line 490
6
"Gmsh.y"
{
{
for(int i = 0; i < List_Nbr((yyvsp[(3) - (6)].l)); i++){
for(int i = 0; i < List_Nbr((yyvsp[(3) - (6)].l)); i++){
double d;
double d;
...
@@ -11768,7 +11770,7 @@ yyreduce:
...
@@ -11768,7 +11770,7 @@ yyreduce:
break;
break;
case 377:
case 377:
#line 492
5
"Gmsh.y"
#line 492
7
"Gmsh.y"
{
{
if (List_Nbr((yyvsp[(4) - (11)].l)) != List_Nbr((yyvsp[(8) - (11)].l))){
if (List_Nbr((yyvsp[(4) - (11)].l)) != List_Nbr((yyvsp[(8) - (11)].l))){
yymsg(0, "Number of master lines (%d) different from number of "
yymsg(0, "Number of master lines (%d) different from number of "
...
@@ -11802,7 +11804,7 @@ yyreduce:
...
@@ -11802,7 +11804,7 @@ yyreduce:
break;
break;
case 378:
case 378:
#line 495
7
"Gmsh.y"
#line 495
9
"Gmsh.y"
{
{
if (List_Nbr((yyvsp[(4) - (11)].l)) != List_Nbr((yyvsp[(8) - (11)].l))){
if (List_Nbr((yyvsp[(4) - (11)].l)) != List_Nbr((yyvsp[(8) - (11)].l))){
yymsg(0, "Number of master faces (%d) different from number of "
yymsg(0, "Number of master faces (%d) different from number of "
...
@@ -11831,7 +11833,7 @@ yyreduce:
...
@@ -11831,7 +11833,7 @@ yyreduce:
break;
break;
case 379:
case 379:
#line 498
4
"Gmsh.y"
#line 498
6
"Gmsh.y"
{
{
if (List_Nbr((yyvsp[(4) - (18)].l)) != List_Nbr((yyvsp[(8) - (18)].l))){
if (List_Nbr((yyvsp[(4) - (18)].l)) != List_Nbr((yyvsp[(8) - (18)].l))){
yymsg(0, "Number of master edges (%d) different from number of "
yymsg(0, "Number of master edges (%d) different from number of "
...
@@ -11859,7 +11861,7 @@ yyreduce:
...
@@ -11859,7 +11861,7 @@ yyreduce:
break;
break;
case 380:
case 380:
#line 501
0
"Gmsh.y"
#line 501
2
"Gmsh.y"
{
{
if (List_Nbr((yyvsp[(4) - (18)].l)) != List_Nbr((yyvsp[(8) - (18)].l))){
if (List_Nbr((yyvsp[(4) - (18)].l)) != List_Nbr((yyvsp[(8) - (18)].l))){
yymsg(0, "Number of master faces (%d) different from number of "
yymsg(0, "Number of master faces (%d) different from number of "
...
@@ -11887,7 +11889,7 @@ yyreduce:
...
@@ -11887,7 +11889,7 @@ yyreduce:
break;
break;
case 381:
case 381:
#line 503
6
"Gmsh.y"
#line 503
8
"Gmsh.y"
{
{
if (List_Nbr((yyvsp[(4) - (12)].l)) != List_Nbr((yyvsp[(8) - (12)].l))){
if (List_Nbr((yyvsp[(4) - (12)].l)) != List_Nbr((yyvsp[(8) - (12)].l))){
yymsg(0, "Number of master edges (%d) different from number of "
yymsg(0, "Number of master edges (%d) different from number of "
...
@@ -11915,7 +11917,7 @@ yyreduce:
...
@@ -11915,7 +11917,7 @@ yyreduce:
break;
break;
case 382:
case 382:
#line 506
2
"Gmsh.y"
#line 506
4
"Gmsh.y"
{
{
if (List_Nbr((yyvsp[(4) - (12)].l)) != List_Nbr((yyvsp[(8) - (12)].l))){
if (List_Nbr((yyvsp[(4) - (12)].l)) != List_Nbr((yyvsp[(8) - (12)].l))){
yymsg(0, "Number of master faces (%d) different from number of "
yymsg(0, "Number of master faces (%d) different from number of "
...
@@ -11943,7 +11945,7 @@ yyreduce:
...
@@ -11943,7 +11945,7 @@ yyreduce:
break;
break;
case 383:
case 383:
#line 50
88
"Gmsh.y"
#line 50
90
"Gmsh.y"
{
{
if (List_Nbr((yyvsp[(5) - (12)].l)) != List_Nbr((yyvsp[(10) - (12)].l))){
if (List_Nbr((yyvsp[(5) - (12)].l)) != List_Nbr((yyvsp[(10) - (12)].l))){
yymsg(0, "Number of master surface edges (%d) different from number of "
yymsg(0, "Number of master surface edges (%d) different from number of "
...
@@ -11967,7 +11969,7 @@ yyreduce:
...
@@ -11967,7 +11969,7 @@ yyreduce:
break;
break;
case 384:
case 384:
#line 51
09
"Gmsh.y"
#line 51
11
"Gmsh.y"
{
{
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(3) - (10)].l), tags);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(3) - (10)].l), tags);
addEmbedded(0, tags, 2, (int)(yyvsp[(8) - (10)].d));
addEmbedded(0, tags, 2, (int)(yyvsp[(8) - (10)].d));
...
@@ -11976,7 +11978,7 @@ yyreduce:
...
@@ -11976,7 +11978,7 @@ yyreduce:
break;
break;
case 385:
case 385:
#line 511
5
"Gmsh.y"
#line 511
7
"Gmsh.y"
{
{
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(3) - (10)].l), tags);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(3) - (10)].l), tags);
addEmbedded(1, tags, 2, (int)(yyvsp[(8) - (10)].d));
addEmbedded(1, tags, 2, (int)(yyvsp[(8) - (10)].d));
...
@@ -11985,7 +11987,7 @@ yyreduce:
...
@@ -11985,7 +11987,7 @@ yyreduce:
break;
break;
case 386:
case 386:
#line 512
1
"Gmsh.y"
#line 512
3
"Gmsh.y"
{
{
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(3) - (10)].l), tags);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(3) - (10)].l), tags);
addEmbedded(0, tags, 3, (int)(yyvsp[(8) - (10)].d));
addEmbedded(0, tags, 3, (int)(yyvsp[(8) - (10)].d));
...
@@ -11994,7 +11996,7 @@ yyreduce:
...
@@ -11994,7 +11996,7 @@ yyreduce:
break;
break;
case 387:
case 387:
#line 512
7
"Gmsh.y"
#line 512
9
"Gmsh.y"
{
{
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(3) - (10)].l), tags);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(3) - (10)].l), tags);
addEmbedded(1, tags, 3, (int)(yyvsp[(8) - (10)].d));
addEmbedded(1, tags, 3, (int)(yyvsp[(8) - (10)].d));
...
@@ -12003,7 +12005,7 @@ yyreduce:
...
@@ -12003,7 +12005,7 @@ yyreduce:
break;
break;
case 388:
case 388:
#line 513
3
"Gmsh.y"
#line 513
5
"Gmsh.y"
{
{
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(3) - (10)].l), tags);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(3) - (10)].l), tags);
addEmbedded(2, tags, 3, (int)(yyvsp[(8) - (10)].d));
addEmbedded(2, tags, 3, (int)(yyvsp[(8) - (10)].d));
...
@@ -12012,7 +12014,7 @@ yyreduce:
...
@@ -12012,7 +12014,7 @@ yyreduce:
break;
break;
case 389:
case 389:
#line 51
39
"Gmsh.y"
#line 51
41
"Gmsh.y"
{
{
if(!(yyvsp[(3) - (4)].l)){
if(!(yyvsp[(3) - (4)].l)){
List_T *tmp = Tree2List(GModel::current()->getGEOInternals()->Surfaces);
List_T *tmp = Tree2List(GModel::current()->getGEOInternals()->Surfaces);
...
@@ -12054,7 +12056,7 @@ yyreduce:
...
@@ -12054,7 +12056,7 @@ yyreduce:
break;
break;
case 390:
case 390:
#line 51
7
8 "Gmsh.y"
#line 518
0
"Gmsh.y"
{
{
if(!(yyvsp[(3) - (4)].l)){
if(!(yyvsp[(3) - (4)].l)){
List_T *tmp = Tree2List(GModel::current()->getGEOInternals()->Curves);
List_T *tmp = Tree2List(GModel::current()->getGEOInternals()->Curves);
...
@@ -12096,7 +12098,7 @@ yyreduce:
...
@@ -12096,7 +12098,7 @@ yyreduce:
break;
break;
case 391:
case 391:
#line 521
7
"Gmsh.y"
#line 521
9
"Gmsh.y"
{
{
if(!(yyvsp[(3) - (4)].l)){
if(!(yyvsp[(3) - (4)].l)){
for(GModel::viter it = GModel::current()->firstVertex();
for(GModel::viter it = GModel::current()->firstVertex();
...
@@ -12116,7 +12118,7 @@ yyreduce:
...
@@ -12116,7 +12118,7 @@ yyreduce:
break;
break;
case 392:
case 392:
#line 523
4
"Gmsh.y"
#line 523
6
"Gmsh.y"
{
{
if(!(yyvsp[(3) - (4)].l)){
if(!(yyvsp[(3) - (4)].l)){
for(GModel::eiter it = GModel::current()->firstEdge();
for(GModel::eiter it = GModel::current()->firstEdge();
...
@@ -12136,7 +12138,7 @@ yyreduce:
...
@@ -12136,7 +12138,7 @@ yyreduce:
break;
break;
case 393:
case 393:
#line 525
1
"Gmsh.y"
#line 525
3
"Gmsh.y"
{
{
if(!(yyvsp[(3) - (4)].l)){
if(!(yyvsp[(3) - (4)].l)){
for(GModel::fiter it = GModel::current()->firstFace();
for(GModel::fiter it = GModel::current()->firstFace();
...
@@ -12156,7 +12158,7 @@ yyreduce:
...
@@ -12156,7 +12158,7 @@ yyreduce:
break;
break;
case 394:
case 394:
#line 52
68
"Gmsh.y"
#line 52
70
"Gmsh.y"
{
{
for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){
for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){
double dnum;
double dnum;
...
@@ -12171,7 +12173,7 @@ yyreduce:
...
@@ -12171,7 +12173,7 @@ yyreduce:
break;
break;
case 395:
case 395:
#line 528
0
"Gmsh.y"
#line 528
2
"Gmsh.y"
{
{
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(3) - (4)].l), tags);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(3) - (4)].l), tags);
GModel::current()->getGEOInternals()->setCompoundMesh(1, tags);
GModel::current()->getGEOInternals()->setCompoundMesh(1, tags);
...
@@ -12180,7 +12182,7 @@ yyreduce:
...
@@ -12180,7 +12182,7 @@ yyreduce:
break;
break;
case 396:
case 396:
#line 528
6
"Gmsh.y"
#line 528
8
"Gmsh.y"
{
{
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(3) - (4)].l), tags);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(3) - (4)].l), tags);
GModel::current()->getGEOInternals()->setCompoundMesh(2, tags);
GModel::current()->getGEOInternals()->setCompoundMesh(2, tags);
...
@@ -12189,7 +12191,7 @@ yyreduce:
...
@@ -12189,7 +12191,7 @@ yyreduce:
break;
break;
case 397:
case 397:
#line 529
2
"Gmsh.y"
#line 529
4
"Gmsh.y"
{
{
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(3) - (4)].l), tags);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(3) - (4)].l), tags);
GModel::current()->getGEOInternals()->setCompoundMesh(3, tags);
GModel::current()->getGEOInternals()->setCompoundMesh(3, tags);
...
@@ -12198,14 +12200,14 @@ yyreduce:
...
@@ -12198,14 +12200,14 @@ yyreduce:
break;
break;
case 398:
case 398:
#line 530
4
"Gmsh.y"
#line 530
6
"Gmsh.y"
{
{
GModel::current()->getGEOInternals()->removeAllDuplicates();
GModel::current()->getGEOInternals()->removeAllDuplicates();
;}
;}
break;
break;
case 399:
case 399:
#line 530
8
"Gmsh.y"
#line 53
1
0 "Gmsh.y"
{
{
if(!strcmp((yyvsp[(2) - (3)].c), "Geometry"))
if(!strcmp((yyvsp[(2) - (3)].c), "Geometry"))
GModel::current()->getGEOInternals()->removeAllDuplicates();
GModel::current()->getGEOInternals()->removeAllDuplicates();
...
@@ -12218,7 +12220,7 @@ yyreduce:
...
@@ -12218,7 +12220,7 @@ yyreduce:
break;
break;
case 400:
case 400:
#line 53
18
"Gmsh.y"
#line 53
20
"Gmsh.y"
{
{
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(4) - (6)].l), tags);
std::vector<int> tags; ListOfDouble2Vector((yyvsp[(4) - (6)].l), tags);
GModel::current()->getGEOInternals()->mergeVertices(tags);
GModel::current()->getGEOInternals()->mergeVertices(tags);
...
@@ -12227,22 +12229,22 @@ yyreduce:
...
@@ -12227,22 +12229,22 @@ yyreduce:
break;
break;
case 401:
case 401:
#line 53
28
"Gmsh.y"
#line 53
30
"Gmsh.y"
{ (yyval.c) = (char*)"Homology"; ;}
{ (yyval.c) = (char*)"Homology"; ;}
break;
break;
case 402:
case 402:
#line 53
29
"Gmsh.y"
#line 53
31
"Gmsh.y"
{ (yyval.c) = (char*)"Cohomology"; ;}
{ (yyval.c) = (char*)"Cohomology"; ;}
break;
break;
case 403:
case 403:
#line 533
0
"Gmsh.y"
#line 533
2
"Gmsh.y"
{ (yyval.c) = (char*)"Betti"; ;}
{ (yyval.c) = (char*)"Betti"; ;}
break;
break;
case 404:
case 404:
#line 533
5
"Gmsh.y"
#line 533
7
"Gmsh.y"
{
{
std::vector<int> domain, subdomain, dim;
std::vector<int> domain, subdomain, dim;
for(int i = 0; i < 4; i++) dim.push_back(i);
for(int i = 0; i < 4; i++) dim.push_back(i);
...
@@ -12251,7 +12253,7 @@ yyreduce:
...
@@ -12251,7 +12253,7 @@ yyreduce:
break;
break;
case 405:
case 405:
#line 534
1
"Gmsh.y"
#line 534
3
"Gmsh.y"
{
{
std::vector<int> domain, subdomain, dim;
std::vector<int> domain, subdomain, dim;
for(int i = 0; i < List_Nbr((yyvsp[(3) - (5)].l)); i++){
for(int i = 0; i < List_Nbr((yyvsp[(3) - (5)].l)); i++){
...
@@ -12266,7 +12268,7 @@ yyreduce:
...
@@ -12266,7 +12268,7 @@ yyreduce:
break;
break;
case 406:
case 406:
#line 535
3
"Gmsh.y"
#line 535
5
"Gmsh.y"
{
{
std::vector<int> domain, subdomain, dim;
std::vector<int> domain, subdomain, dim;
for(int i = 0; i < List_Nbr((yyvsp[(3) - (7)].l)); i++){
for(int i = 0; i < List_Nbr((yyvsp[(3) - (7)].l)); i++){
...
@@ -12287,7 +12289,7 @@ yyreduce:
...
@@ -12287,7 +12289,7 @@ yyreduce:
break;
break;
case 407:
case 407:
#line 537
1
"Gmsh.y"
#line 537
3
"Gmsh.y"
{
{
std::vector<int> domain, subdomain, dim;
std::vector<int> domain, subdomain, dim;
for(int i = 0; i < List_Nbr((yyvsp[(6) - (10)].l)); i++){
for(int i = 0; i < List_Nbr((yyvsp[(6) - (10)].l)); i++){
...
@@ -12313,47 +12315,47 @@ yyreduce:
...
@@ -12313,47 +12315,47 @@ yyreduce:
break;
break;
case 408:
case 408:
#line 5
398
"Gmsh.y"
#line 5
400
"Gmsh.y"
{ (yyval.d) = (yyvsp[(1) - (1)].d); ;}
{ (yyval.d) = (yyvsp[(1) - (1)].d); ;}
break;
break;
case 409:
case 409:
#line 5
399
"Gmsh.y"
#line 5
401
"Gmsh.y"
{ (yyval.d) = (yyvsp[(2) - (3)].d); ;}
{ (yyval.d) = (yyvsp[(2) - (3)].d); ;}
break;
break;
case 410:
case 410:
#line 540
0
"Gmsh.y"
#line 540
2
"Gmsh.y"
{ (yyval.d) = -(yyvsp[(2) - (2)].d); ;}
{ (yyval.d) = -(yyvsp[(2) - (2)].d); ;}
break;
break;
case 411:
case 411:
#line 540
1
"Gmsh.y"
#line 540
3
"Gmsh.y"
{ (yyval.d) = (yyvsp[(2) - (2)].d); ;}
{ (yyval.d) = (yyvsp[(2) - (2)].d); ;}
break;
break;
case 412:
case 412:
#line 540
2
"Gmsh.y"
#line 540
4
"Gmsh.y"
{ (yyval.d) = !(yyvsp[(2) - (2)].d); ;}
{ (yyval.d) = !(yyvsp[(2) - (2)].d); ;}
break;
break;
case 413:
case 413:
#line 540
3
"Gmsh.y"
#line 540
5
"Gmsh.y"
{ (yyval.d) = (yyvsp[(1) - (3)].d) - (yyvsp[(3) - (3)].d); ;}
{ (yyval.d) = (yyvsp[(1) - (3)].d) - (yyvsp[(3) - (3)].d); ;}
break;
break;
case 414:
case 414:
#line 540
4
"Gmsh.y"
#line 540
6
"Gmsh.y"
{ (yyval.d) = (yyvsp[(1) - (3)].d) + (yyvsp[(3) - (3)].d); ;}
{ (yyval.d) = (yyvsp[(1) - (3)].d) + (yyvsp[(3) - (3)].d); ;}
break;
break;
case 415:
case 415:
#line 540
5
"Gmsh.y"
#line 540
7
"Gmsh.y"
{ (yyval.d) = (yyvsp[(1) - (3)].d) * (yyvsp[(3) - (3)].d); ;}
{ (yyval.d) = (yyvsp[(1) - (3)].d) * (yyvsp[(3) - (3)].d); ;}
break;
break;
case 416:
case 416:
#line 540
7
"Gmsh.y"
#line 540
9
"Gmsh.y"
{
{
if(!(yyvsp[(3) - (3)].d))
if(!(yyvsp[(3) - (3)].d))
yymsg(0, "Division by zero in '%g / %g'", (yyvsp[(1) - (3)].d), (yyvsp[(3) - (3)].d));
yymsg(0, "Division by zero in '%g / %g'", (yyvsp[(1) - (3)].d), (yyvsp[(3) - (3)].d));
...
@@ -12363,232 +12365,232 @@ yyreduce:
...
@@ -12363,232 +12365,232 @@ yyreduce:
break;
break;
case 417:
case 417:
#line 541
3
"Gmsh.y"
#line 541
5
"Gmsh.y"
{ (yyval.d) = (int)(yyvsp[(1) - (3)].d) % (int)(yyvsp[(3) - (3)].d); ;}
{ (yyval.d) = (int)(yyvsp[(1) - (3)].d) % (int)(yyvsp[(3) - (3)].d); ;}
break;
break;
case 418:
case 418:
#line 541
4
"Gmsh.y"
#line 541
6
"Gmsh.y"
{ (yyval.d) = pow((yyvsp[(1) - (3)].d), (yyvsp[(3) - (3)].d)); ;}
{ (yyval.d) = pow((yyvsp[(1) - (3)].d), (yyvsp[(3) - (3)].d)); ;}
break;
break;
case 419:
case 419:
#line 541
5
"Gmsh.y"
#line 541
7
"Gmsh.y"
{ (yyval.d) = (yyvsp[(1) - (3)].d) < (yyvsp[(3) - (3)].d); ;}
{ (yyval.d) = (yyvsp[(1) - (3)].d) < (yyvsp[(3) - (3)].d); ;}
break;
break;
case 420:
case 420:
#line 541
6
"Gmsh.y"
#line 541
8
"Gmsh.y"
{ (yyval.d) = (yyvsp[(1) - (3)].d) > (yyvsp[(3) - (3)].d); ;}
{ (yyval.d) = (yyvsp[(1) - (3)].d) > (yyvsp[(3) - (3)].d); ;}
break;
break;
case 421:
case 421:
#line 541
7
"Gmsh.y"
#line 541
9
"Gmsh.y"
{ (yyval.d) = (yyvsp[(1) - (3)].d) <= (yyvsp[(3) - (3)].d); ;}
{ (yyval.d) = (yyvsp[(1) - (3)].d) <= (yyvsp[(3) - (3)].d); ;}
break;
break;
case 422:
case 422:
#line 54
18
"Gmsh.y"
#line 54
20
"Gmsh.y"
{ (yyval.d) = (yyvsp[(1) - (3)].d) >= (yyvsp[(3) - (3)].d); ;}
{ (yyval.d) = (yyvsp[(1) - (3)].d) >= (yyvsp[(3) - (3)].d); ;}
break;
break;
case 423:
case 423:
#line 541
9
"Gmsh.y"
#line 54
2
1 "Gmsh.y"
{ (yyval.d) = (yyvsp[(1) - (3)].d) == (yyvsp[(3) - (3)].d); ;}
{ (yyval.d) = (yyvsp[(1) - (3)].d) == (yyvsp[(3) - (3)].d); ;}
break;
break;
case 424:
case 424:
#line 542
0
"Gmsh.y"
#line 542
2
"Gmsh.y"
{ (yyval.d) = (yyvsp[(1) - (3)].d) != (yyvsp[(3) - (3)].d); ;}
{ (yyval.d) = (yyvsp[(1) - (3)].d) != (yyvsp[(3) - (3)].d); ;}
break;
break;
case 425:
case 425:
#line 542
1
"Gmsh.y"
#line 542
3
"Gmsh.y"
{ (yyval.d) = (yyvsp[(1) - (3)].d) && (yyvsp[(3) - (3)].d); ;}
{ (yyval.d) = (yyvsp[(1) - (3)].d) && (yyvsp[(3) - (3)].d); ;}
break;
break;
case 426:
case 426:
#line 542
2
"Gmsh.y"
#line 542
4
"Gmsh.y"
{ (yyval.d) = (yyvsp[(1) - (3)].d) || (yyvsp[(3) - (3)].d); ;}
{ (yyval.d) = (yyvsp[(1) - (3)].d) || (yyvsp[(3) - (3)].d); ;}
break;
break;
case 427:
case 427:
#line 542
3
"Gmsh.y"
#line 542
5
"Gmsh.y"
{ (yyval.d) = (yyvsp[(1) - (5)].d) ? (yyvsp[(3) - (5)].d) : (yyvsp[(5) - (5)].d); ;}
{ (yyval.d) = (yyvsp[(1) - (5)].d) ? (yyvsp[(3) - (5)].d) : (yyvsp[(5) - (5)].d); ;}
break;
break;
case 428:
case 428:
#line 542
4
"Gmsh.y"
#line 542
6
"Gmsh.y"
{ (yyval.d) = exp((yyvsp[(3) - (4)].d)); ;}
{ (yyval.d) = exp((yyvsp[(3) - (4)].d)); ;}
break;
break;
case 429:
case 429:
#line 542
5
"Gmsh.y"
#line 542
7
"Gmsh.y"
{ (yyval.d) = log((yyvsp[(3) - (4)].d)); ;}
{ (yyval.d) = log((yyvsp[(3) - (4)].d)); ;}
break;
break;
case 430:
case 430:
#line 542
6
"Gmsh.y"
#line 542
8
"Gmsh.y"
{ (yyval.d) = log10((yyvsp[(3) - (4)].d)); ;}
{ (yyval.d) = log10((yyvsp[(3) - (4)].d)); ;}
break;
break;
case 431:
case 431:
#line 542
7
"Gmsh.y"
#line 542
9
"Gmsh.y"
{ (yyval.d) = sqrt((yyvsp[(3) - (4)].d)); ;}
{ (yyval.d) = sqrt((yyvsp[(3) - (4)].d)); ;}
break;
break;
case 432:
case 432:
#line 54
28
"Gmsh.y"
#line 54
30
"Gmsh.y"
{ (yyval.d) = sin((yyvsp[(3) - (4)].d)); ;}
{ (yyval.d) = sin((yyvsp[(3) - (4)].d)); ;}
break;
break;
case 433:
case 433:
#line 54
29
"Gmsh.y"
#line 54
31
"Gmsh.y"
{ (yyval.d) = asin((yyvsp[(3) - (4)].d)); ;}
{ (yyval.d) = asin((yyvsp[(3) - (4)].d)); ;}
break;
break;
case 434:
case 434:
#line 543
0
"Gmsh.y"
#line 543
2
"Gmsh.y"
{ (yyval.d) = cos((yyvsp[(3) - (4)].d)); ;}
{ (yyval.d) = cos((yyvsp[(3) - (4)].d)); ;}
break;
break;
case 435:
case 435:
#line 543
1
"Gmsh.y"
#line 543
3
"Gmsh.y"
{ (yyval.d) = acos((yyvsp[(3) - (4)].d)); ;}
{ (yyval.d) = acos((yyvsp[(3) - (4)].d)); ;}
break;
break;
case 436:
case 436:
#line 543
2
"Gmsh.y"
#line 543
4
"Gmsh.y"
{ (yyval.d) = tan((yyvsp[(3) - (4)].d)); ;}
{ (yyval.d) = tan((yyvsp[(3) - (4)].d)); ;}
break;
break;
case 437:
case 437:
#line 543
3
"Gmsh.y"
#line 543
5
"Gmsh.y"
{ (yyval.d) = atan((yyvsp[(3) - (4)].d)); ;}
{ (yyval.d) = atan((yyvsp[(3) - (4)].d)); ;}
break;
break;
case 438:
case 438:
#line 543
4
"Gmsh.y"
#line 543
6
"Gmsh.y"
{ (yyval.d) = atan2((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d));;}
{ (yyval.d) = atan2((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d));;}
break;
break;
case 439:
case 439:
#line 543
5
"Gmsh.y"
#line 543
7
"Gmsh.y"
{ (yyval.d) = sinh((yyvsp[(3) - (4)].d)); ;}
{ (yyval.d) = sinh((yyvsp[(3) - (4)].d)); ;}
break;
break;
case 440:
case 440:
#line 543
6
"Gmsh.y"
#line 543
8
"Gmsh.y"
{ (yyval.d) = cosh((yyvsp[(3) - (4)].d)); ;}
{ (yyval.d) = cosh((yyvsp[(3) - (4)].d)); ;}
break;
break;
case 441:
case 441:
#line 543
7
"Gmsh.y"
#line 543
9
"Gmsh.y"
{ (yyval.d) = tanh((yyvsp[(3) - (4)].d)); ;}
{ (yyval.d) = tanh((yyvsp[(3) - (4)].d)); ;}
break;
break;
case 442:
case 442:
#line 54
38
"Gmsh.y"
#line 54
40
"Gmsh.y"
{ (yyval.d) = fabs((yyvsp[(3) - (4)].d)); ;}
{ (yyval.d) = fabs((yyvsp[(3) - (4)].d)); ;}
break;
break;
case 443:
case 443:
#line 54
39
"Gmsh.y"
#line 54
41
"Gmsh.y"
{ (yyval.d) = floor((yyvsp[(3) - (4)].d)); ;}
{ (yyval.d) = floor((yyvsp[(3) - (4)].d)); ;}
break;
break;
case 444:
case 444:
#line 544
0
"Gmsh.y"
#line 544
2
"Gmsh.y"
{ (yyval.d) = ceil((yyvsp[(3) - (4)].d)); ;}
{ (yyval.d) = ceil((yyvsp[(3) - (4)].d)); ;}
break;
break;
case 445:
case 445:
#line 544
1
"Gmsh.y"
#line 544
3
"Gmsh.y"
{ (yyval.d) = floor((yyvsp[(3) - (4)].d) + 0.5); ;}
{ (yyval.d) = floor((yyvsp[(3) - (4)].d) + 0.5); ;}
break;
break;
case 446:
case 446:
#line 544
2
"Gmsh.y"
#line 544
4
"Gmsh.y"
{ (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); ;}
{ (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); ;}
break;
break;
case 447:
case 447:
#line 544
3
"Gmsh.y"
#line 544
5
"Gmsh.y"
{ (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); ;}
{ (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); ;}
break;
break;
case 448:
case 448:
#line 544
4
"Gmsh.y"
#line 544
6
"Gmsh.y"
{ (yyval.d) = sqrt((yyvsp[(3) - (6)].d) * (yyvsp[(3) - (6)].d) + (yyvsp[(5) - (6)].d) * (yyvsp[(5) - (6)].d)); ;}
{ (yyval.d) = sqrt((yyvsp[(3) - (6)].d) * (yyvsp[(3) - (6)].d) + (yyvsp[(5) - (6)].d) * (yyvsp[(5) - (6)].d)); ;}
break;
break;
case 449:
case 449:
#line 544
5
"Gmsh.y"
#line 544
7
"Gmsh.y"
{ (yyval.d) = (yyvsp[(3) - (4)].d) * (double)rand() / (double)RAND_MAX; ;}
{ (yyval.d) = (yyvsp[(3) - (4)].d) * (double)rand() / (double)RAND_MAX; ;}
break;
break;
case 450:
case 450:
#line 545
4
"Gmsh.y"
#line 545
6
"Gmsh.y"
{ (yyval.d) = (yyvsp[(1) - (1)].d); ;}
{ (yyval.d) = (yyvsp[(1) - (1)].d); ;}
break;
break;
case 451:
case 451:
#line 545
5
"Gmsh.y"
#line 545
7
"Gmsh.y"
{ (yyval.d) = 3.141592653589793; ;}
{ (yyval.d) = 3.141592653589793; ;}
break;
break;
case 452:
case 452:
#line 545
6
"Gmsh.y"
#line 545
8
"Gmsh.y"
{ (yyval.d) = (double)ImbricatedTest; ;}
{ (yyval.d) = (double)ImbricatedTest; ;}
break;
break;
case 453:
case 453:
#line 545
7
"Gmsh.y"
#line 545
9
"Gmsh.y"
{ (yyval.d) = Msg::GetCommRank(); ;}
{ (yyval.d) = Msg::GetCommRank(); ;}
break;
break;
case 454:
case 454:
#line 54
58
"Gmsh.y"
#line 54
60
"Gmsh.y"
{ (yyval.d) = Msg::GetCommSize(); ;}
{ (yyval.d) = Msg::GetCommSize(); ;}
break;
break;
case 455:
case 455:
#line 54
59
"Gmsh.y"
#line 54
61
"Gmsh.y"
{ (yyval.d) = GetGmshMajorVersion(); ;}
{ (yyval.d) = GetGmshMajorVersion(); ;}
break;
break;
case 456:
case 456:
#line 546
0
"Gmsh.y"
#line 546
2
"Gmsh.y"
{ (yyval.d) = GetGmshMinorVersion(); ;}
{ (yyval.d) = GetGmshMinorVersion(); ;}
break;
break;
case 457:
case 457:
#line 546
1
"Gmsh.y"
#line 546
3
"Gmsh.y"
{ (yyval.d) = GetGmshPatchVersion(); ;}
{ (yyval.d) = GetGmshPatchVersion(); ;}
break;
break;
case 458:
case 458:
#line 546
2
"Gmsh.y"
#line 546
4
"Gmsh.y"
{ (yyval.d) = Cpu(); ;}
{ (yyval.d) = Cpu(); ;}
break;
break;
case 459:
case 459:
#line 546
3
"Gmsh.y"
#line 546
5
"Gmsh.y"
{ (yyval.d) = GetMemoryUsage()/1024./1024.; ;}
{ (yyval.d) = GetMemoryUsage()/1024./1024.; ;}
break;
break;
case 460:
case 460:
#line 546
4
"Gmsh.y"
#line 546
6
"Gmsh.y"
{ (yyval.d) = TotalRam(); ;}
{ (yyval.d) = TotalRam(); ;}
break;
break;
case 461:
case 461:
#line 54
69
"Gmsh.y"
#line 54
71
"Gmsh.y"
{ floatOptions.clear(); charOptions.clear(); ;}
{ floatOptions.clear(); charOptions.clear(); ;}
break;
break;
case 462:
case 462:
#line 547
1
"Gmsh.y"
#line 547
3
"Gmsh.y"
{
{
std::vector<double> val(1, (yyvsp[(3) - (6)].d));
std::vector<double> val(1, (yyvsp[(3) - (6)].d));
Msg::ExchangeOnelabParameter("", val, floatOptions, charOptions);
Msg::ExchangeOnelabParameter("", val, floatOptions, charOptions);
...
@@ -12597,7 +12599,7 @@ yyreduce:
...
@@ -12597,7 +12599,7 @@ yyreduce:
break;
break;
case 463:
case 463:
#line 547
7
"Gmsh.y"
#line 547
9
"Gmsh.y"
{
{
(yyval.d) = Msg::GetOnelabNumber((yyvsp[(3) - (4)].c));
(yyval.d) = Msg::GetOnelabNumber((yyvsp[(3) - (4)].c));
Free((yyvsp[(3) - (4)].c));
Free((yyvsp[(3) - (4)].c));
...
@@ -12605,7 +12607,7 @@ yyreduce:
...
@@ -12605,7 +12607,7 @@ yyreduce:
break;
break;
case 464:
case 464:
#line 548
2
"Gmsh.y"
#line 548
4
"Gmsh.y"
{
{
(yyval.d) = Msg::GetOnelabNumber((yyvsp[(3) - (6)].c), (yyvsp[(5) - (6)].d));
(yyval.d) = Msg::GetOnelabNumber((yyvsp[(3) - (6)].c), (yyvsp[(5) - (6)].d));
Free((yyvsp[(3) - (6)].c));
Free((yyvsp[(3) - (6)].c));
...
@@ -12613,7 +12615,7 @@ yyreduce:
...
@@ -12613,7 +12615,7 @@ yyreduce:
break;
break;
case 465:
case 465:
#line 548
7
"Gmsh.y"
#line 548
9
"Gmsh.y"
{
{
if(!gmsh_yysymbols.count((yyvsp[(1) - (1)].c))){
if(!gmsh_yysymbols.count((yyvsp[(1) - (1)].c))){
yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (1)].c));
yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (1)].c));
...
@@ -12633,7 +12635,7 @@ yyreduce:
...
@@ -12633,7 +12635,7 @@ yyreduce:
break;
break;
case 466:
case 466:
#line 550
4
"Gmsh.y"
#line 550
6
"Gmsh.y"
{
{
int index = (int)(yyvsp[(3) - (4)].d);
int index = (int)(yyvsp[(3) - (4)].d);
if(!gmsh_yysymbols.count((yyvsp[(1) - (4)].c))){
if(!gmsh_yysymbols.count((yyvsp[(1) - (4)].c))){
...
@@ -12654,7 +12656,7 @@ yyreduce:
...
@@ -12654,7 +12656,7 @@ yyreduce:
break;
break;
case 467:
case 467:
#line 552
2
"Gmsh.y"
#line 552
4
"Gmsh.y"
{
{
int index = (int)(yyvsp[(3) - (4)].d);
int index = (int)(yyvsp[(3) - (4)].d);
if(!gmsh_yysymbols.count((yyvsp[(1) - (4)].c))){
if(!gmsh_yysymbols.count((yyvsp[(1) - (4)].c))){
...
@@ -12675,7 +12677,7 @@ yyreduce:
...
@@ -12675,7 +12677,7 @@ yyreduce:
break;
break;
case 468:
case 468:
#line 554
0
"Gmsh.y"
#line 554
2
"Gmsh.y"
{
{
int index = (int)(yyvsp[(3) - (4)].d);
int index = (int)(yyvsp[(3) - (4)].d);
if(!gmsh_yysymbols.count((yyvsp[(1) - (4)].c))){
if(!gmsh_yysymbols.count((yyvsp[(1) - (4)].c))){
...
@@ -12696,7 +12698,7 @@ yyreduce:
...
@@ -12696,7 +12698,7 @@ yyreduce:
break;
break;
case 469:
case 469:
#line 55
58
"Gmsh.y"
#line 55
60
"Gmsh.y"
{
{
int index = (int)(yyvsp[(3) - (4)].d);
int index = (int)(yyvsp[(3) - (4)].d);
if(!gmsh_yysymbols.count((yyvsp[(1) - (4)].c))){
if(!gmsh_yysymbols.count((yyvsp[(1) - (4)].c))){
...
@@ -12717,7 +12719,7 @@ yyreduce:
...
@@ -12717,7 +12719,7 @@ yyreduce:
break;
break;
case 470:
case 470:
#line 557
6
"Gmsh.y"
#line 557
8
"Gmsh.y"
{
{
(yyval.d) = gmsh_yysymbols.count((yyvsp[(3) - (4)].c));
(yyval.d) = gmsh_yysymbols.count((yyvsp[(3) - (4)].c));
Free((yyvsp[(3) - (4)].c));
Free((yyvsp[(3) - (4)].c));
...
@@ -12725,7 +12727,7 @@ yyreduce:
...
@@ -12725,7 +12727,7 @@ yyreduce:
break;
break;
case 471:
case 471:
#line 558
1
"Gmsh.y"
#line 558
3
"Gmsh.y"
{
{
std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(3) - (4)].c));
std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(3) - (4)].c));
(yyval.d) = !StatFile(tmp);
(yyval.d) = !StatFile(tmp);
...
@@ -12734,7 +12736,7 @@ yyreduce:
...
@@ -12734,7 +12736,7 @@ yyreduce:
break;
break;
case 472:
case 472:
#line 558
7
"Gmsh.y"
#line 558
9
"Gmsh.y"
{
{
if(gmsh_yysymbols.count((yyvsp[(2) - (4)].c))){
if(gmsh_yysymbols.count((yyvsp[(2) - (4)].c))){
gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(2) - (4)].c)]);
gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(2) - (4)].c)]);
...
@@ -12752,7 +12754,7 @@ yyreduce:
...
@@ -12752,7 +12754,7 @@ yyreduce:
break;
break;
case 473:
case 473:
#line 560
2
"Gmsh.y"
#line 560
4
"Gmsh.y"
{
{
if(!gmsh_yysymbols.count((yyvsp[(1) - (2)].c))){
if(!gmsh_yysymbols.count((yyvsp[(1) - (2)].c))){
yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (2)].c));
yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (2)].c));
...
@@ -12774,7 +12776,7 @@ yyreduce:
...
@@ -12774,7 +12776,7 @@ yyreduce:
break;
break;
case 474:
case 474:
#line 562
1
"Gmsh.y"
#line 562
3
"Gmsh.y"
{
{
int index = (int)(yyvsp[(3) - (5)].d);
int index = (int)(yyvsp[(3) - (5)].d);
if(!gmsh_yysymbols.count((yyvsp[(1) - (5)].c))){
if(!gmsh_yysymbols.count((yyvsp[(1) - (5)].c))){
...
@@ -12797,7 +12799,7 @@ yyreduce:
...
@@ -12797,7 +12799,7 @@ yyreduce:
break;
break;
case 475:
case 475:
#line 564
1
"Gmsh.y"
#line 564
3
"Gmsh.y"
{
{
int index = (int)(yyvsp[(3) - (5)].d);
int index = (int)(yyvsp[(3) - (5)].d);
if(!gmsh_yysymbols.count((yyvsp[(1) - (5)].c))){
if(!gmsh_yysymbols.count((yyvsp[(1) - (5)].c))){
...
@@ -12820,7 +12822,7 @@ yyreduce:
...
@@ -12820,7 +12822,7 @@ yyreduce:
break;
break;
case 476:
case 476:
#line 566
1
"Gmsh.y"
#line 566
3
"Gmsh.y"
{
{
int index = (int)(yyvsp[(3) - (5)].d);
int index = (int)(yyvsp[(3) - (5)].d);
if(!gmsh_yysymbols.count((yyvsp[(1) - (5)].c))){
if(!gmsh_yysymbols.count((yyvsp[(1) - (5)].c))){
...
@@ -12843,7 +12845,7 @@ yyreduce:
...
@@ -12843,7 +12845,7 @@ yyreduce:
break;
break;
case 477:
case 477:
#line 568
1
"Gmsh.y"
#line 568
3
"Gmsh.y"
{
{
int index = (int)(yyvsp[(3) - (5)].d);
int index = (int)(yyvsp[(3) - (5)].d);
if(!gmsh_yysymbols.count((yyvsp[(1) - (5)].c))){
if(!gmsh_yysymbols.count((yyvsp[(1) - (5)].c))){
...
@@ -12866,7 +12868,7 @@ yyreduce:
...
@@ -12866,7 +12868,7 @@ yyreduce:
break;
break;
case 478:
case 478:
#line 570
4
"Gmsh.y"
#line 570
6
"Gmsh.y"
{
{
NumberOption(GMSH_GET, (yyvsp[(1) - (3)].c), 0, (yyvsp[(3) - (3)].c), (yyval.d));
NumberOption(GMSH_GET, (yyvsp[(1) - (3)].c), 0, (yyvsp[(3) - (3)].c), (yyval.d));
Free((yyvsp[(1) - (3)].c)); Free((yyvsp[(3) - (3)].c));
Free((yyvsp[(1) - (3)].c)); Free((yyvsp[(3) - (3)].c));
...
@@ -12874,7 +12876,7 @@ yyreduce:
...
@@ -12874,7 +12876,7 @@ yyreduce:
break;
break;
case 479:
case 479:
#line 57
09
"Gmsh.y"
#line 57
11
"Gmsh.y"
{
{
NumberOption(GMSH_GET, (yyvsp[(1) - (6)].c), (int)(yyvsp[(3) - (6)].d), (yyvsp[(6) - (6)].c), (yyval.d));
NumberOption(GMSH_GET, (yyvsp[(1) - (6)].c), (int)(yyvsp[(3) - (6)].d), (yyvsp[(6) - (6)].c), (yyval.d));
Free((yyvsp[(1) - (6)].c)); Free((yyvsp[(6) - (6)].c));
Free((yyvsp[(1) - (6)].c)); Free((yyvsp[(6) - (6)].c));
...
@@ -12882,7 +12884,7 @@ yyreduce:
...
@@ -12882,7 +12884,7 @@ yyreduce:
break;
break;
case 480:
case 480:
#line 571
4
"Gmsh.y"
#line 571
6
"Gmsh.y"
{
{
double d = 0.;
double d = 0.;
if(NumberOption(GMSH_GET, (yyvsp[(1) - (4)].c), 0, (yyvsp[(3) - (4)].c), d)){
if(NumberOption(GMSH_GET, (yyvsp[(1) - (4)].c), 0, (yyvsp[(3) - (4)].c), d)){
...
@@ -12895,7 +12897,7 @@ yyreduce:
...
@@ -12895,7 +12897,7 @@ yyreduce:
break;
break;
case 481:
case 481:
#line 572
4
"Gmsh.y"
#line 572
6
"Gmsh.y"
{
{
double d = 0.;
double d = 0.;
if(NumberOption(GMSH_GET, (yyvsp[(1) - (7)].c), (int)(yyvsp[(3) - (7)].d), (yyvsp[(6) - (7)].c), d)){
if(NumberOption(GMSH_GET, (yyvsp[(1) - (7)].c), (int)(yyvsp[(3) - (7)].d), (yyvsp[(6) - (7)].c), d)){
...
@@ -12908,7 +12910,7 @@ yyreduce:
...
@@ -12908,7 +12910,7 @@ yyreduce:
break;
break;
case 482:
case 482:
#line 573
4
"Gmsh.y"
#line 573
6
"Gmsh.y"
{
{
(yyval.d) = Msg::GetValue((yyvsp[(3) - (6)].c), (yyvsp[(5) - (6)].d));
(yyval.d) = Msg::GetValue((yyvsp[(3) - (6)].c), (yyvsp[(5) - (6)].d));
Free((yyvsp[(3) - (6)].c));
Free((yyvsp[(3) - (6)].c));
...
@@ -12916,7 +12918,7 @@ yyreduce:
...
@@ -12916,7 +12918,7 @@ yyreduce:
break;
break;
case 483:
case 483:
#line 57
39
"Gmsh.y"
#line 57
41
"Gmsh.y"
{
{
int matches = 0;
int matches = 0;
for(int i = 0; i < List_Nbr((yyvsp[(3) - (6)].l)); i++){
for(int i = 0; i < List_Nbr((yyvsp[(3) - (6)].l)); i++){
...
@@ -12930,7 +12932,7 @@ yyreduce:
...
@@ -12930,7 +12932,7 @@ yyreduce:
break;
break;
case 484:
case 484:
#line 575
0
"Gmsh.y"
#line 575
2
"Gmsh.y"
{
{
std::string s((yyvsp[(3) - (6)].c)), substr((yyvsp[(5) - (6)].c));
std::string s((yyvsp[(3) - (6)].c)), substr((yyvsp[(5) - (6)].c));
if(s.find(substr) != std::string::npos)
if(s.find(substr) != std::string::npos)
...
@@ -12942,7 +12944,7 @@ yyreduce:
...
@@ -12942,7 +12944,7 @@ yyreduce:
break;
break;
case 485:
case 485:
#line 57
59
"Gmsh.y"
#line 57
61
"Gmsh.y"
{
{
(yyval.d) = strlen((yyvsp[(3) - (4)].c));
(yyval.d) = strlen((yyvsp[(3) - (4)].c));
Free((yyvsp[(3) - (4)].c));
Free((yyvsp[(3) - (4)].c));
...
@@ -12950,7 +12952,7 @@ yyreduce:
...
@@ -12950,7 +12952,7 @@ yyreduce:
break;
break;
case 486:
case 486:
#line 576
4
"Gmsh.y"
#line 576
6
"Gmsh.y"
{
{
(yyval.d) = strcmp((yyvsp[(3) - (6)].c), (yyvsp[(5) - (6)].c));
(yyval.d) = strcmp((yyvsp[(3) - (6)].c), (yyvsp[(5) - (6)].c));
Free((yyvsp[(3) - (6)].c)); Free((yyvsp[(5) - (6)].c));
Free((yyvsp[(3) - (6)].c)); Free((yyvsp[(5) - (6)].c));
...
@@ -12958,7 +12960,7 @@ yyreduce:
...
@@ -12958,7 +12960,7 @@ yyreduce:
break;
break;
case 487:
case 487:
#line 57
69
"Gmsh.y"
#line 57
71
"Gmsh.y"
{
{
int align = 0, font = 0, fontsize = CTX::instance()->glFontSize;
int align = 0, font = 0, fontsize = CTX::instance()->glFontSize;
if(List_Nbr((yyvsp[(3) - (4)].l)) % 2){
if(List_Nbr((yyvsp[(3) - (4)].l)) % 2){
...
@@ -12985,70 +12987,70 @@ yyreduce:
...
@@ -12985,70 +12987,70 @@ yyreduce:
break;
break;
case 488:
case 488:
#line 579
6
"Gmsh.y"
#line 579
8
"Gmsh.y"
{
{
memcpy((yyval.v), (yyvsp[(1) - (1)].v), 5*sizeof(double));
memcpy((yyval.v), (yyvsp[(1) - (1)].v), 5*sizeof(double));
;}
;}
break;
break;
case 489:
case 489:
#line 580
0
"Gmsh.y"
#line 580
2
"Gmsh.y"
{
{
for(int i = 0; i < 5; i++) (yyval.v)[i] = -(yyvsp[(2) - (2)].v)[i];
for(int i = 0; i < 5; i++) (yyval.v)[i] = -(yyvsp[(2) - (2)].v)[i];
;}
;}
break;
break;
case 490:
case 490:
#line 580
4
"Gmsh.y"
#line 580
6
"Gmsh.y"
{
{
for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[(2) - (2)].v)[i];
for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[(2) - (2)].v)[i];
;}
;}
break;
break;
case 491:
case 491:
#line 580
8
"Gmsh.y"
#line 58
1
0 "Gmsh.y"
{
{
for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[(1) - (3)].v)[i] - (yyvsp[(3) - (3)].v)[i];
for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[(1) - (3)].v)[i] - (yyvsp[(3) - (3)].v)[i];
;}
;}
break;
break;
case 492:
case 492:
#line 581
2
"Gmsh.y"
#line 581
4
"Gmsh.y"
{
{
for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[(1) - (3)].v)[i] + (yyvsp[(3) - (3)].v)[i];
for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[(1) - (3)].v)[i] + (yyvsp[(3) - (3)].v)[i];
;}
;}
break;
break;
case 493:
case 493:
#line 581
9
"Gmsh.y"
#line 58
2
1 "Gmsh.y"
{
{
(yyval.v)[0] = (yyvsp[(2) - (11)].d); (yyval.v)[1] = (yyvsp[(4) - (11)].d); (yyval.v)[2] = (yyvsp[(6) - (11)].d); (yyval.v)[3] = (yyvsp[(8) - (11)].d); (yyval.v)[4] = (yyvsp[(10) - (11)].d);
(yyval.v)[0] = (yyvsp[(2) - (11)].d); (yyval.v)[1] = (yyvsp[(4) - (11)].d); (yyval.v)[2] = (yyvsp[(6) - (11)].d); (yyval.v)[3] = (yyvsp[(8) - (11)].d); (yyval.v)[4] = (yyvsp[(10) - (11)].d);
;}
;}
break;
break;
case 494:
case 494:
#line 582
3
"Gmsh.y"
#line 582
5
"Gmsh.y"
{
{
(yyval.v)[0] = (yyvsp[(2) - (9)].d); (yyval.v)[1] = (yyvsp[(4) - (9)].d); (yyval.v)[2] = (yyvsp[(6) - (9)].d); (yyval.v)[3] = (yyvsp[(8) - (9)].d); (yyval.v)[4] = 1.0;
(yyval.v)[0] = (yyvsp[(2) - (9)].d); (yyval.v)[1] = (yyvsp[(4) - (9)].d); (yyval.v)[2] = (yyvsp[(6) - (9)].d); (yyval.v)[3] = (yyvsp[(8) - (9)].d); (yyval.v)[4] = 1.0;
;}
;}
break;
break;
case 495:
case 495:
#line 582
7
"Gmsh.y"
#line 582
9
"Gmsh.y"
{
{
(yyval.v)[0] = (yyvsp[(2) - (7)].d); (yyval.v)[1] = (yyvsp[(4) - (7)].d); (yyval.v)[2] = (yyvsp[(6) - (7)].d); (yyval.v)[3] = 0.0; (yyval.v)[4] = 1.0;
(yyval.v)[0] = (yyvsp[(2) - (7)].d); (yyval.v)[1] = (yyvsp[(4) - (7)].d); (yyval.v)[2] = (yyvsp[(6) - (7)].d); (yyval.v)[3] = 0.0; (yyval.v)[4] = 1.0;
;}
;}
break;
break;
case 496:
case 496:
#line 583
1
"Gmsh.y"
#line 583
3
"Gmsh.y"
{
{
(yyval.v)[0] = (yyvsp[(2) - (7)].d); (yyval.v)[1] = (yyvsp[(4) - (7)].d); (yyval.v)[2] = (yyvsp[(6) - (7)].d); (yyval.v)[3] = 0.0; (yyval.v)[4] = 1.0;
(yyval.v)[0] = (yyvsp[(2) - (7)].d); (yyval.v)[1] = (yyvsp[(4) - (7)].d); (yyval.v)[2] = (yyvsp[(6) - (7)].d); (yyval.v)[3] = 0.0; (yyval.v)[4] = 1.0;
;}
;}
break;
break;
case 497:
case 497:
#line 58
38
"Gmsh.y"
#line 58
40
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(List_T*));
(yyval.l) = List_Create(2, 1, sizeof(List_T*));
List_Add((yyval.l), &((yyvsp[(1) - (1)].l)));
List_Add((yyval.l), &((yyvsp[(1) - (1)].l)));
...
@@ -13056,14 +13058,14 @@ yyreduce:
...
@@ -13056,14 +13058,14 @@ yyreduce:
break;
break;
case 498:
case 498:
#line 584
3
"Gmsh.y"
#line 584
5
"Gmsh.y"
{
{
List_Add((yyval.l), &((yyvsp[(3) - (3)].l)));
List_Add((yyval.l), &((yyvsp[(3) - (3)].l)));
;}
;}
break;
break;
case 499:
case 499:
#line 585
0
"Gmsh.y"
#line 585
2
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(double));
(yyval.l) = List_Create(2, 1, sizeof(double));
List_Add((yyval.l), &((yyvsp[(1) - (1)].d)));
List_Add((yyval.l), &((yyvsp[(1) - (1)].d)));
...
@@ -13071,14 +13073,14 @@ yyreduce:
...
@@ -13071,14 +13073,14 @@ yyreduce:
break;
break;
case 500:
case 500:
#line 585
5
"Gmsh.y"
#line 585
7
"Gmsh.y"
{
{
(yyval.l) = (yyvsp[(1) - (1)].l);
(yyval.l) = (yyvsp[(1) - (1)].l);
;}
;}
break;
break;
case 501:
case 501:
#line 58
59
"Gmsh.y"
#line 58
61
"Gmsh.y"
{
{
// creates an empty list
// creates an empty list
(yyval.l) = List_Create(2, 1, sizeof(double));
(yyval.l) = List_Create(2, 1, sizeof(double));
...
@@ -13086,14 +13088,14 @@ yyreduce:
...
@@ -13086,14 +13088,14 @@ yyreduce:
break;
break;
case 502:
case 502:
#line 586
4
"Gmsh.y"
#line 586
6
"Gmsh.y"
{
{
(yyval.l) = (yyvsp[(2) - (3)].l);
(yyval.l) = (yyvsp[(2) - (3)].l);
;}
;}
break;
break;
case 503:
case 503:
#line 58
68
"Gmsh.y"
#line 58
70
"Gmsh.y"
{
{
(yyval.l) = (yyvsp[(3) - (4)].l);
(yyval.l) = (yyvsp[(3) - (4)].l);
for(int i = 0; i < List_Nbr((yyval.l)); i++){
for(int i = 0; i < List_Nbr((yyval.l)); i++){
...
@@ -13104,7 +13106,7 @@ yyreduce:
...
@@ -13104,7 +13106,7 @@ yyreduce:
break;
break;
case 504:
case 504:
#line 587
6
"Gmsh.y"
#line 587
8
"Gmsh.y"
{
{
(yyval.l) = (yyvsp[(4) - (5)].l);
(yyval.l) = (yyvsp[(4) - (5)].l);
for(int i = 0; i < List_Nbr((yyval.l)); i++){
for(int i = 0; i < List_Nbr((yyval.l)); i++){
...
@@ -13115,14 +13117,14 @@ yyreduce:
...
@@ -13115,14 +13117,14 @@ yyreduce:
break;
break;
case 505:
case 505:
#line 588
7
"Gmsh.y"
#line 588
9
"Gmsh.y"
{
{
(yyval.l) = (yyvsp[(1) - (1)].l);
(yyval.l) = (yyvsp[(1) - (1)].l);
;}
;}
break;
break;
case 506:
case 506:
#line 589
1
"Gmsh.y"
#line 589
3
"Gmsh.y"
{
{
if(!strcmp((yyvsp[(1) - (1)].c), "*") || !strcmp((yyvsp[(1) - (1)].c), "all"))
if(!strcmp((yyvsp[(1) - (1)].c), "*") || !strcmp((yyvsp[(1) - (1)].c), "all"))
(yyval.l) = 0;
(yyval.l) = 0;
...
@@ -13134,7 +13136,7 @@ yyreduce:
...
@@ -13134,7 +13136,7 @@ yyreduce:
break;
break;
case 507:
case 507:
#line 590
3
"Gmsh.y"
#line 590
5
"Gmsh.y"
{
{
(yyval.l) = (yyvsp[(2) - (2)].l);
(yyval.l) = (yyvsp[(2) - (2)].l);
for(int i = 0; i < List_Nbr((yyval.l)); i++){
for(int i = 0; i < List_Nbr((yyval.l)); i++){
...
@@ -13145,7 +13147,7 @@ yyreduce:
...
@@ -13145,7 +13147,7 @@ yyreduce:
break;
break;
case 508:
case 508:
#line 591
1
"Gmsh.y"
#line 591
3
"Gmsh.y"
{
{
(yyval.l) = (yyvsp[(3) - (3)].l);
(yyval.l) = (yyvsp[(3) - (3)].l);
for(int i = 0; i < List_Nbr((yyval.l)); i++){
for(int i = 0; i < List_Nbr((yyval.l)); i++){
...
@@ -13156,7 +13158,7 @@ yyreduce:
...
@@ -13156,7 +13158,7 @@ yyreduce:
break;
break;
case 509:
case 509:
#line 591
9
"Gmsh.y"
#line 59
2
1 "Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(double));
(yyval.l) = List_Create(2, 1, sizeof(double));
for(double d = (yyvsp[(1) - (3)].d); ((yyvsp[(1) - (3)].d) < (yyvsp[(3) - (3)].d)) ? (d <= (yyvsp[(3) - (3)].d)) : (d >= (yyvsp[(3) - (3)].d));
for(double d = (yyvsp[(1) - (3)].d); ((yyvsp[(1) - (3)].d) < (yyvsp[(3) - (3)].d)) ? (d <= (yyvsp[(3) - (3)].d)) : (d >= (yyvsp[(3) - (3)].d));
...
@@ -13166,7 +13168,7 @@ yyreduce:
...
@@ -13166,7 +13168,7 @@ yyreduce:
break;
break;
case 510:
case 510:
#line 592
6
"Gmsh.y"
#line 592
8
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(double));
(yyval.l) = List_Create(2, 1, sizeof(double));
if(!(yyvsp[(5) - (5)].d)){ //|| ($1 < $3 && $5 < 0) || ($1 > $3 && $5 > 0)
if(!(yyvsp[(5) - (5)].d)){ //|| ($1 < $3 && $5 < 0) || ($1 > $3 && $5 > 0)
...
@@ -13179,7 +13181,7 @@ yyreduce:
...
@@ -13179,7 +13181,7 @@ yyreduce:
break;
break;
case 511:
case 511:
#line 593
6
"Gmsh.y"
#line 593
8
"Gmsh.y"
{
{
(yyval.l) = List_Create(3, 1, sizeof(double));
(yyval.l) = List_Create(3, 1, sizeof(double));
int tag = (int)(yyvsp[(3) - (4)].d);
int tag = (int)(yyvsp[(3) - (4)].d);
...
@@ -13204,63 +13206,63 @@ yyreduce:
...
@@ -13204,63 +13206,63 @@ yyreduce:
break;
break;
case 512:
case 512:
#line 59
58
"Gmsh.y"
#line 59
60
"Gmsh.y"
{
{
(yyval.l) = GetAllElementaryEntityNumbers(0);
(yyval.l) = GetAllElementaryEntityNumbers(0);
;}
;}
break;
break;
case 513:
case 513:
#line 596
2
"Gmsh.y"
#line 596
4
"Gmsh.y"
{
{
(yyval.l) = GetAllElementaryEntityNumbers(1);
(yyval.l) = GetAllElementaryEntityNumbers(1);
;}
;}
break;
break;
case 514:
case 514:
#line 596
6
"Gmsh.y"
#line 596
8
"Gmsh.y"
{
{
(yyval.l) = GetAllElementaryEntityNumbers(2);
(yyval.l) = GetAllElementaryEntityNumbers(2);
;}
;}
break;
break;
case 515:
case 515:
#line 597
0
"Gmsh.y"
#line 597
2
"Gmsh.y"
{
{
(yyval.l) = GetAllElementaryEntityNumbers(3);
(yyval.l) = GetAllElementaryEntityNumbers(3);
;}
;}
break;
break;
case 516:
case 516:
#line 597
4
"Gmsh.y"
#line 597
6
"Gmsh.y"
{
{
(yyval.l) = GetAllPhysicalEntityNumbers(0);
(yyval.l) = GetAllPhysicalEntityNumbers(0);
;}
;}
break;
break;
case 517:
case 517:
#line 59
7
8 "Gmsh.y"
#line 598
0
"Gmsh.y"
{
{
(yyval.l) = GetAllPhysicalEntityNumbers(1);
(yyval.l) = GetAllPhysicalEntityNumbers(1);
;}
;}
break;
break;
case 518:
case 518:
#line 598
2
"Gmsh.y"
#line 598
4
"Gmsh.y"
{
{
(yyval.l) = GetAllPhysicalEntityNumbers(2);
(yyval.l) = GetAllPhysicalEntityNumbers(2);
;}
;}
break;
break;
case 519:
case 519:
#line 598
6
"Gmsh.y"
#line 598
8
"Gmsh.y"
{
{
(yyval.l) = GetAllPhysicalEntityNumbers(3);
(yyval.l) = GetAllPhysicalEntityNumbers(3);
;}
;}
break;
break;
case 520:
case 520:
#line 599
0
"Gmsh.y"
#line 599
2
"Gmsh.y"
{
{
// FIXME: physical groups should not be stored in GEO_Internals, but
// FIXME: physical groups should not be stored in GEO_Internals, but
// directly in GModel
// directly in GModel
...
@@ -13294,7 +13296,7 @@ yyreduce:
...
@@ -13294,7 +13296,7 @@ yyreduce:
break;
break;
case 521:
case 521:
#line 602
1
"Gmsh.y"
#line 602
3
"Gmsh.y"
{
{
// FIXME: physical groups should not be stored in GEO_Internals, but
// FIXME: physical groups should not be stored in GEO_Internals, but
// directly in GModel
// directly in GModel
...
@@ -13328,7 +13330,7 @@ yyreduce:
...
@@ -13328,7 +13330,7 @@ yyreduce:
break;
break;
case 522:
case 522:
#line 605
2
"Gmsh.y"
#line 605
4
"Gmsh.y"
{
{
// FIXME: physical groups should not be stored in GEO_Internals, but
// FIXME: physical groups should not be stored in GEO_Internals, but
// directly in GModel
// directly in GModel
...
@@ -13362,7 +13364,7 @@ yyreduce:
...
@@ -13362,7 +13364,7 @@ yyreduce:
break;
break;
case 523:
case 523:
#line 608
3
"Gmsh.y"
#line 608
5
"Gmsh.y"
{
{
// FIXME: physical groups should not be stored in GEO_Internals, but
// FIXME: physical groups should not be stored in GEO_Internals, but
// directly in GModel
// directly in GModel
...
@@ -13396,7 +13398,7 @@ yyreduce:
...
@@ -13396,7 +13398,7 @@ yyreduce:
break;
break;
case 524:
case 524:
#line 611
5
"Gmsh.y"
#line 611
7
"Gmsh.y"
{
{
if(GModel::current()->getOCCInternals()->getChanged())
if(GModel::current()->getOCCInternals()->getChanged())
GModel::current()->getOCCInternals()->synchronize(GModel::current());
GModel::current()->getOCCInternals()->synchronize(GModel::current());
...
@@ -13414,7 +13416,7 @@ yyreduce:
...
@@ -13414,7 +13416,7 @@ yyreduce:
break;
break;
case 525:
case 525:
#line 613
1
"Gmsh.y"
#line 613
3
"Gmsh.y"
{
{
if(GModel::current()->getOCCInternals()->getChanged())
if(GModel::current()->getOCCInternals()->getChanged())
GModel::current()->getOCCInternals()->synchronize(GModel::current());
GModel::current()->getOCCInternals()->synchronize(GModel::current());
...
@@ -13432,7 +13434,7 @@ yyreduce:
...
@@ -13432,7 +13434,7 @@ yyreduce:
break;
break;
case 526:
case 526:
#line 614
7
"Gmsh.y"
#line 614
9
"Gmsh.y"
{
{
if(GModel::current()->getOCCInternals()->getChanged())
if(GModel::current()->getOCCInternals()->getChanged())
GModel::current()->getOCCInternals()->synchronize(GModel::current());
GModel::current()->getOCCInternals()->synchronize(GModel::current());
...
@@ -13450,7 +13452,7 @@ yyreduce:
...
@@ -13450,7 +13452,7 @@ yyreduce:
break;
break;
case 527:
case 527:
#line 616
3
"Gmsh.y"
#line 616
5
"Gmsh.y"
{
{
if(GModel::current()->getOCCInternals()->getChanged())
if(GModel::current()->getOCCInternals()->getChanged())
GModel::current()->getOCCInternals()->synchronize(GModel::current());
GModel::current()->getOCCInternals()->synchronize(GModel::current());
...
@@ -13468,7 +13470,7 @@ yyreduce:
...
@@ -13468,7 +13470,7 @@ yyreduce:
break;
break;
case 528:
case 528:
#line 61
7
8 "Gmsh.y"
#line 618
0
"Gmsh.y"
{
{
(yyval.l) = List_Create(List_Nbr((yyvsp[(1) - (1)].l)), 1, sizeof(double));
(yyval.l) = List_Create(List_Nbr((yyvsp[(1) - (1)].l)), 1, sizeof(double));
for(int i = 0; i < List_Nbr((yyvsp[(1) - (1)].l)); i++){
for(int i = 0; i < List_Nbr((yyvsp[(1) - (1)].l)); i++){
...
@@ -13481,7 +13483,7 @@ yyreduce:
...
@@ -13481,7 +13483,7 @@ yyreduce:
break;
break;
case 529:
case 529:
#line 61
88
"Gmsh.y"
#line 61
90
"Gmsh.y"
{
{
(yyval.l) = List_Create(List_Nbr((yyvsp[(1) - (1)].l)), 1, sizeof(double));
(yyval.l) = List_Create(List_Nbr((yyvsp[(1) - (1)].l)), 1, sizeof(double));
for(int i = 0; i < List_Nbr((yyvsp[(1) - (1)].l)); i++){
for(int i = 0; i < List_Nbr((yyvsp[(1) - (1)].l)); i++){
...
@@ -13494,7 +13496,7 @@ yyreduce:
...
@@ -13494,7 +13496,7 @@ yyreduce:
break;
break;
case 530:
case 530:
#line 6
198
"Gmsh.y"
#line 6
200
"Gmsh.y"
{
{
(yyval.l) = List_Create(List_Nbr((yyvsp[(1) - (1)].l)), 1, sizeof(double));
(yyval.l) = List_Create(List_Nbr((yyvsp[(1) - (1)].l)), 1, sizeof(double));
for(int i = 0; i < List_Nbr((yyvsp[(1) - (1)].l)); i++){
for(int i = 0; i < List_Nbr((yyvsp[(1) - (1)].l)); i++){
...
@@ -13507,7 +13509,7 @@ yyreduce:
...
@@ -13507,7 +13509,7 @@ yyreduce:
break;
break;
case 531:
case 531:
#line 620
8
"Gmsh.y"
#line 62
1
0 "Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(double));
(yyval.l) = List_Create(2, 1, sizeof(double));
if(!gmsh_yysymbols.count((yyvsp[(1) - (3)].c)))
if(!gmsh_yysymbols.count((yyvsp[(1) - (3)].c)))
...
@@ -13522,7 +13524,7 @@ yyreduce:
...
@@ -13522,7 +13524,7 @@ yyreduce:
break;
break;
case 532:
case 532:
#line 622
0
"Gmsh.y"
#line 622
2
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(double));
(yyval.l) = List_Create(2, 1, sizeof(double));
if(!gmsh_yysymbols.count((yyvsp[(1) - (3)].c)))
if(!gmsh_yysymbols.count((yyvsp[(1) - (3)].c)))
...
@@ -13537,7 +13539,7 @@ yyreduce:
...
@@ -13537,7 +13539,7 @@ yyreduce:
break;
break;
case 533:
case 533:
#line 623
3
"Gmsh.y"
#line 623
5
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(double));
(yyval.l) = List_Create(2, 1, sizeof(double));
if(!gmsh_yysymbols.count((yyvsp[(3) - (4)].c)))
if(!gmsh_yysymbols.count((yyvsp[(3) - (4)].c)))
...
@@ -13552,35 +13554,35 @@ yyreduce:
...
@@ -13552,35 +13554,35 @@ yyreduce:
break;
break;
case 534:
case 534:
#line 624
5
"Gmsh.y"
#line 624
7
"Gmsh.y"
{
{
(yyval.l) = (yyvsp[(3) - (4)].l);
(yyval.l) = (yyvsp[(3) - (4)].l);
;}
;}
break;
break;
case 535:
case 535:
#line 62
49
"Gmsh.y"
#line 62
51
"Gmsh.y"
{
{
(yyval.l) = (yyvsp[(3) - (4)].l);
(yyval.l) = (yyvsp[(3) - (4)].l);
;}
;}
break;
break;
case 536:
case 536:
#line 625
3
"Gmsh.y"
#line 625
5
"Gmsh.y"
{
{
(yyval.l) = (yyvsp[(4) - (6)].l);
(yyval.l) = (yyvsp[(4) - (6)].l);
;}
;}
break;
break;
case 537:
case 537:
#line 625
7
"Gmsh.y"
#line 625
9
"Gmsh.y"
{
{
(yyval.l) = (yyvsp[(4) - (6)].l);
(yyval.l) = (yyvsp[(4) - (6)].l);
;}
;}
break;
break;
case 538:
case 538:
#line 626
1
"Gmsh.y"
#line 626
3
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(double));
(yyval.l) = List_Create(2, 1, sizeof(double));
if(!gmsh_yysymbols.count((yyvsp[(1) - (6)].c)))
if(!gmsh_yysymbols.count((yyvsp[(1) - (6)].c)))
...
@@ -13601,7 +13603,7 @@ yyreduce:
...
@@ -13601,7 +13603,7 @@ yyreduce:
break;
break;
case 539:
case 539:
#line 62
79
"Gmsh.y"
#line 62
81
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(double));
(yyval.l) = List_Create(2, 1, sizeof(double));
if(!gmsh_yysymbols.count((yyvsp[(1) - (6)].c)))
if(!gmsh_yysymbols.count((yyvsp[(1) - (6)].c)))
...
@@ -13622,7 +13624,7 @@ yyreduce:
...
@@ -13622,7 +13624,7 @@ yyreduce:
break;
break;
case 540:
case 540:
#line 629
7
"Gmsh.y"
#line 629
9
"Gmsh.y"
{
{
(yyval.l) = List_Create(20,20,sizeof(double));
(yyval.l) = List_Create(20,20,sizeof(double));
for(int i = 0; i < (int)(yyvsp[(7) - (8)].d); i++) {
for(int i = 0; i < (int)(yyvsp[(7) - (8)].d); i++) {
...
@@ -13633,7 +13635,7 @@ yyreduce:
...
@@ -13633,7 +13635,7 @@ yyreduce:
break;
break;
case 541:
case 541:
#line 630
5
"Gmsh.y"
#line 630
7
"Gmsh.y"
{
{
(yyval.l) = List_Create(20,20,sizeof(double));
(yyval.l) = List_Create(20,20,sizeof(double));
for(int i = 0; i < (int)(yyvsp[(7) - (8)].d); i++) {
for(int i = 0; i < (int)(yyvsp[(7) - (8)].d); i++) {
...
@@ -13644,7 +13646,7 @@ yyreduce:
...
@@ -13644,7 +13646,7 @@ yyreduce:
break;
break;
case 542:
case 542:
#line 631
3
"Gmsh.y"
#line 631
5
"Gmsh.y"
{
{
Msg::Barrier();
Msg::Barrier();
FILE *File;
FILE *File;
...
@@ -13676,7 +13678,7 @@ yyreduce:
...
@@ -13676,7 +13678,7 @@ yyreduce:
break;
break;
case 543:
case 543:
#line 634
2
"Gmsh.y"
#line 634
4
"Gmsh.y"
{
{
double x0 = (yyvsp[(3) - (14)].d), x1 = (yyvsp[(5) - (14)].d), y0 = (yyvsp[(7) - (14)].d), y1 = (yyvsp[(9) - (14)].d), ys = (yyvsp[(11) - (14)].d);
double x0 = (yyvsp[(3) - (14)].d), x1 = (yyvsp[(5) - (14)].d), y0 = (yyvsp[(7) - (14)].d), y1 = (yyvsp[(9) - (14)].d), ys = (yyvsp[(11) - (14)].d);
int N = (int)(yyvsp[(13) - (14)].d);
int N = (int)(yyvsp[(13) - (14)].d);
...
@@ -13689,7 +13691,7 @@ yyreduce:
...
@@ -13689,7 +13691,7 @@ yyreduce:
break;
break;
case 544:
case 544:
#line 635
2
"Gmsh.y"
#line 635
4
"Gmsh.y"
{
{
std::vector<double> tmp;
std::vector<double> tmp;
for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){
for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){
...
@@ -13708,7 +13710,7 @@ yyreduce:
...
@@ -13708,7 +13710,7 @@ yyreduce:
break;
break;
case 545:
case 545:
#line 637
1
"Gmsh.y"
#line 637
3
"Gmsh.y"
{
{
(yyval.l) = List_Create(2, 1, sizeof(double));
(yyval.l) = List_Create(2, 1, sizeof(double));
List_Add((yyval.l), &((yyvsp[(1) - (1)].d)));
List_Add((yyval.l), &((yyvsp[(1) - (1)].d)));
...
@@ -13716,21 +13718,21 @@ yyreduce:
...
@@ -13716,21 +13718,21 @@ yyreduce:
break;
break;
case 546:
case 546:
#line 637
6
"Gmsh.y"
#line 637
8
"Gmsh.y"
{
{
(yyval.l) = (yyvsp[(1) - (1)].l);
(yyval.l) = (yyvsp[(1) - (1)].l);
;}
;}
break;
break;
case 547:
case 547:
#line 638
0
"Gmsh.y"
#line 638
2
"Gmsh.y"
{
{
List_Add((yyval.l), &((yyvsp[(3) - (3)].d)));
List_Add((yyval.l), &((yyvsp[(3) - (3)].d)));
;}
;}
break;
break;
case 548:
case 548:
#line 638
4
"Gmsh.y"
#line 638
6
"Gmsh.y"
{
{
for(int i = 0; i < List_Nbr((yyvsp[(3) - (3)].l)); i++){
for(int i = 0; i < List_Nbr((yyvsp[(3) - (3)].l)); i++){
double d;
double d;
...
@@ -13742,21 +13744,21 @@ yyreduce:
...
@@ -13742,21 +13744,21 @@ yyreduce:
break;
break;
case 549:
case 549:
#line 639
6
"Gmsh.y"
#line 639
8
"Gmsh.y"
{
{
(yyval.u) = CTX::instance()->packColor((int)(yyvsp[(2) - (9)].d), (int)(yyvsp[(4) - (9)].d), (int)(yyvsp[(6) - (9)].d), (int)(yyvsp[(8) - (9)].d));
(yyval.u) = CTX::instance()->packColor((int)(yyvsp[(2) - (9)].d), (int)(yyvsp[(4) - (9)].d), (int)(yyvsp[(6) - (9)].d), (int)(yyvsp[(8) - (9)].d));
;}
;}
break;
break;
case 550:
case 550:
#line 640
0
"Gmsh.y"
#line 640
2
"Gmsh.y"
{
{
(yyval.u) = CTX::instance()->packColor((int)(yyvsp[(2) - (7)].d), (int)(yyvsp[(4) - (7)].d), (int)(yyvsp[(6) - (7)].d), 255);
(yyval.u) = CTX::instance()->packColor((int)(yyvsp[(2) - (7)].d), (int)(yyvsp[(4) - (7)].d), (int)(yyvsp[(6) - (7)].d), 255);
;}
;}
break;
break;
case 551:
case 551:
#line 641
2
"Gmsh.y"
#line 641
4
"Gmsh.y"
{
{
int flag = 0;
int flag = 0;
if(gmsh_yystringsymbols.count((yyvsp[(1) - (1)].c))){
if(gmsh_yystringsymbols.count((yyvsp[(1) - (1)].c))){
...
@@ -13776,7 +13778,7 @@ yyreduce:
...
@@ -13776,7 +13778,7 @@ yyreduce:
break;
break;
case 552:
case 552:
#line 64
29
"Gmsh.y"
#line 64
31
"Gmsh.y"
{
{
unsigned int val = 0;
unsigned int val = 0;
ColorOption(GMSH_GET, (yyvsp[(1) - (5)].c), 0, (yyvsp[(5) - (5)].c), val);
ColorOption(GMSH_GET, (yyvsp[(1) - (5)].c), 0, (yyvsp[(5) - (5)].c), val);
...
@@ -13786,14 +13788,14 @@ yyreduce:
...
@@ -13786,14 +13788,14 @@ yyreduce:
break;
break;
case 553:
case 553:
#line 64
39
"Gmsh.y"
#line 64
41
"Gmsh.y"
{
{
(yyval.l) = (yyvsp[(2) - (3)].l);
(yyval.l) = (yyvsp[(2) - (3)].l);
;}
;}
break;
break;
case 554:
case 554:
#line 644
3
"Gmsh.y"
#line 644
5
"Gmsh.y"
{
{
(yyval.l) = List_Create(256, 10, sizeof(unsigned int));
(yyval.l) = List_Create(256, 10, sizeof(unsigned int));
GmshColorTable *ct = GetColorTable((int)(yyvsp[(3) - (6)].d));
GmshColorTable *ct = GetColorTable((int)(yyvsp[(3) - (6)].d));
...
@@ -13808,7 +13810,7 @@ yyreduce:
...
@@ -13808,7 +13810,7 @@ yyreduce:
break;
break;
case 555:
case 555:
#line 64
58
"Gmsh.y"
#line 64
60
"Gmsh.y"
{
{
(yyval.l) = List_Create(256, 10, sizeof(unsigned int));
(yyval.l) = List_Create(256, 10, sizeof(unsigned int));
List_Add((yyval.l), &((yyvsp[(1) - (1)].u)));
List_Add((yyval.l), &((yyvsp[(1) - (1)].u)));
...
@@ -13816,21 +13818,21 @@ yyreduce:
...
@@ -13816,21 +13818,21 @@ yyreduce:
break;
break;
case 556:
case 556:
#line 646
3
"Gmsh.y"
#line 646
5
"Gmsh.y"
{
{
List_Add((yyval.l), &((yyvsp[(3) - (3)].u)));
List_Add((yyval.l), &((yyvsp[(3) - (3)].u)));
;}
;}
break;
break;
case 557:
case 557:
#line 647
0
"Gmsh.y"
#line 647
2
"Gmsh.y"
{
{
(yyval.c) = (yyvsp[(1) - (1)].c);
(yyval.c) = (yyvsp[(1) - (1)].c);
;}
;}
break;
break;
case 558:
case 558:
#line 647
4
"Gmsh.y"
#line 647
6
"Gmsh.y"
{
{
std::string val;
std::string val;
if(!gmsh_yystringsymbols.count((yyvsp[(1) - (1)].c)))
if(!gmsh_yystringsymbols.count((yyvsp[(1) - (1)].c)))
...
@@ -13846,7 +13848,7 @@ yyreduce:
...
@@ -13846,7 +13848,7 @@ yyreduce:
break;
break;
case 559:
case 559:
#line 648
7
"Gmsh.y"
#line 648
9
"Gmsh.y"
{
{
std::string val;
std::string val;
int j = (int)(yyvsp[(3) - (4)].d);
int j = (int)(yyvsp[(3) - (4)].d);
...
@@ -13863,7 +13865,7 @@ yyreduce:
...
@@ -13863,7 +13865,7 @@ yyreduce:
break;
break;
case 560:
case 560:
#line 650
1
"Gmsh.y"
#line 650
3
"Gmsh.y"
{
{
std::string val;
std::string val;
int j = (int)(yyvsp[(3) - (4)].d);
int j = (int)(yyvsp[(3) - (4)].d);
...
@@ -13880,7 +13882,7 @@ yyreduce:
...
@@ -13880,7 +13882,7 @@ yyreduce:
break;
break;
case 561:
case 561:
#line 651
5
"Gmsh.y"
#line 651
7
"Gmsh.y"
{
{
std::string val;
std::string val;
int j = (int)(yyvsp[(3) - (4)].d);
int j = (int)(yyvsp[(3) - (4)].d);
...
@@ -13897,7 +13899,7 @@ yyreduce:
...
@@ -13897,7 +13899,7 @@ yyreduce:
break;
break;
case 562:
case 562:
#line 65
29
"Gmsh.y"
#line 65
31
"Gmsh.y"
{
{
std::string val;
std::string val;
int j = (int)(yyvsp[(3) - (4)].d);
int j = (int)(yyvsp[(3) - (4)].d);
...
@@ -13914,7 +13916,7 @@ yyreduce:
...
@@ -13914,7 +13916,7 @@ yyreduce:
break;
break;
case 563:
case 563:
#line 654
3
"Gmsh.y"
#line 654
5
"Gmsh.y"
{
{
std::string out;
std::string out;
StringOption(GMSH_GET, (yyvsp[(1) - (3)].c), 0, (yyvsp[(3) - (3)].c), out);
StringOption(GMSH_GET, (yyvsp[(1) - (3)].c), 0, (yyvsp[(3) - (3)].c), out);
...
@@ -13925,7 +13927,7 @@ yyreduce:
...
@@ -13925,7 +13927,7 @@ yyreduce:
break;
break;
case 564:
case 564:
#line 655
1
"Gmsh.y"
#line 655
3
"Gmsh.y"
{
{
std::string out;
std::string out;
StringOption(GMSH_GET, (yyvsp[(1) - (6)].c), (int)(yyvsp[(3) - (6)].d), (yyvsp[(6) - (6)].c), out);
StringOption(GMSH_GET, (yyvsp[(1) - (6)].c), (int)(yyvsp[(3) - (6)].d), (yyvsp[(6) - (6)].c), out);
...
@@ -13936,21 +13938,21 @@ yyreduce:
...
@@ -13936,21 +13938,21 @@ yyreduce:
break;
break;
case 565:
case 565:
#line 656
2
"Gmsh.y"
#line 656
4
"Gmsh.y"
{
{
(yyval.c) = (yyvsp[(1) - (1)].c);
(yyval.c) = (yyvsp[(1) - (1)].c);
;}
;}
break;
break;
case 566:
case 566:
#line 656
6
"Gmsh.y"
#line 656
8
"Gmsh.y"
{
{
(yyval.c) = (yyvsp[(3) - (4)].c);
(yyval.c) = (yyvsp[(3) - (4)].c);
;}
;}
break;
break;
case 567:
case 567:
#line 657
0
"Gmsh.y"
#line 657
2
"Gmsh.y"
{
{
(yyval.c) = (char *)Malloc(32 * sizeof(char));
(yyval.c) = (char *)Malloc(32 * sizeof(char));
time_t now;
time_t now;
...
@@ -13961,7 +13963,7 @@ yyreduce:
...
@@ -13961,7 +13963,7 @@ yyreduce:
break;
break;
case 568:
case 568:
#line 65
7
8 "Gmsh.y"
#line 658
0
"Gmsh.y"
{
{
std::string exe = Msg::GetExecutableName();
std::string exe = Msg::GetExecutableName();
(yyval.c) = (char *)Malloc(exe.size() + 1);
(yyval.c) = (char *)Malloc(exe.size() + 1);
...
@@ -13970,7 +13972,7 @@ yyreduce:
...
@@ -13970,7 +13972,7 @@ yyreduce:
break;
break;
case 569:
case 569:
#line 658
4
"Gmsh.y"
#line 658
6
"Gmsh.y"
{
{
std::string action = Msg::GetOnelabAction();
std::string action = Msg::GetOnelabAction();
(yyval.c) = (char *)Malloc(action.size() + 1);
(yyval.c) = (char *)Malloc(action.size() + 1);
...
@@ -13979,7 +13981,7 @@ yyreduce:
...
@@ -13979,7 +13981,7 @@ yyreduce:
break;
break;
case 570:
case 570:
#line 659
0
"Gmsh.y"
#line 659
2
"Gmsh.y"
{
{
const char *env = GetEnvironmentVar((yyvsp[(3) - (4)].c));
const char *env = GetEnvironmentVar((yyvsp[(3) - (4)].c));
if(!env) env = "";
if(!env) env = "";
...
@@ -13990,7 +13992,7 @@ yyreduce:
...
@@ -13990,7 +13992,7 @@ yyreduce:
break;
break;
case 571:
case 571:
#line 6
598
"Gmsh.y"
#line 6
600
"Gmsh.y"
{
{
std::string s = Msg::GetString((yyvsp[(3) - (6)].c), (yyvsp[(5) - (6)].c));
std::string s = Msg::GetString((yyvsp[(3) - (6)].c), (yyvsp[(5) - (6)].c));
(yyval.c) = (char *)Malloc((s.size() + 1) * sizeof(char));
(yyval.c) = (char *)Malloc((s.size() + 1) * sizeof(char));
...
@@ -14001,7 +14003,7 @@ yyreduce:
...
@@ -14001,7 +14003,7 @@ yyreduce:
break;
break;
case 572:
case 572:
#line 660
6
"Gmsh.y"
#line 660
8
"Gmsh.y"
{
{
std::string s = Msg::GetOnelabString((yyvsp[(3) - (4)].c));
std::string s = Msg::GetOnelabString((yyvsp[(3) - (4)].c));
(yyval.c) = (char *)Malloc((s.size() + 1) * sizeof(char));
(yyval.c) = (char *)Malloc((s.size() + 1) * sizeof(char));
...
@@ -14011,7 +14013,7 @@ yyreduce:
...
@@ -14011,7 +14013,7 @@ yyreduce:
break;
break;
case 573:
case 573:
#line 661
3
"Gmsh.y"
#line 661
5
"Gmsh.y"
{
{
std::string s = Msg::GetOnelabString((yyvsp[(3) - (6)].c), (yyvsp[(5) - (6)].c));
std::string s = Msg::GetOnelabString((yyvsp[(3) - (6)].c), (yyvsp[(5) - (6)].c));
(yyval.c) = (char *)Malloc((s.size() + 1) * sizeof(char));
(yyval.c) = (char *)Malloc((s.size() + 1) * sizeof(char));
...
@@ -14022,7 +14024,7 @@ yyreduce:
...
@@ -14022,7 +14024,7 @@ yyreduce:
break;
break;
case 574:
case 574:
#line 662
1
"Gmsh.y"
#line 662
3
"Gmsh.y"
{
{
int size = 1;
int size = 1;
for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++)
for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++)
...
@@ -14040,7 +14042,7 @@ yyreduce:
...
@@ -14040,7 +14042,7 @@ yyreduce:
break;
break;
case 575:
case 575:
#line 663
6
"Gmsh.y"
#line 663
8
"Gmsh.y"
{
{
(yyval.c) = (char *)Malloc((strlen((yyvsp[(3) - (4)].c)) + 1) * sizeof(char));
(yyval.c) = (char *)Malloc((strlen((yyvsp[(3) - (4)].c)) + 1) * sizeof(char));
int i;
int i;
...
@@ -14057,7 +14059,7 @@ yyreduce:
...
@@ -14057,7 +14059,7 @@ yyreduce:
break;
break;
case 576:
case 576:
#line 665
0
"Gmsh.y"
#line 665
2
"Gmsh.y"
{
{
(yyval.c) = (char *)Malloc((strlen((yyvsp[(3) - (4)].c)) + 1) * sizeof(char));
(yyval.c) = (char *)Malloc((strlen((yyvsp[(3) - (4)].c)) + 1) * sizeof(char));
int i;
int i;
...
@@ -14074,7 +14076,7 @@ yyreduce:
...
@@ -14074,7 +14076,7 @@ yyreduce:
break;
break;
case 577:
case 577:
#line 666
4
"Gmsh.y"
#line 666
6
"Gmsh.y"
{
{
std::string input = (yyvsp[(3) - (8)].c);
std::string input = (yyvsp[(3) - (8)].c);
std::string substr_old = (yyvsp[(5) - (8)].c);
std::string substr_old = (yyvsp[(5) - (8)].c);
...
@@ -14089,7 +14091,7 @@ yyreduce:
...
@@ -14089,7 +14091,7 @@ yyreduce:
break;
break;
case 578:
case 578:
#line 667
6
"Gmsh.y"
#line 667
8
"Gmsh.y"
{
{
int size = 1;
int size = 1;
for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++)
for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++)
...
@@ -14108,7 +14110,7 @@ yyreduce:
...
@@ -14108,7 +14110,7 @@ yyreduce:
break;
break;
case 579:
case 579:
#line 669
2
"Gmsh.y"
#line 669
4
"Gmsh.y"
{
{
int i = 0;
int i = 0;
while ((yyvsp[(3) - (4)].c)[i]) {
while ((yyvsp[(3) - (4)].c)[i]) {
...
@@ -14120,7 +14122,7 @@ yyreduce:
...
@@ -14120,7 +14122,7 @@ yyreduce:
break;
break;
case 580:
case 580:
#line 670
1
"Gmsh.y"
#line 670
3
"Gmsh.y"
{
{
int i = 0;
int i = 0;
while ((yyvsp[(3) - (4)].c)[i]) {
while ((yyvsp[(3) - (4)].c)[i]) {
...
@@ -14132,7 +14134,7 @@ yyreduce:
...
@@ -14132,7 +14134,7 @@ yyreduce:
break;
break;
case 581:
case 581:
#line 671
0
"Gmsh.y"
#line 671
2
"Gmsh.y"
{
{
int i = 0;
int i = 0;
while ((yyvsp[(3) - (4)].c)[i]) {
while ((yyvsp[(3) - (4)].c)[i]) {
...
@@ -14145,7 +14147,7 @@ yyreduce:
...
@@ -14145,7 +14147,7 @@ yyreduce:
break;
break;
case 582:
case 582:
#line 672
0
"Gmsh.y"
#line 672
2
"Gmsh.y"
{
{
if((yyvsp[(3) - (8)].d)){
if((yyvsp[(3) - (8)].d)){
(yyval.c) = (yyvsp[(5) - (8)].c);
(yyval.c) = (yyvsp[(5) - (8)].c);
...
@@ -14159,7 +14161,7 @@ yyreduce:
...
@@ -14159,7 +14161,7 @@ yyreduce:
break;
break;
case 583:
case 583:
#line 673
1
"Gmsh.y"
#line 673
3
"Gmsh.y"
{
{
std::string in = (yyvsp[(3) - (8)].c);
std::string in = (yyvsp[(3) - (8)].c);
std::string out = in.substr((int)(yyvsp[(5) - (8)].d), (int)(yyvsp[(7) - (8)].d));
std::string out = in.substr((int)(yyvsp[(5) - (8)].d), (int)(yyvsp[(7) - (8)].d));
...
@@ -14170,7 +14172,7 @@ yyreduce:
...
@@ -14170,7 +14172,7 @@ yyreduce:
break;
break;
case 584:
case 584:
#line 67
39
"Gmsh.y"
#line 67
41
"Gmsh.y"
{
{
std::string in = (yyvsp[(3) - (6)].c);
std::string in = (yyvsp[(3) - (6)].c);
std::string out = in.substr((int)(yyvsp[(5) - (6)].d), std::string::npos);
std::string out = in.substr((int)(yyvsp[(5) - (6)].d), std::string::npos);
...
@@ -14181,14 +14183,14 @@ yyreduce:
...
@@ -14181,14 +14183,14 @@ yyreduce:
break;
break;
case 585:
case 585:
#line 674
7
"Gmsh.y"
#line 674
9
"Gmsh.y"
{
{
(yyval.c) = (yyvsp[(3) - (4)].c);
(yyval.c) = (yyvsp[(3) - (4)].c);
;}
;}
break;
break;
case 586:
case 586:
#line 675
1
"Gmsh.y"
#line 675
3
"Gmsh.y"
{
{
char tmpstring[5000];
char tmpstring[5000];
int i = PrintListOfDouble((yyvsp[(3) - (6)].c), (yyvsp[(5) - (6)].l), tmpstring);
int i = PrintListOfDouble((yyvsp[(3) - (6)].c), (yyvsp[(5) - (6)].l), tmpstring);
...
@@ -14210,7 +14212,7 @@ yyreduce:
...
@@ -14210,7 +14212,7 @@ yyreduce:
break;
break;
case 587:
case 587:
#line 677
0
"Gmsh.y"
#line 677
2
"Gmsh.y"
{
{
std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(3) - (4)].c));
std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(3) - (4)].c));
(yyval.c) = (char*)Malloc((tmp.size() + 1) * sizeof(char));
(yyval.c) = (char*)Malloc((tmp.size() + 1) * sizeof(char));
...
@@ -14220,7 +14222,7 @@ yyreduce:
...
@@ -14220,7 +14222,7 @@ yyreduce:
break;
break;
case 588:
case 588:
#line 677
7
"Gmsh.y"
#line 677
9
"Gmsh.y"
{
{
std::string tmp = SplitFileName(GetAbsolutePath(gmsh_yyname))[0];
std::string tmp = SplitFileName(GetAbsolutePath(gmsh_yyname))[0];
(yyval.c) = (char*)Malloc((tmp.size() + 1) * sizeof(char));
(yyval.c) = (char*)Malloc((tmp.size() + 1) * sizeof(char));
...
@@ -14229,7 +14231,7 @@ yyreduce:
...
@@ -14229,7 +14231,7 @@ yyreduce:
break;
break;
case 589:
case 589:
#line 678
3
"Gmsh.y"
#line 678
5
"Gmsh.y"
{
{
std::string tmp = SplitFileName((yyvsp[(3) - (4)].c))[0];
std::string tmp = SplitFileName((yyvsp[(3) - (4)].c))[0];
(yyval.c) = (char*)Malloc((tmp.size() + 1) * sizeof(char));
(yyval.c) = (char*)Malloc((tmp.size() + 1) * sizeof(char));
...
@@ -14239,7 +14241,7 @@ yyreduce:
...
@@ -14239,7 +14241,7 @@ yyreduce:
break;
break;
case 590:
case 590:
#line 679
0
"Gmsh.y"
#line 679
2
"Gmsh.y"
{
{
std::string tmp = GetAbsolutePath((yyvsp[(3) - (4)].c));
std::string tmp = GetAbsolutePath((yyvsp[(3) - (4)].c));
(yyval.c) = (char*)Malloc((tmp.size() + 1) * sizeof(char));
(yyval.c) = (char*)Malloc((tmp.size() + 1) * sizeof(char));
...
@@ -14249,12 +14251,12 @@ yyreduce:
...
@@ -14249,12 +14251,12 @@ yyreduce:
break;
break;
case 591:
case 591:
#line 679
7
"Gmsh.y"
#line 679
9
"Gmsh.y"
{ floatOptions.clear(); charOptions.clear(); ;}
{ floatOptions.clear(); charOptions.clear(); ;}
break;
break;
case 592:
case 592:
#line 6
799
"Gmsh.y"
#line 6
801
"Gmsh.y"
{
{
std::string val((yyvsp[(3) - (6)].c));
std::string val((yyvsp[(3) - (6)].c));
Msg::ExchangeOnelabParameter("", val, floatOptions, charOptions);
Msg::ExchangeOnelabParameter("", val, floatOptions, charOptions);
...
@@ -14265,7 +14267,7 @@ yyreduce:
...
@@ -14265,7 +14267,7 @@ yyreduce:
break;
break;
case 593:
case 593:
#line 681
0
"Gmsh.y"
#line 681
2
"Gmsh.y"
{
{
(yyval.l) = List_Create(20,20,sizeof(char*));
(yyval.l) = List_Create(20,20,sizeof(char*));
List_Add((yyval.l), &((yyvsp[(1) - (1)].c)));
List_Add((yyval.l), &((yyvsp[(1) - (1)].c)));
...
@@ -14273,12 +14275,12 @@ yyreduce:
...
@@ -14273,12 +14275,12 @@ yyreduce:
break;
break;
case 594:
case 594:
#line 681
5
"Gmsh.y"
#line 681
7
"Gmsh.y"
{ List_Add((yyval.l), &((yyvsp[(3) - (3)].c))); ;}
{ List_Add((yyval.l), &((yyvsp[(3) - (3)].c))); ;}
break;
break;
case 595:
case 595:
#line 682
1
"Gmsh.y"
#line 682
3
"Gmsh.y"
{
{
char tmpstr[256];
char tmpstr[256];
sprintf(tmpstr, "_%d", (int)(yyvsp[(4) - (5)].d));
sprintf(tmpstr, "_%d", (int)(yyvsp[(4) - (5)].d));
...
@@ -14289,7 +14291,7 @@ yyreduce:
...
@@ -14289,7 +14291,7 @@ yyreduce:
break;
break;
case 596:
case 596:
#line 683
0
"Gmsh.y"
#line 683
2
"Gmsh.y"
{
{
char tmpstr[256];
char tmpstr[256];
sprintf(tmpstr, "_%d", (int)(yyvsp[(4) - (5)].d));
sprintf(tmpstr, "_%d", (int)(yyvsp[(4) - (5)].d));
...
@@ -14300,23 +14302,23 @@ yyreduce:
...
@@ -14300,23 +14302,23 @@ yyreduce:
break;
break;
case 597:
case 597:
#line 684
3
"Gmsh.y"
#line 684
5
"Gmsh.y"
{ (yyval.c) = (yyvsp[(1) - (1)].c); ;}
{ (yyval.c) = (yyvsp[(1) - (1)].c); ;}
break;
break;
case 598:
case 598:
#line 684
6
"Gmsh.y"
#line 684
8
"Gmsh.y"
{ (yyval.c) = (yyvsp[(1) - (1)].c); ;}
{ (yyval.c) = (yyvsp[(1) - (1)].c); ;}
break;
break;
case 599:
case 599:
#line 685
0
"Gmsh.y"
#line 685
2
"Gmsh.y"
{ (yyval.c) = (yyvsp[(3) - (4)].c); ;}
{ (yyval.c) = (yyvsp[(3) - (4)].c); ;}
break;
break;
/* Line 1267 of yacc.c. */
/* Line 1267 of yacc.c. */
#line 1432
0
"Gmsh.tab.cpp"
#line 1432
2
"Gmsh.tab.cpp"
default: break;
default: break;
}
}
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
...
@@ -14530,7 +14532,7 @@ yyreturn:
...
@@ -14530,7 +14532,7 @@ yyreturn:
}
}
#line 685
3
"Gmsh.y"
#line 685
5
"Gmsh.y"
void assignVariable(const std::string &name, int index, int assignType,
void assignVariable(const std::string &name, int index, int assignType,
...
@@ -14980,7 +14982,7 @@ int NEWLINELOOP(void)
...
@@ -14980,7 +14982,7 @@ int NEWLINELOOP(void)
if(CTX::instance()->geom.oldNewreg)
if(CTX::instance()->geom.oldNewreg)
tag = NEWREG();
tag = NEWREG();
else
else
tag = GModel::current()->getGEOInternals()->
MaxLineLoopNum
+ 1;
tag = GModel::current()->getGEOInternals()->
getMaxTag(-1)
+ 1;
tag = std::max(tag, GModel::current()->getOCCInternals()->getMaxTag(-1) + 1);
tag = std::max(tag, GModel::current()->getOCCInternals()->getMaxTag(-1) + 1);
return tag;
return tag;
}
}
...
...
This diff is collapsed.
Click to expand it.
Parser/Gmsh.y
+
7
−
5
View file @
238f1c5f
...
@@ -1780,8 +1780,9 @@ Shape :
...
@@ -1780,8 +1780,9 @@ Shape :
}
}
else if(param.size() >= 4 && param.size() <= 6){
else if(param.size() >= 4 && param.size() <= 6){
double r = param[3];
double r = param[3];
double a1 = (param.size() >= 5) ? param[4] : 0.;
double a1 = (param.size() == 6) ? param[4] : 0.;
double a2 = (param.size() >= 6) ? param[5] : 2.*M_PI;
double a2 = (param.size() == 6) ? param[5] :
(param.size() == 5) ? param[4] : 2.*M_PI;
GModel::current()->getOCCInternals()->addCircle
GModel::current()->getOCCInternals()->addCircle
(num, param[0], param[1], param[2], r, a1, a2);
(num, param[0], param[1], param[2], r, a1, a2);
}
}
...
@@ -1817,8 +1818,9 @@ Shape :
...
@@ -1817,8 +1818,9 @@ Shape :
(num, tags[0], tags[1], tags[3]);
(num, tags[0], tags[1], tags[3]);
}
}
else if(param.size() >= 5 && param.size() <= 7){
else if(param.size() >= 5 && param.size() <= 7){
double a1 = (param.size() >= 6) ? param[5] : 0.;
double a1 = (param.size() == 7) ? param[5] : 0.;
double a2 = (param.size() >= 7) ? param[6] : 2.*M_PI;
double a2 = (param.size() == 7) ? param[6] :
(param.size() == 6) ? param[5] : 2.*M_PI;
GModel::current()->getOCCInternals()->addEllipse
GModel::current()->getOCCInternals()->addEllipse
(num, param[0], param[1], param[2], param[3], param[4], a1, a2);
(num, param[0], param[1], param[2], param[3], param[4], a1, a2);
}
}
...
@@ -7299,7 +7301,7 @@ int NEWLINELOOP(void)
...
@@ -7299,7 +7301,7 @@ int NEWLINELOOP(void)
if(CTX::instance()->geom.oldNewreg)
if(CTX::instance()->geom.oldNewreg)
tag = NEWREG();
tag = NEWREG();
else
else
tag = GModel::current()->getGEOInternals()->
MaxLineLoopNum
+ 1;
tag = GModel::current()->getGEOInternals()->
getMaxTag(-1)
+ 1;
tag = std::max(tag, GModel::current()->getOCCInternals()->getMaxTag(-1) + 1);
tag = std::max(tag, GModel::current()->getOCCInternals()->getMaxTag(-1) + 1);
return tag;
return tag;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment