... | ... | @@ -103,7 +103,7 @@ DefineConstant[ flag = {1, Choices{1,2,3}, Name "a flag changing the behavior of |
|
|
```
|
|
|
Let us now consider a more specific model, that uses the generic model but only makes sense for a specific value of `flag`, say `2`. Instead of modifying the generic model to suit the needs of the specific model, the specific model can simply be written as
|
|
|
```cpp
|
|
|
flag = 2; //
|
|
|
flag = 2;
|
|
|
Include "generic_model.pro"
|
|
|
```
|
|
|
The user-visible ONELAB variable `"a flag changing the behavior of the model"` will never be defined, and for the user of the specific model, everything behaves as if `flag` is not a parameter.
|
... | ... | |