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
Predefined type String misses the fixed attribute #1797
Comments
Comment by hansolsson on 1 Apr 2016 13:34 UTC |
Modified by beutlich on 5 Aug 2016 08:56 UTC |
Comment by hansolsson on 12 Sep 2016 14:28 UTC -- Another possibility would be that "fixed=true" is always true for String, but that wouldn't work for cases like:
Seems simplest to treat like other discrete variables (i.e. as Boolean), but would be ideal to clear it up for all non-Real variables - so "fixed=true" as default if start-attribute is specified. Changing the default for "fixed" would not be good due to (and similarly with String-connector):
-- |
Comment by hansolsson on 23 Sep 2016 13:09 UTC |
Comment by beutlich on 2 Nov 2016 14:35 UTC By the way, it would be nice if blanks are used consistently in |
Comment by hansolsson on 3 Nov 2016 11:33 UTC
This is now done in r9517
I agree that consistently is desirable, but this got me thinking, and I see another problem and don't want to change this before figuring out exactly how it should be. For start-values we say But when we write To me the intention is clear, but I think I rely more on what the specification should mean than on what it says - and would like to clarify this. The syntax for checking if the value of the fixed-attribute is false would in Modelica be: One possibility is to replace "For all variables declared as constant and parameter, with This should probably be another ticket, and thus I close this one. |
Reported by beutlich on 7 Oct 2015 07:37 UTC
According to MLS 3.3r1 section 4.8.4 the predefined type String misses the fixed attribute (as opposed to all other predefined types). However there is some relevance to have the fixed attribute as well, e.g., the following test model
raises a warning in pedantic mode.
Migrated-From: https://trac.modelica.org/Modelica/ticket/1797
The text was updated successfully, but these errors were encountered: