-
Notifications
You must be signed in to change notification settings - Fork 153
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
CDL.Utilities.SunRiseSet has NaN in OpenModelica #2835
Comments
mwetter
added a commit
that referenced
this issue
Jan 4, 2022
mwetter
added a commit
that referenced
this issue
Jan 4, 2022
mwetter
added a commit
that referenced
this issue
Jan 4, 2022
mwetter
added a commit
that referenced
this issue
Jan 4, 2022
mwetter
added a commit
that referenced
this issue
Jan 4, 2022
This was referenced Jan 4, 2022
mwetter
added a commit
that referenced
this issue
Jan 7, 2022
mwetter
added a commit
that referenced
this issue
Jan 7, 2022
* Changed implementation to avoid NaN in OpenModelica. For #2835 * Set BuildingsPy hash to same version as in .travis.yml * Updated reference results
mwetter
added a commit
that referenced
this issue
Jan 7, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The block
CDL.Utilities.SunRiseSet
produces NaN in OpenModelica.The reason is that it uses a variable
timDif
atmodelica-buildings/Buildings/Controls/OBC/CDL/Utilities/SunRiseSet.mo
Line 102 in dabee4e
This issue is to propagate this variable as an input argument.
Moreover, the function
sunSet
andsunRise
have variables of the same name (sunSet
andsunRise
). While legal in Modelica, this is confusing. Therefore, these functions will be renamed.As all code changes is in protected functions and variables, this change is backwards compatible.
The text was updated successfully, but these errors were encountered: