Skip to content
Snippets Groups Projects
Commit d768ec1b authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

SyncModel to force transfer from old GEO db to GModel
parent 5bbeb054
No related branches found
No related tags found
No related merge requests found
...@@ -191,6 +191,7 @@ StrPrefix return tStrPrefix; ...@@ -191,6 +191,7 @@ StrPrefix return tStrPrefix;
StrRelative return tStrRelative; StrRelative return tStrRelative;
Show return tShow; Show return tShow;
Symmetry return tSymmetry; Symmetry return tSymmetry;
SyncModel return tSyncModel;
T2 return tText2D; T2 return tText2D;
T3 return tText3D; T3 return tText3D;
......
This diff is collapsed.
...@@ -79,85 +79,86 @@ ...@@ -79,85 +79,86 @@
tBoundingBox = 295, tBoundingBox = 295,
tDraw = 296, tDraw = 296,
tToday = 297, tToday = 297,
tCreateTopology = 298, tSyncModel = 298,
tPoint = 299, tCreateTopology = 299,
tCircle = 300, tPoint = 300,
tEllipse = 301, tCircle = 301,
tLine = 302, tEllipse = 302,
tSphere = 303, tLine = 303,
tPolarSphere = 304, tSphere = 304,
tSurface = 305, tPolarSphere = 305,
tSpline = 306, tSurface = 306,
tVolume = 307, tSpline = 307,
tCharacteristic = 308, tVolume = 308,
tLength = 309, tCharacteristic = 309,
tParametric = 310, tLength = 310,
tElliptic = 311, tParametric = 311,
tPlane = 312, tElliptic = 312,
tRuled = 313, tPlane = 313,
tTransfinite = 314, tRuled = 314,
tComplex = 315, tTransfinite = 315,
tPhysical = 316, tComplex = 316,
tCompound = 317, tPhysical = 317,
tUsing = 318, tCompound = 318,
tPlugin = 319, tUsing = 319,
tRotate = 320, tPlugin = 320,
tTranslate = 321, tRotate = 321,
tSymmetry = 322, tTranslate = 322,
tDilate = 323, tSymmetry = 323,
tExtrude = 324, tDilate = 324,
tLoop = 325, tExtrude = 325,
tRecombine = 326, tLoop = 326,
tSmoother = 327, tRecombine = 327,
tSplit = 328, tSmoother = 328,
tDelete = 329, tSplit = 329,
tCoherence = 330, tDelete = 330,
tIntersect = 331, tCoherence = 331,
tLayers = 332, tIntersect = 332,
tHole = 333, tLayers = 333,
tAlias = 334, tHole = 334,
tAliasWithOptions = 335, tAlias = 335,
tText2D = 336, tAliasWithOptions = 336,
tText3D = 337, tText2D = 337,
tInterpolationScheme = 338, tText3D = 338,
tTime = 339, tInterpolationScheme = 339,
tCombine = 340, tTime = 340,
tBSpline = 341, tCombine = 341,
tBezier = 342, tBSpline = 342,
tNurbs = 343, tBezier = 343,
tOrder = 344, tNurbs = 344,
tKnots = 345, tOrder = 345,
tColor = 346, tKnots = 346,
tColorTable = 347, tColor = 347,
tFor = 348, tColorTable = 348,
tIn = 349, tFor = 349,
tEndFor = 350, tIn = 350,
tIf = 351, tEndFor = 351,
tEndIf = 352, tIf = 352,
tExit = 353, tEndIf = 353,
tField = 354, tExit = 354,
tReturn = 355, tField = 355,
tCall = 356, tReturn = 356,
tFunction = 357, tCall = 357,
tShow = 358, tFunction = 358,
tHide = 359, tShow = 359,
tGetValue = 360, tHide = 360,
tGMSH_MAJOR_VERSION = 361, tGetValue = 361,
tGMSH_MINOR_VERSION = 362, tGMSH_MAJOR_VERSION = 362,
tGMSH_PATCH_VERSION = 363, tGMSH_MINOR_VERSION = 363,
tAFFECTDIVIDE = 364, tGMSH_PATCH_VERSION = 364,
tAFFECTTIMES = 365, tAFFECTDIVIDE = 365,
tAFFECTMINUS = 366, tAFFECTTIMES = 366,
tAFFECTPLUS = 367, tAFFECTMINUS = 367,
tOR = 368, tAFFECTPLUS = 368,
tAND = 369, tOR = 369,
tNOTEQUAL = 370, tAND = 370,
tEQUAL = 371, tNOTEQUAL = 371,
tGREATEROREQUAL = 372, tEQUAL = 372,
tLESSOREQUAL = 373, tGREATEROREQUAL = 373,
UNARYPREC = 374, tLESSOREQUAL = 374,
tMINUSMINUS = 375, UNARYPREC = 375,
tPLUSPLUS = 376 tMINUSMINUS = 376,
tPLUSPLUS = 377
}; };
#endif #endif
/* Tokens. */ /* Tokens. */
...@@ -201,85 +202,86 @@ ...@@ -201,85 +202,86 @@
#define tBoundingBox 295 #define tBoundingBox 295
#define tDraw 296 #define tDraw 296
#define tToday 297 #define tToday 297
#define tCreateTopology 298 #define tSyncModel 298
#define tPoint 299 #define tCreateTopology 299
#define tCircle 300 #define tPoint 300
#define tEllipse 301 #define tCircle 301
#define tLine 302 #define tEllipse 302
#define tSphere 303 #define tLine 303
#define tPolarSphere 304 #define tSphere 304
#define tSurface 305 #define tPolarSphere 305
#define tSpline 306 #define tSurface 306
#define tVolume 307 #define tSpline 307
#define tCharacteristic 308 #define tVolume 308
#define tLength 309 #define tCharacteristic 309
#define tParametric 310 #define tLength 310
#define tElliptic 311 #define tParametric 311
#define tPlane 312 #define tElliptic 312
#define tRuled 313 #define tPlane 313
#define tTransfinite 314 #define tRuled 314
#define tComplex 315 #define tTransfinite 315
#define tPhysical 316 #define tComplex 316
#define tCompound 317 #define tPhysical 317
#define tUsing 318 #define tCompound 318
#define tPlugin 319 #define tUsing 319
#define tRotate 320 #define tPlugin 320
#define tTranslate 321 #define tRotate 321
#define tSymmetry 322 #define tTranslate 322
#define tDilate 323 #define tSymmetry 323
#define tExtrude 324 #define tDilate 324
#define tLoop 325 #define tExtrude 325
#define tRecombine 326 #define tLoop 326
#define tSmoother 327 #define tRecombine 327
#define tSplit 328 #define tSmoother 328
#define tDelete 329 #define tSplit 329
#define tCoherence 330 #define tDelete 330
#define tIntersect 331 #define tCoherence 331
#define tLayers 332 #define tIntersect 332
#define tHole 333 #define tLayers 333
#define tAlias 334 #define tHole 334
#define tAliasWithOptions 335 #define tAlias 335
#define tText2D 336 #define tAliasWithOptions 336
#define tText3D 337 #define tText2D 337
#define tInterpolationScheme 338 #define tText3D 338
#define tTime 339 #define tInterpolationScheme 339
#define tCombine 340 #define tTime 340
#define tBSpline 341 #define tCombine 341
#define tBezier 342 #define tBSpline 342
#define tNurbs 343 #define tBezier 343
#define tOrder 344 #define tNurbs 344
#define tKnots 345 #define tOrder 345
#define tColor 346 #define tKnots 346
#define tColorTable 347 #define tColor 347
#define tFor 348 #define tColorTable 348
#define tIn 349 #define tFor 349
#define tEndFor 350 #define tIn 350
#define tIf 351 #define tEndFor 351
#define tEndIf 352 #define tIf 352
#define tExit 353 #define tEndIf 353
#define tField 354 #define tExit 354
#define tReturn 355 #define tField 355
#define tCall 356 #define tReturn 356
#define tFunction 357 #define tCall 357
#define tShow 358 #define tFunction 358
#define tHide 359 #define tShow 359
#define tGetValue 360 #define tHide 360
#define tGMSH_MAJOR_VERSION 361 #define tGetValue 361
#define tGMSH_MINOR_VERSION 362 #define tGMSH_MAJOR_VERSION 362
#define tGMSH_PATCH_VERSION 363 #define tGMSH_MINOR_VERSION 363
#define tAFFECTDIVIDE 364 #define tGMSH_PATCH_VERSION 364
#define tAFFECTTIMES 365 #define tAFFECTDIVIDE 365
#define tAFFECTMINUS 366 #define tAFFECTTIMES 366
#define tAFFECTPLUS 367 #define tAFFECTMINUS 367
#define tOR 368 #define tAFFECTPLUS 368
#define tAND 369 #define tOR 369
#define tNOTEQUAL 370 #define tAND 370
#define tEQUAL 371 #define tNOTEQUAL 371
#define tGREATEROREQUAL 372 #define tEQUAL 372
#define tLESSOREQUAL 373 #define tGREATEROREQUAL 373
#define UNARYPREC 374 #define tLESSOREQUAL 374
#define tMINUSMINUS 375 #define UNARYPREC 375
#define tPLUSPLUS 376 #define tMINUSMINUS 376
#define tPLUSPLUS 377
...@@ -297,7 +299,7 @@ typedef union YYSTYPE ...@@ -297,7 +299,7 @@ typedef union YYSTYPE
List_T *l; List_T *l;
} }
/* Line 1529 of yacc.c. */ /* Line 1529 of yacc.c. */
#line 301 "Gmsh.tab.hpp" #line 303 "Gmsh.tab.hpp"
YYSTYPE; YYSTYPE;
# define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1 # define YYSTYPE_IS_DECLARED 1
......
...@@ -88,7 +88,7 @@ void FixRelativePath(const char *in, char *out); ...@@ -88,7 +88,7 @@ void FixRelativePath(const char *in, char *out);
%token tAtan tAtan2 tSinh tCosh tTanh tFabs tFloor tCeil %token tAtan tAtan2 tSinh tCosh tTanh tFabs tFloor tCeil
%token tFmod tModulo tHypot %token tFmod tModulo tHypot
%token tPrintf tSprintf tStrCat tStrPrefix tStrRelative %token tPrintf tSprintf tStrCat tStrPrefix tStrRelative
%token tBoundingBox tDraw tToday tCreateTopology %token tBoundingBox tDraw tToday tSyncModel tCreateTopology
%token tPoint tCircle tEllipse tLine tSphere tPolarSphere tSurface tSpline tVolume %token tPoint tCircle tEllipse tLine tSphere tPolarSphere tSurface tSpline tVolume
%token tCharacteristic tLength tParametric tElliptic %token tCharacteristic tLength tParametric tElliptic
%token tPlane tRuled tTransfinite tComplex tPhysical tCompound %token tPlane tRuled tTransfinite tComplex tPhysical tCompound
...@@ -1984,11 +1984,16 @@ Command : ...@@ -1984,11 +1984,16 @@ Command :
{ {
exit(0); exit(0);
} }
| tSyncModel tEND
{
// FIXME: this is a hack to force a transfer from the old DB to
// the new DB. This will become unnecessary if/when we fill the
// GModel directly during parsing.
GModel::current()->importGEOInternals();
}
| tBoundingBox tEND | tBoundingBox tEND
{ {
CTX::instance()->forcedBBox = 0; CTX::instance()->forcedBBox = 0;
// make sure we transfer everything into GModel before computing
// the bounding box
GModel::current()->importGEOInternals(); GModel::current()->importGEOInternals();
SetBoundingBox(); SetBoundingBox();
} }
......
This diff is collapsed.
...@@ -1601,6 +1601,10 @@ Suspends the execution of Gmsh during @var{expression} seconds. ...@@ -1601,6 +1601,10 @@ Suspends the execution of Gmsh during @var{expression} seconds.
@item System @var{char-expression}; @item System @var{char-expression};
Executes a system call. Executes a system call.
@item SyncModel;
Forces an immediate transfer from the old geometrical database into the
new one (this transfer normally occurs right after a file is read).
@item Include @var{char-expression}; @item Include @var{char-expression};
Includes the file named @var{char-expression} at the current position in the Includes the file named @var{char-expression} at the current position in the
input file. The include command should be given on a line of its own. If input file. The include command should be given on a line of its own. If
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment