IDAES/idaes-pse

Crash in state initialization when init_VLE flag is false

vova292 opened this issue · 3 comments

In the line linked above, the variable vap_frac does not exist if init_VLE flag is False. The else section is missing.

So when init_VLE is False the code will crash

@vova292 Thank you for filing this issue (and #1423) - I've confirmed both of them and have a fix ready for testing and review. Do you happen to have a simple test case that triggers this issue at all?

I had created this by using a Feed unit model in a flowsheet. Using the Coolprop property package with multiple components but a single Liquid phase for all the components. The valid phase was also just liquid.

Unfortunately i dont have that running example at the moment.

@vova292 I think I put together an example that will test for this case. PR #1425 will hopefully fix this and your other issue.