Opened 12 years ago
Closed 10 years ago
#2329 closed defect (duplicate)
fails to flatten model using partial derivatives
| Reported by: | Peter Aronsson | Owned by: | somebody |
|---|---|---|---|
| Priority: | high | Milestone: | 1.9.3 |
| Component: | Frontend | Version: | trunk |
| Keywords: | Cc: |
Description
The frontend fails to flatten model using partial derivative:
model partialDerivativeTest
Real x,y;
function surfaceFunction
input Real x;
input Real y;
output Real z;
protected
parameter Real a=3;
algorithm
z := a*x*x;
annotation(Inline=true);
end surfaceFunction;
function surfaceFunction_dx = der(surfaceFunction,x); //Partial derivative
function surfaceFunction_dy = der(surfaceFunction,y); // Partial derivative
Real z;
Real n[3] "normal vector";
equation
x = 4;
y = 3;
z = surfaceFunction(x,y);
n = {surfaceFunction_dx(x,y),surfaceFunction_dy(x,y),-1};
end partialDerivativeTest;
Gives the error:
Error: [<interactive>:23:4-23:60] Class surfaceFunction_dx not found in scope partialDerivativeTest (looking for a function or record).
Change History (4)
comment:1 by , 12 years ago
| Milestone: | 1.9.0 → 1.9.1 |
|---|
comment:2 by , 11 years ago
| Milestone: | 1.9.1 → 1.9.2 |
|---|
This ticket was not closed for 1.9.1, which has now been released. It was batch modified for milestone 1.9.2 (but maybe an empty milestone was more appropriate; feel free to change it).
comment:3 by , 11 years ago
| Milestone: | 1.9.2 → 1.9.3 |
|---|
Milestone changed to 1.9.3 since 1.9.2 was released.
Note:
See TracTickets
for help on using tickets.

Postponed until 1.9.1