... | ... | @@ -44,7 +44,7 @@ See below for all the optional attributes that can be specified in addition to t |
|
|
|
|
|
The behavior of `DefineNumber` and `DefineString` is similar to the behavior of the functions with the same names in Python clients.
|
|
|
|
|
|
#### Examples
|
|
|
### Examples
|
|
|
|
|
|
```cpp
|
|
|
x = DefineNumber[1, Name "My variable"];
|
... | ... | @@ -98,7 +98,7 @@ The user-visible ONELAB variable `"a flag changing the behavior of the model"` w |
|
|
|
|
|
Note that in addition to setting the values of the local variables in the input `.geo` and `.pro` files, both Gmsh and GetDP allow to pass local variable definitions on the command line, with the `-setnumber name value` and `-setstring name value` command line options.
|
|
|
|
|
|
#### Examples
|
|
|
### Examples
|
|
|
|
|
|
```cpp
|
|
|
DefineConstant[ x = {1, Name "My variable"} ];
|
... | ... | |