EMI_IsFixedStepSolver (EMI Function)
- Updated2023-03-14
- 1 minute(s) read
EMI_IsFixedStepSolver (EMI Function)
Owning Class: Simulation Information
Requires: Control Design and Simulation Module
Prototype
char EMI_IsFixedStepSolver(emiRef model);
Description
Checks whether the ordinary differential equation (ODE) solver for the current simulation is a fixed step-size ODE solver.
Inputs
| Name | Description |
|---|---|
| model | Specifies a reference to the external model. Use this reference as an input to other EMI functions. Do not modify model directly. |
Return Value
Returns a non-zero value if the ODE solver for the current simulation is a fixed step-size ODE solver. This function returns 0 if the ODE solver is a variable step-size ODE solver.
Examples
char isVariableStepSolver = !EMI_IsFixedStepSolver(model);