Skip to content

Commit

Permalink
- change description strings
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@16813 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
lochel committed Aug 15, 2013
1 parent ffe7ae6 commit fb8e317
Show file tree
Hide file tree
Showing 55 changed files with 744 additions and 1,538 deletions.
60 changes: 20 additions & 40 deletions Compiler/BackEnd/BackendDAECreate.mo
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,7 @@ end lower3;
// => sample(index, start, interval)
// =============================================================================

protected function processBuiltinExpressions "function processBuiltinExpressions
author: lochel
protected function processBuiltinExpressions "author: lochel
Assign some builtin calls with a unique id argument."
input DAE.DAElist inDAE;
input DAE.FunctionTree functionTree;
Expand All @@ -445,8 +444,7 @@ algorithm
(outDAE, outTree, (ht, _, outSampleLookup)) := DAEUtil.traverseDAE(inDAE, functionTree, transformBuiltinExpressions, (ht, 0, BackendDAE.SAMPLE_LOOKUP(0, {})));
end processBuiltinExpressions;

protected function transformBuiltinExpressions "function transformBuiltinExpressions
author: lochel
protected function transformBuiltinExpressions "author: lochel
Helper for processBuiltinExpressions"
input tuple<DAE.Exp, tuple<HashTableExpToIndex.HashTable, Integer, BackendDAE.SampleLookup>> itpl;
output tuple<DAE.Exp, tuple<HashTableExpToIndex.HashTable, Integer, BackendDAE.SampleLookup>> otpl;
Expand All @@ -458,8 +456,7 @@ algorithm
otpl := Expression.traverseExp(e, transformBuiltinExpression, i);
end transformBuiltinExpressions;

protected function transformBuiltinExpression "function transformBuiltinExpression
author: lochel
protected function transformBuiltinExpression "author: lochel
Helper for transformBuiltinExpressions"
input tuple<DAE.Exp, tuple<HashTableExpToIndex.HashTable, Integer, BackendDAE.SampleLookup>> inTuple;
output tuple<DAE.Exp, tuple<HashTableExpToIndex.HashTable, Integer, BackendDAE.SampleLookup>> outTuple;
Expand Down Expand Up @@ -1351,8 +1348,7 @@ algorithm
end matchcontinue;
end lowerIfEquation1;

protected function lowerEqns "function lowerEqns
author: Frenkel TUD 2012-06"
protected function lowerEqns "author: Frenkel TUD 2012-06"
input list<DAE.Element> inElements;
input DAE.FunctionTree functionTree;
input list<BackendDAE.Equation> inEquations;
Expand All @@ -1377,8 +1373,7 @@ algorithm
end match;
end lowerEqns;

protected function lowerEqnsLst "function lowerEqnsLst
author: Frenkel TUD 2012-06"
protected function lowerEqnsLst "author: Frenkel TUD 2012-06"
input list<list<DAE.Element>> inElements;
input DAE.FunctionTree functionTree;
input list<list<BackendDAE.Equation>> inEquations;
Expand All @@ -1399,8 +1394,7 @@ algorithm
end match;
end lowerEqnsLst;

protected function lowerIfEquationAsserts "function lowerIfEquationAsserts
author: Frenkel TUD 2012-10
protected function lowerIfEquationAsserts "author: Frenkel TUD 2012-10
lowar all asserts in if equations"
input list<DAE.Exp> conditions;
input list<list<DAE.Element>> theneqns;
Expand Down Expand Up @@ -1433,8 +1427,7 @@ algorithm
end match;
end lowerIfEquationAsserts;

protected function lowerIfEquationAsserts1 "function lowerIfEquationAsserts1
author: Frenkel TUD 2012-10
protected function lowerIfEquationAsserts1 "author: Frenkel TUD 2012-10
helper for lowerIfEquationAsserts"
input list<DAE.Element> brancheqns;
input Option<DAE.Exp> condition;
Expand Down Expand Up @@ -1512,8 +1505,7 @@ algorithm
oExp := DAE.IFEXP(cond, DAE.BCONST(true), else_);
end makeIfExp;

protected function lowerextendedRecordEqns "function lowerextendedRecordEqns
author: Frenkel TUD 2012-06"
protected function lowerextendedRecordEqns "author: Frenkel TUD 2012-06"
input list<DAE.Exp> explst1;
input list<DAE.Exp> explst2;
input DAE.ElementSource source;
Expand All @@ -1535,8 +1527,7 @@ algorithm
end match;
end lowerextendedRecordEqns;

protected function lowerextendedRecordEqn "function lowerextendedRecordEqn
author: Frenkel TUD 2012-06"
protected function lowerextendedRecordEqn "author: Frenkel TUD 2012-06"
input DAE.Exp inExp1;
input DAE.Exp inExp2;
input DAE.ElementSource source;
Expand Down Expand Up @@ -1596,8 +1587,7 @@ algorithm
end matchcontinue;
end lowerextendedRecordEqn;

protected function lowerArrayEqn "function lowerArrayEqn
author: Frenkel TUD 2012-06"
protected function lowerArrayEqn "author: Frenkel TUD 2012-06"
input DAE.Dimensions dims;
input DAE.Exp e1;
input DAE.Exp e2;
Expand Down Expand Up @@ -1647,8 +1637,7 @@ end generateEquations;


protected function lowerWhenEqn
"function lowerWhenEqn
This function lowers a when clause. The condition expresion is put in the
"This function lowers a when clause. The condition expresion is put in the
BackendDAE.WhenClause list and the equations inside are put in the equation list.
For each equation in the clause a new entry in the BackendDAE.WhenClause list is generated
and one extra for all the reinit statements.
Expand Down Expand Up @@ -1703,8 +1692,7 @@ algorithm
end lowerWhenEqn;

protected function lowerWhenEqn2
"function lowerWhenEqn2
Helper function to lowerWhenEqn. Lowers the equations inside a when clause"
"Helper function to lowerWhenEqn. Lowers the equations inside a when clause"
input list<DAE.Element> inDAEElementLst "The List of equations inside a when clause";
input DAE.Exp inCond;
input DAE.FunctionTree functionTree;
Expand Down Expand Up @@ -2150,8 +2138,7 @@ algorithm
end makeWhenClauses;

protected function mergeClauses
"function mergeClauses
merges the true part end the elsewhen part of a set of when equations.
" merges the true part end the elsewhen part of a set of when equations.
For each equation in trueEqnList, find an equation in elseEqnList solving
the same variable and put it in the else elseWhenPart of the first equation."
input list<BackendDAE.Equation> trueEqnList "List of equations in the true part of the when clause.";
Expand Down Expand Up @@ -2356,8 +2343,7 @@ end lowerAlgorithm;
*/

protected function handleAliasEquations
"function handleAliasEquations
author Frenkel TUD 2012-09"
"author Frenkel TUD 2012-09"
input list<DAE.Element> iAliasEqns;
input BackendDAE.Variables iVars;
input BackendDAE.Variables iKnVars;
Expand Down Expand Up @@ -2392,8 +2378,7 @@ algorithm
end handleAliasEquations;

protected function handleAliasEquations1
"function handleAliasEquations
author Frenkel TUD 2012-09"
"author Frenkel TUD 2012-09"
input list<DAE.Element> iAliasEqns;
input BackendDAE.Variables iVars;
input BackendDAE.Variables iKnVars;
Expand Down Expand Up @@ -2451,8 +2436,7 @@ algorithm
end replaceAliasVarTraverser;

protected function handleAliasEquations2
"function handleAliasEquations
author Frenkel TUD 2012-09"
"author Frenkel TUD 2012-09"
input list<DAE.Element> iAliasEqns;
input BackendDAE.Variables iVars;
input BackendDAE.Variables iKnVars;
Expand Down Expand Up @@ -2872,8 +2856,7 @@ algorithm
end selectAliasVar;

protected function replaceableAlias
"function replaceableAlias
author Frenkel TUD 2011-08
"author Frenkel TUD 2011-08
check if the variable is a replaceable alias."
input BackendDAE.Var var;
algorithm
Expand Down Expand Up @@ -3204,8 +3187,7 @@ end expInt;


public function expandDerOperator
"function expandDerOperator
expands der(expr) using Derive.differentiteExpTime.
"expands der(expr) using Derive.differentiteExpTime.
This can not be done in Static, since we need all time-
dependent variables, which is only available in BackendDAE."
input BackendDAE.BackendDAE dae;
Expand All @@ -3215,8 +3197,7 @@ algorithm
end expandDerOperator;

protected function expandDerOperatorWork
"function expandDerOperator
expands der(expr) using Derive.differentiteExpTime.
"expands der(expr) using Derive.differentiteExpTime.
This can not be done in Static, since we need all time-
dependent variables, which is only available in BackendDAE."
input BackendDAE.EqSystem syst;
Expand Down Expand Up @@ -3803,8 +3784,7 @@ algorithm
:= Expression.traverseExpTopDown(e, collectZC, ((inZeroCrossings, inrelationsinZC, inSamplesLst, incountRelations, incountMathFunctions), (counteq, countwc, vars, knvars)));
end findZeroCrossings3;

protected function collectZC "function collectZC
author: unknown
protected 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;
Expand Down
6 changes: 2 additions & 4 deletions Compiler/BackEnd/BackendDAEEXT.mo
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,7 @@ end getF;
see: http://bmi.osu.edu/~kamer/index.html
*****************************************/

public function setIncidenceMatrix "function setIncidenceMatrix
author: Frenkel TUD 2012-04"
public function setIncidenceMatrix "author: Frenkel TUD 2012-04"
input Integer nv;
input Integer ne;
input Integer nz;
Expand Down Expand Up @@ -271,8 +270,7 @@ public function matching
external "C" BackendDAEEXT_matching(nv,ne,matchingID,cheapID,relabel_period,clear_match) annotation(Library = "omcruntime");
end matching;

public function getAssignment "function getAssignment
author: Frenkel TUD 2012-04"
public function getAssignment "author: Frenkel TUD 2012-04"
input array<Integer> ass1;
input array<Integer> ass2;
external "C" BackendDAEEXT_getAssignment(ass1, ass2) annotation(Library = "omcruntime");
Expand Down

0 comments on commit fb8e317

Please sign in to comment.