OUTPUT_ERROR

Output
Attention: This command is in the beta stage and the format may change over time.
*OUTPUT_ERROR
error
Parameter definition
VariableDescription
error Error message
Description

This command stops the simulation and displays a user-defined error message. The error message is limited to 80 characters.

Example
User-defined error

The side length of a cube is defined by parameter L. If L is less than or equal to zero, the simulation is stopped, and the error message is displayed.

*PARAMETER
L = 0.0 "Side length of cube"
~if %L <= 0
*OUTPUT_ERROR
"ERROR: Parameter %L must be greater than zero."
~end_if
*COMPONENT_BOX
1, 1, 2, 2, 2
-%L/2, -%L/2, -%L/2, %L/2, %L/2, %L/2
*MAT_ELASTIC
1, 7800, 210e9, 0.3
*PART
1, 1
*END