Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Compilation process failed due to function

Compilation process failed due to function

Hi,
I wrote a function HVapId to calculate vapor enthaply. Used it in a model and i works  fine. I wrote HLiqId for liquid enthalpy which inturn calls HvapId for calculations. These 2 functions worked normally in a model.
But while i'm using it in a different model,  compilation process fails.

https://www.openmodelica.org/images/agorapro/attachments/5044/mini_benzene.PNG

So, I changed algorithm in HvapId and saved it as HvapId1. So, the new model works with HvapId and HLiqId (which uses HVapId1 instead of HVapId). both the functions HvapId and HvapId1 have same inputs and output just a different algo. The only problem is when I call HvapId from HliqId the compilation fails. If I call HVapId1 from HLiqId it runs! But the algorithm in HVapId1 fails for some cases, so I want to use HVapId.

Since both the functions HVapId and HVapId1 have same inputs, I don't understand why there is an issue with compilation. That too only for a different model.
I'll try to reproduce the error with a simple model and post the model.

-Swaroop

Edited by: swaroop.katta - Oct-08-17 13:12:12
Attachments:
There are 0 guests and 0 other users also viewing this topic
You are here: