Skip to content

Vectorize p_T and bump patch number#54

Merged
henningjp merged 2 commits intoCoolProp:masterfrom
henningjp:pTvect
Oct 13, 2025
Merged

Vectorize p_T and bump patch number#54
henningjp merged 2 commits intoCoolProp:masterfrom
henningjp:pTvect

Conversation

@henningjp
Copy link
Copy Markdown
Contributor

Description of the Change

Optimization of T_p in Region was performed in #17 that resulted in a 2.5x speed-up of that function. The same vecroirzation method was applied here to the reverse p_T function, but with only a 10% increase in speed.

Because of the last few PRs back to #51, which made the T_p function thread safe, the patch number is bumped here to 2.2.1.

Benefits

Very slight speed increase in saturation curve function T_p in Region 4, but now consistent with the reverse p_T function. Having bumped the patch version, this version will be bumped in the main CoolProp code.

Possible Drawbacks

None. Coded with lesson learned from #51 to make this change thread safe.

Verification Process

IAPWS-IF97 verification tables were generated using the top level IF97.cpp program. There were no regressions.

Applicable Issues

No related issues.

@henningjp henningjp merged commit 7aaced0 into CoolProp:master Oct 13, 2025
@henningjp henningjp deleted the pTvect branch October 13, 2025 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant