Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dimension errors in functions of Modelica.Media.Interfaces.PartialSimpleMedium #4390

Merged
merged 1 commit into from
May 22, 2024

Conversation

casella
Copy link
Contributor

@casella casella commented Apr 16, 2024

See #4389.

@beutlich beutlich changed the title Fixes #4389 Fix dimension errors in functions of Modelica.Media.Interfaces.PartialSimpleMedium Apr 16, 2024
@beutlich beutlich added the L: Media Issue addresses Modelica.Media label Apr 16, 2024
Copy link
Member

@beutlich beutlich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be good to also have a test model for all affected functions in ModelicaTest.Media.TestOnly to not break it again accidentically in the future.

Copy link
Contributor

@HansOlsson HansOlsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems ok.

However, the underlying design is a bit odd since setState_phX is defined as taking an input of size nX or nX-1.

But it seems too late to redesign that and I don't think a syntax such as input MassFraction X[nX or nX-1]; would be helpful!

@Esther-Devakirubai
Copy link
Contributor

Backporting to maintenance branch by #4453

@beutlich beutlich modified the milestones: MSL4.1.0, maintenance Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: Media Issue addresses Modelica.Media
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants