Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

how to utilize “terminate”?

how to utilize “terminate”?

in the “MoonLanding” example,
“when apollo.altitude < 20 then
    terminate("The moon lander touches the ground of the moon");
  end when;”
but  the simulation result is not expected,the altitude is smaller than 0.
could someone tell me why?

Re: how to utilize “terminate”?

As far as I know, OpenModelica only handles assertions, not terminate

Re: how to utilize “terminate”?

Thank  you !

Re: how to utilize “terminate”?

Hi,I want to know how I can make the programe end when a condition occurs. in  OpenModelica.
Thank  you!
cherry

There are 0 guests and 0 other users also viewing this topic
You are here: