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

Commit a616890

Browse files
lochelOpenModelica-Hudson
authored andcommitted
Make dummy states derivatives bidirectional
- Fix ticket:5219 Belonging to [master]: - #2788
1 parent 8fe98ae commit a616890

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Compiler/BackEnd/IndexReduction.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3691,7 +3691,7 @@ algorithm
36913691
/* Dummy variables are algebraic variables, hence fixed = false */
36923692
dattr = BackendVariable.getVariableAttributefromType(tp);
36933693
odattr = DAEUtil.setFixedAttr(SOME(dattr), SOME(DAE.BCONST(false)));
3694-
dummy_derstate = BackendDAE.VAR(dummyderName,BackendDAE.DUMMY_DER(),dir,prl,tp,NONE(),NONE(),dim,source,odattr,ts,hideResult,comment,ct,io, false);
3694+
dummy_derstate = BackendDAE.VAR(dummyderName,BackendDAE.DUMMY_DER(),DAE.BIDIR(),prl,tp,NONE(),NONE(),dim,source,odattr,ts,hideResult,comment,ct,io, false);
36953695
kind = if intEq(dn,0) then BackendDAE.DUMMY_STATE() else BackendDAE.DUMMY_DER();
36963696
dummy_state = BackendDAE.VAR(name,kind,dir,prl,tp,NONE(),NONE(),dim,source,odattr,ts,hideResult,comment,ct,io, false);
36973697
dummy_state = if intEq(dn,0) then inVar else dummy_state;

0 commit comments

Comments
 (0)