Ejemplo n.º 1
0
 /// <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);
     }
 }
Ejemplo n.º 2
0
 /// <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);
     }
 }