Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit b3683ed

Browse files
Willi BraunOpenModelica-Hudson
authored andcommitted
[BE] differentiate the inner exp of getPart
Belonging to [master]: - #2276
1 parent 65beadf commit b3683ed

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Compiler/BackEnd/Differentiate.mo

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,10 @@ algorithm
14621462
exp_1 = Expression.makeZeroExpression(Expression.arrayDimension(tp));
14631463
then (exp_1, inFuncs);
14641464

1465-
case ("$getPart",_) then (exp, inFuncs);
1465+
case ("$getPart",_) equation
1466+
(exp_1, funcs) = differentiateExp(exp, inDiffwrtCref, inInputData,inDiffType,inFuncs, maxIter);
1467+
then (exp_1, funcs);
1468+
14661469
case ("firstTick",_) then (exp, inFuncs);
14671470
case ("interval",_) then (exp, inFuncs);
14681471

0 commit comments

Comments
 (0)