Opened 15 years ago

Last modified 14 years ago

#1213 closed defect (fixed)

semilinear "semiLinear_rettype was not declared in this scope"

Reported by: perob88 Owned by: perob88
Priority: high Milestone:
Component: Version:
Keywords: Cc: perob88, Martin Sjölund

Description

The following small model fails during compilation with the above statement...

class semilineartest
  parameter Real a=5;
  parameter Real b=5;
  
  Real c;
  Real x(start=5);
equation
  der(x) = -1;
  c = semiLinear(x,a,b);
end semilineartest;

Change History (4)

comment:1 by Per Östlund, 15 years ago

Fixed formatting of code.

comment:2 by Martin Sjölund, 15 years ago

Verified; seems to pass through the front-end, but missing in runtime.
Could either be expanded to the if-expression it represents in front-end or added as a function in the runtime.

comment:3 by Adrian Pop, 15 years ago

I think the best would be to add it in the runtime.
Then we can easily change the implementation if we want.

comment:4 by Martin Sjölund, 14 years ago

Fixed in revision 5894

Note: See TracTickets for help on using tickets.