Giter VIP home page Giter VIP logo

Comments (3)

andreas-junghanns avatar andreas-junghanns commented on August 24, 2024

What status value should be returned by fmi3DoStep when earlyReturn=fmi3True, is fmi3OK still acceptable? What about when terminateSimulation is also set to fmi3True?

The way I read our definition of the return codes, fmi3OK must be returned in all cases, because any of these cases are normal use cases.
If this is not clear enough, we should find a place where to state this, please suggest where.

from fmi-standard.

Maplesoft-fmigroup avatar Maplesoft-fmigroup commented on August 24, 2024

Perhaps I'm misunderstanding the use case for earlyReturn. Can we set earlyReturn/terminateSimulation=fmi3True if an issue occurred (ex. div. by zero) during integration prior to end of the step? Normally (without the earlyReturn mechanism) we'd return fmi3Error in this case.

from fmi-standard.

andreas-junghanns avatar andreas-junghanns commented on August 24, 2024

Perhaps I'm misunderstanding the use case for earlyReturn. Can we set earlyReturn/terminateSimulation=fmi3True if an issue occurred (ex. div. by zero) during integration prior to end of the step? Normally (without the earlyReturn mechanism) we'd return fmi3Error in this case.

The standard lists in "4.1.3. Early Return" the reasons for early return from doStep, errors are not mentioned, because the general idea of early return is that an additional communication step is introduced before the simulation continues.
For errors that cause the end of the simulation, the return code is the more general way to indicate to the importer the end of the simulation.

Again, if this is not clear enough: please propose where you would expect a sentence to clarify this issue.

from fmi-standard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.