Skip to content

Unexpected behaviour with setPT() #3

@gdmiron

Description

@gdmiron

https://bitbucket.org/gems4/xgems/issues/21/unexpected-behaviour-with-setpt

System
Python interface

xgems: 1.1.2

pygems: 1.1.2

gems3k: 4.4.2

windows 11

Description

(My) Expected behaviour: setPT(P, T) returns False if it encountered some issues and did not manage to set the new P and T. For example, if the following ipmlog is obtained:

[2025-06-25 20:30:27.824] [ipmlog] [info] In node 0: Given TK=295.000000 is beyond the interpolation range for thermodynamic data near boundary T_= 294.150000

Observed behaviour: setPT(P, T) returns True when the issue above is encountered.

I should also add that it would be convenient, but not strictly necessary, if a warning was printed when some issues are encountered.


Best wishes,

Lorenzo

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions