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

Commit ff80ea0

Browse files
lochelOpenModelica-Hudson
authored andcommitted
Don't apply removeSimpleEquations to clocked partitions
during pre-optimization
1 parent 5f0ad98 commit ff80ea0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Compiler/BackEnd/RemoveSimpleEquations.mo

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,13 @@ protected
475475
DAE.Exp e1,e2,e3,e4;
476476

477477
algorithm
478+
if BackendDAEUtil.isClockedSyst(inSystem) then
479+
outSystem := inSystem;
480+
outShared := inShared;
481+
outTpl := inTpl;
482+
return;
483+
end if;
484+
478485
try
479486
BackendDAE.EQSYSTEM(orderedVars=vars, orderedEqs=eqns) := outSystem;
480487
((repl, globalFindSimple, unReplaceable, maxTraversals)) := inTpl;

0 commit comments

Comments
 (0)