Skip to content

Commit 9c214ab

Browse files
Fixed wrong variable in p_hrho(h, rho) (#19)
Fixed wrong variable
1 parent d2ee0d4 commit 9c214ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyXSteam/XSteam.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def p_hrho(self, h, rho):
308308

309309
rhos = 1 / self.v_ph(ps, h)
310310

311-
if last_rhos == rhos:
311+
if last_rhos == rho:
312312
self.logger.warning(
313313
"p_hrho stopped iterating after %d steps because values did not converge for input values h %f and rho %f",
314314
step_counter,

0 commit comments

Comments
 (0)