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

Commit 28d0c1a

Browse files
committed
Use ZeroCrossingSet where necessary
1 parent 2e52c37 commit 28d0c1a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Compiler/BackEnd/FindZeroCrossings.mo

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ end findZeroCrossingsIfEqns;
811811
protected function findZeroCrossingsinJacobians
812812
input BackendDAE.StrongComponents inStrongComponents;
813813
input BackendDAE.ZeroCrossingSet zeroCrossingLst;
814-
input DoubleEndedList<BackendDAE.ZeroCrossing> relationsLst;
814+
input BackendDAE.ZeroCrossingSet relationsLst;
815815
input BackendDAE.ZeroCrossingSet samplesLst;
816816
input BackendDAE.Variables allVariables;
817817
input BackendDAE.Variables globalKnownVars;
@@ -855,7 +855,7 @@ end findZeroCrossingsinJacobians;
855855
protected function replaceZCExpinFullJacobian
856856
input BackendDAE.FullJacobian fullJac;
857857
input BackendDAE.ZeroCrossingSet zeroCrossingLst;
858-
input DoubleEndedList<BackendDAE.ZeroCrossing> relationsLst;
858+
input BackendDAE.ZeroCrossingSet relationsLst;
859859
input BackendDAE.ZeroCrossingSet samplesLst;
860860
input BackendDAE.Variables allVariables;
861861
input BackendDAE.Variables globalKnownVars;
@@ -881,7 +881,7 @@ end replaceZCExpinFullJacobian;
881881
protected function replaceZCExpinSymJacobian
882882
input BackendDAE.SymbolicJacobian symJac;
883883
input BackendDAE.ZeroCrossingSet zeroCrossingLst;
884-
input DoubleEndedList<BackendDAE.ZeroCrossing> relationsLst;
884+
input BackendDAE.ZeroCrossingSet relationsLst;
885885
input BackendDAE.ZeroCrossingSet samplesLst;
886886
input BackendDAE.Variables allVariables;
887887
input BackendDAE.Variables globalKnownVars;
@@ -900,7 +900,7 @@ end replaceZCExpinSymJacobian;
900900
protected function replaceZeroCrossingsJacBackend
901901
input BackendDAE.BackendDAE inBackendDAE;
902902
input BackendDAE.ZeroCrossingSet zeroCrossingLst;
903-
input DoubleEndedList<BackendDAE.ZeroCrossing> relationsLst;
903+
input BackendDAE.ZeroCrossingSet relationsLst;
904904
input BackendDAE.ZeroCrossingSet samplesLst;
905905
input BackendDAE.Variables allVariables;
906906
input BackendDAE.Variables globalKnownVars;

Compiler/SimCode/SimCodeMain.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ protected
11311131
list<DAE.ComponentRef> discreteModelVars;
11321132
list<BackendDAE.TimeEvent> timeEvents;
11331133
BackendDAE.ZeroCrossingSet zeroCrossingsSet, sampleZCSet;
1134-
DoubleEndedList<BackendDAE.ZeroCrossing> de_relations;
1134+
BackendDAE.ZeroCrossingSet de_relations;
11351135
list<BackendDAE.ZeroCrossing> zeroCrossings, sampleZC, relations;
11361136

11371137
BackendDAE.Variables daeVars, resVars, algStateVars, auxVars;
@@ -1179,7 +1179,7 @@ algorithm
11791179
timeEvents := inBackendDAE.shared.eventInfo.timeEvents;
11801180
(zeroCrossings,relations,sampleZC) := match inBackendDAE.shared.eventInfo
11811181
case BackendDAE.EVENT_INFO(zeroCrossings=zeroCrossingsSet, relations=de_relations, samples=sampleZCSet)
1182-
then (ZeroCrossings.toList(zeroCrossingsSet), DoubleEndedList.toListNoCopyNoClear(de_relations), ZeroCrossings.toList(sampleZCSet));
1182+
then (ZeroCrossings.toList(zeroCrossingsSet), ZeroCrossings.toList(de_relations), ZeroCrossings.toList(sampleZCSet));
11831183
end match;
11841184

11851185
// initialization stuff

0 commit comments

Comments
 (0)