Skip to content

Commit

Permalink
- remove some unused functions
Browse files Browse the repository at this point in the history
- fix sample arguments for BackendQSS


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@14872 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
lochel committed Jan 22, 2013
1 parent ed73736 commit 88ed7fe
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 399 deletions.
7 changes: 3 additions & 4 deletions Compiler/BackEnd/BackendDAECreate.mo
Expand Up @@ -3714,11 +3714,10 @@ algorithm
:= Expression.traverseExpTopDown(e, collectZC, ((inZeroCrossings, inrelationsinZC, inSamplesLst, incountRelations, incountMathFunctions), (counteq, countwc, vars, knvars)));
end findZeroCrossings3;

protected function collectZC "function: collectZeroCrossings

Collects zero crossings in equations
protected function collectZC "function collectZC
author: unknown
modified: 2011-01 by wbraun
"
Collects zero crossings in equations"
input tuple<DAE.Exp, tuple<tuple<list<BackendDAE.ZeroCrossing>, list<BackendDAE.ZeroCrossing>, list<BackendDAE.ZeroCrossing>, Integer, Integer>, tuple<Integer, Integer, BackendDAE.Variables, BackendDAE.Variables>>> inTplExpExpTplExpExpLstVariables;
output tuple<DAE.Exp, Boolean, tuple<tuple<list<BackendDAE.ZeroCrossing>, list<BackendDAE.ZeroCrossing>, list<BackendDAE.ZeroCrossing>, Integer, Integer>, tuple<Integer, Integer, BackendDAE.Variables, BackendDAE.Variables>>> outTplExpExpTplExpExpLstVariables;
algorithm
Expand Down
4 changes: 2 additions & 2 deletions Compiler/BackEnd/BackendDAEOptimize.mo
Expand Up @@ -774,8 +774,8 @@ algorithm
BackendVariable.isParam(inVar) and not BackendVariable.varFixed(inVar);
end toplevelInputOrUnfixed;

protected function traversingTimeEqnsFinder "
Author: Frenkel 2010-12"
protected function traversingTimeEqnsFinder "function traversingTimeEqnsFinder
author: Frenkel 2010-12"
input tuple<DAE.Exp, tuple<Boolean,BackendDAE.Variables,BackendDAE.Variables,Boolean,Boolean> > inExp;
output tuple<DAE.Exp, Boolean, tuple<Boolean,BackendDAE.Variables,BackendDAE.Variables,Boolean,Boolean> > outExp;
algorithm
Expand Down
3 changes: 2 additions & 1 deletion Compiler/BackEnd/BackendDAEUtil.mo
Expand Up @@ -1005,7 +1005,8 @@ algorithm
end match;
end calculateSizes;

protected function calculateNumberZeroCrossings
protected function calculateNumberZeroCrossings "function calculateNumberZeroCrossings
author: unknown"
input list<ZeroCrossing> zcLst;
input Integer inZc_index;
input Integer inSample_index;
Expand Down
3 changes: 2 additions & 1 deletion Compiler/BackEnd/BackendQSS.mo
Expand Up @@ -738,7 +738,8 @@ algorithm
match (cond)
local
DAE.Exp start;
case ((DAE.CALL(path=Absyn.IDENT(name="sample"),expLst=(start:: _)),_) )
// lochel: first argument of sample becomes an unique index in BackendDAECreate
case ((DAE.CALL(path=Absyn.IDENT(name="sample"), expLst=(_::start:: _)),_) )
then ExpressionDump.printExpStr(replaceVars(start,{},{},{}));
end match;
end getStartTime;
Expand Down
4 changes: 2 additions & 2 deletions Compiler/BackEnd/RemoveSimpleEquations.mo
Expand Up @@ -1317,8 +1317,8 @@ algorithm
BackendVariable.isParam(inVar) and not BackendVariable.varFixed(inVar);
end toplevelInputOrUnfixed;

protected function traversingTimeVarsFinder "
author: Frenkel 2012-12"
protected function traversingTimeVarsFinder "function traversingTimeVarsFinder
author: Frenkel 2012-12"
input tuple<DAE.Exp, tuple<Boolean,BackendDAE.Variables,BackendDAE.Variables,Boolean,Boolean,list<Integer>> > inExp;
output tuple<DAE.Exp, Boolean, tuple<Boolean,BackendDAE.Variables,BackendDAE.Variables,Boolean,Boolean,list<Integer>> > outExp;
algorithm
Expand Down

0 comments on commit 88ed7fe

Please sign in to comment.