Skip to content

Commit

Permalink
fixed px
Browse files Browse the repository at this point in the history
  • Loading branch information
thermalogic committed Sep 3, 2023
1 parent 1a9a400 commit f8020eb
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "seuif97"
version = "1.1.1"
version = "1.1.2"
edition = "2021"
authors = ["Cheng Maohua <cmh@seu.edu.cn>"]
description = "The high-speed IAPWS-IF97 package with C and Python binding"
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = seuif97
version = 2.1.7
version = 2.1.8
author=Cheng Maohua
author_email=cmh@seu.edu.cn
keywords = IAPWS-IF97, IF97
Expand Down
2 changes: 1 addition & 1 deletion src/cdecl_c_if97.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub unsafe extern "C" fn px(p: f64, x: f64, o_id: i32) -> f64 {
match o_id {
OP => return p,
OX => return x,
OT => return px_reg4(p, x, o_id) - 273.15,
OT => return px_reg4(p, x, o_id),
_ => return px_reg4(p, x, o_id),
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/python_if97.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ fn px(p: f64, x: f64, o_id: i32) -> f64 {
match o_id {
OP => return p,
OX => return x,
OT => return px_reg4(p, x, o_id) - 273.15,
OT => return px_reg4(p, x, o_id),
_ => return px_reg4(p, x, o_id),
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/r4/region4_pTx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ pub fn px_reg4(p: f64, x: f64, o_id: i32) -> f64 {
let T: f64 = T_saturation(p);
match o_id {
OT => return T - 273.15,
OH | OS | OV | OU | OF | OG | OE => {
OH | OS | OV | OD | OU | OF | OG | OE => {
// region 4 x(0,1) return v,h,s only
let mut rl: f64 = 0.0;
let mut rv: f64 = 0.0;
Expand Down Expand Up @@ -208,7 +208,7 @@ pub fn Tx_reg4(T: f64, x: f64, o_id: i32) -> f64 {
}
let mut r: f64 = 0.0;
match o_id {
OH | OS | OV | OU | OF | OG | OE => {
OH | OS | OV | OD | OU | OF | OG | OE => {
// region 4 x(0,1) return v,h,s only
let mut rl: f64 = 0.0;
let mut rv: f64 = 0.0;
Expand Down
2 changes: 1 addition & 1 deletion src/rust_if97.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ pub fn px(p: f64, x: f64, o_id: i32) -> f64 {
match o_id {
OP => return p,
OX => return x,
OT => return px_reg4(p, x, o_id) - 273.15,
OT => return px_reg4(p, x, o_id),
_ => return px_reg4(p, x, o_id),
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/stdcall_c_if97.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub unsafe extern "stdcall" fn px(p: f64, x: f64, o_id: i32) -> f64 {
match o_id {
OP => return p,
OX => return x,
OT => return px_reg4(p, x, o_id) - 273.15,
OT => return px_reg4(p, x, o_id),
_ => return px_reg4(p, x, o_id),
}
}
Expand Down

0 comments on commit f8020eb

Please sign in to comment.