Пример #1
0
    public virtual void update(input_pairs input_pair, double Value1, double Value2)
    {
        //Internal look up



        //CoolProp Lookup
        if (Environment.Is64BitProcess)
        {
            CoolPropPINVOKE64.SWIGPendingException.ResetErrors();
            CoolPropPINVOKE64.AbstractState_update(swigCPtr, (int)input_pair, Value1, Value2);
            if (CoolPropPINVOKE64.SWIGPendingException.Pending)
            {
                throw CoolPropPINVOKE64.SWIGPendingException.Retrieve();
            }
        }
        else
        {
            CoolPropPINVOKE.SWIGPendingException.ResetErrors();
            CoolPropPINVOKE.AbstractState_update(swigCPtr, (int)input_pair, Value1, Value2);
            if (CoolPropPINVOKE.SWIGPendingException.Pending)
            {
                throw CoolPropPINVOKE.SWIGPendingException.Retrieve();
            }
        }
    }