mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: support field width for #eval expressions
For example,
```
entry #eval 10 { vector(rand(), 0, 0) };
```
ENH: be more generous and ignore trailing ';' in expressions
STYLE: adjust parse token name for tensor::I
This commit is contained in:
@ -68,4 +68,8 @@ apiMonth #eval{ ($FOAM_API % 100) };
|
||||
empty #eval "";
|
||||
|
||||
|
||||
// Field of specified length
|
||||
random #eval 4 { vector(rand(), 0, 0) ; /* trailing rubbish */ ; };
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
Reference in New Issue
Block a user