/// <summary> /// /// </summary> /// <param name="eventIndicators">Array with length of the number of event indicators.</param> /// <returns></returns> public Fmi2Status GetEventIndicators(double[] eventIndicators) { if (wrapper != IntPtr.Zero) { return(FmiFunctions.GetEventIndicators(wrapper, eventIndicators, new UIntPtr((uint)eventIndicators.Length))); } else { return(Fmi2Status.fmi2Fatal); } }
/// <summary> /// /// </summary> /// <param name="x">Array with length of the number of states.</param> /// <returns></returns> public Fmi2Status SetContinuousStates(double[] x) { if (wrapper != IntPtr.Zero) { return(FmiFunctions.GetEventIndicators(wrapper, x, new UIntPtr((uint)x.Length))); } else { return(Fmi2Status.fmi2Fatal); } }