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
Final Complex parameters not updating after compilation #7156
Comments
perost
added a commit
to perost/OpenModelica
that referenced
this issue
Feb 14, 2021
- Try to inline operator record constructors instead of evaluating them when trying to split them during flattening.
perost
added a commit
to perost/OpenModelica
that referenced
this issue
Feb 14, 2021
- Try to inline operator record constructors instead of evaluating them when trying to split them during flattening.
perost
added a commit
to perost/OpenModelica
that referenced
this issue
Feb 14, 2021
- Try to inline operator record constructors instead of evaluating them when trying to split them during flattening.
My fix is causing some minor changes in some of our test cases. It's probably fine, but I will do some more testing to make sure before merging the PR. |
perost
added a commit
to perost/OpenModelica
that referenced
this issue
Feb 15, 2021
- Try to inline operator record constructors instead of evaluating them when trying to split them during flattening.
I found another related problem for the following model model test
parameter Real phi = Modelica.Constants.pi/4;
final parameter Complex x = Complex(cos(phi),sin(phi))*1;
end test; If |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When changing the real and imaginary variables after compilation, the complex number does not change.
Steps to reproduce
If one compiles the example model below, and after compilation tries to change
a
orb
, this change is not reflected incplx1
. If I am not mistaken,cplx1
should be updated accordingly. At least that is what happens withReal
parameters.I am running OpenModelica v1.16.2.
The text was updated successfully, but these errors were encountered: