Opened 6 years ago

Closed 6 years ago

#5510 closed defect (invalid)

function can not return or take array

Reported by: mehulsutariya09@… Owned by: Lennart Ochel
Priority: high Milestone:
Component: Third-Party Libraries Version: v1.13.2
Keywords: Cc:

Description

our developed library works well with the v1.11 but now it gives us a Translation error.
and analysis of this error leads us that function position value cannot be read by the open Modelica when the function returns the array and also take the array as input.

example:
library https://github.com/FOSSEE/OMChemSim

run the Test.msTPUNIQUAC

error is in the Files.Thermodynamic_Packages.UNIQUAC
a function which creates the error Files.Thermodynamic_Function.PoyntingCF

(this is only one example, same error has also occurred in other function also)

Change History (1)

comment:1 by Martin Sjölund, 6 years ago

Component: Code GenerationThird-Party Libraries
Milestone: Future
Resolution: invalid
Status: newclosed

I don't know how it could have worked in v1.11. The fact that it passes the frontend in 1.13 is also a bit disturbing.

Use -d=newInst to enable to the new frontend of OpenModelica and you will be able to see the errors more clearly. Also Dymola gives the same errors as OpenModelica -d=newInst. If the program passes the frontend but the original model has errors in it, unexpected things happen. It could be that we should detect this in the old front-end, but the new one already handles this so working on the old frontend is not really desirable.

The first error is [Simulator.mo:4239] Error: Variable resMolSpHeat[i] not found in scope Material_Stream.

Note: See TracTickets for help on using tickets.