From 978bea358dbbcb30e19679d744217c2e7c8eea56 Mon Sep 17 00:00:00 2001 From: Ian Bell Date: Thu, 18 Sep 2014 19:17:27 +0200 Subject: [PATCH] Fixed order of inputs for update_ph of state class Signed-off-by: Ian Bell --- wrappers/Python/CoolProp/CoolProp.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrappers/Python/CoolProp/CoolProp.pyx b/wrappers/Python/CoolProp/CoolProp.pyx index 3147dd50..25b301ae 100644 --- a/wrappers/Python/CoolProp/CoolProp.pyx +++ b/wrappers/Python/CoolProp/CoolProp.pyx @@ -454,7 +454,7 @@ cdef class State: h: float Enthalpy [kJ/kg] """ - self.pAS.update(HmassP_INPUTS, p*1000, h*1000) + self.pAS.update(HmassP_INPUTS, h*1000, p*1000) self.T_ = self.pAS.T() self.rho_ = self.pAS.rhomass()