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

Add units to mathematical constants #4155

Merged

Conversation

mestinso
Copy link
Collaborator

Added units to mathematical constants

  • Facilitates unit checking for equations that use these variables

@mestinso mestinso linked an issue Jun 13, 2023 that may be closed by this pull request
Copy link
Contributor

@henrikt-ma henrikt-ma left a comment

Choose a reason for hiding this comment

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

Even though this PR goes beyond only adding unit = "1" (contrary to #4046 (comment)), I am fine with all the changes.

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.

Ok

@mestinso mestinso merged commit f5f6ffb into modelica:master Jun 21, 2023
@tobolar tobolar changed the title Added units to mathematical constants Add units to mathematical constants Jun 21, 2023
HansOlsson added a commit to HansOlsson/Modelica that referenced this pull request Jun 26, 2023
This corrects an error introduced by modelica#4155
@HansOlsson HansOlsson mentioned this pull request Jun 26, 2023
@beutlich beutlich added the L: Constants Issue addresses Modelica.Constants label Jun 26, 2023
@beutlich beutlich added this to the MSL4.1.0 milestone Jun 26, 2023
HansOlsson added a commit to HansOlsson/Modelica that referenced this pull request Sep 18, 2023
 since it is causing too many regressions for a minor release.

With proposed unit-checking in Dymola this reduces the warnings from 2301 to 1224 (Most - but not all are unit-related.)

Obviously many of them could be corrected, but I don't see that we have the resources to focus on that for this minor release.
The first models found were CompareTransformers, SeriesResonance in Modelica.Electrical.Analog.Examples.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: Constants Issue addresses Modelica.Constants
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Units for mathematical constants?
4 participants