Skip to content

Correct T_pSX in moist air to avoid simulation error when size X is 1#303

Open
CorentinLepais wants to merge 1 commit intoDLR-SR:mainfrom
CorentinLepais:MoistAir_T_psX_simulationError
Open

Correct T_pSX in moist air to avoid simulation error when size X is 1#303
CorentinLepais wants to merge 1 commit intoDLR-SR:mainfrom
CorentinLepais:MoistAir_T_psX_simulationError

Conversation

@CorentinLepais
Copy link
Copy Markdown
Contributor

The current implementation of the function T_psX in Moist Air leads to a simulation error when using the function without providing the complete mass fraction X vector {X[Water],X[Air]}. The function has been updated to test the size of the input mass fraction vector X and re-calculate the mass fraction of air X[Air] if missing.

Closes #302

@CorentinLepais CorentinLepais added this to the next-MINOR-version milestone Apr 8, 2026
@CorentinLepais CorentinLepais self-assigned this Apr 8, 2026
@CorentinLepais
Copy link
Copy Markdown
Contributor Author

Regression tests ok

@CorentinLepais CorentinLepais requested a review from Nicsda April 8, 2026 18:21
@CorentinLepais CorentinLepais marked this pull request as ready for review April 8, 2026 18:21
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.

Simulation error when using MoistAir.T_psX

1 participant