Open maltelenz opened 1 month ago
I would agree that it should be an error(*) and that it isn't specified; so it should be added. The alternative would be that some wanted to use a null-ptr for a singleton external object without any "payload" - but that just seems wrong and easy to improve.
*: Technically it would just be an error - similar as calling ModelicaError not directly stopping the integration; as one could imagine that the external object is inside a function that is called during integration and it is possible to handle it by redoing the step, but that seems very esoteric.
Is it an error that should stop simulation if an
ExternalObject
constructor
returns0
?I couldn't find any support for this interpretation in the specification as I read it, but it could be considered a sensible behavior.
Example:
The issue touching closest to this is https://github.com/modelica/ModelicaSpecification/issues/1071 .