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

Undefined return value in Polynomials_Temp.integral #1583

Closed
modelica-trac-importer opened this issue Jan 15, 2017 · 1 comment
Closed

Undefined return value in Polynomials_Temp.integral #1583

modelica-trac-importer opened this issue Jan 15, 2017 · 1 comment
Labels
bug Critical/severe issue L: Media Issue addresses Modelica.Media

Comments

@modelica-trac-importer
Copy link

Reported by jmattsson on 9 Oct 2014 11:54 UTC
The function Modelica.Media.Incompressible.TableBased.Polynomials_Temp.integral returns a vector where all but the last cell are assigned values in the function. According to 12.4.4 in the 3.2r2 specification, that means that the value of cell that is never assigned is undefined.

There are test models (ModelicaTest.Math.MatricesInModel & ModelicaTest.TestAllFunctions) that call this function and asserts that the last value in the array is equal to 0.

The function should be updated to explicitly assign 0 to the last cell in the array.


Migrated-From: https://trac.modelica.org/Modelica/ticket/1583

@modelica-trac-importer modelica-trac-importer added bug Critical/severe issue L: Media Issue addresses Modelica.Media labels Jan 15, 2017
@modelica-trac-importer
Copy link
Author

Comment by jmattsson on 9 Oct 2014 12:05 UTC
aa6ed25
Fixed undefined output in Polynomials_Temp.integral.

923254f
Merged fix of undefined output in Polynomials_Temp.integral to 3.2.1 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Critical/severe issue L: Media Issue addresses Modelica.Media
Projects
None yet
Development

No branches or pull requests

1 participant