Warning Empty Iterative Domain
- Type
Selection
- Range
The settings listed below
- Default
Error_in_develop_else_off
For some iterative operators, for example Mean, the expression cannot be correctly evaluated if there are no elements in the iterative domain.
|
Do not issue a warning. The result is set to 0.0. |
|
Issue a warning and post it to the global error and warning collector. |
|
Take action depending on the option ‘Common warning default’. |
|
Issue a warning and post it to the nearest error handler. |
|
Take action depending on the option ‘Strict warning default’. |
|
Issue an error. |
|
In a developer system same as Error, in a deployment system same as Warning_handle |
|
In a developer system same as Error, in a deployment system same as Off |
|
In a developer system same as Warning_handle, in a deployment system same as Off |
An example of such a situation arises when executing the following model:
Set Cities {
Index: c;
Definition: data { Paris, London };
}
Parameter selectedCities {
IndexDomain: c;
}
Parameter Population {
IndexDomain: c;
}
Parameter result;
Procedure MainExecution {
Body: {
result := Mean( c | selectedCities(c), Population(c) );
}
}
When executing procedure ‘MainExecution’, if the parameter ‘selectedCities’ is empty the statement cannot calculate a valid Mean.
Note
With the option Maximal Number of Warnings Reported you can set the maximal number of warnings that are shown in errors/warnings and message window.
Learn more about