Skip to content

Commit

Permalink
- Tabs to spaces
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@7667 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Jan 9, 2011
1 parent 3a29506 commit eed9d43
Show file tree
Hide file tree
Showing 124 changed files with 3,067 additions and 3,057 deletions.
14 changes: 7 additions & 7 deletions Compiler/BackEnd/BackendDAE.mo
Expand Up @@ -381,14 +381,14 @@ type IncidenceMatrixT = IncidenceMatrix "IncidenceMatrixT : a list of equation i
public
uniontype JacobianType "- Jacobian Type"
record JAC_CONSTANT "If jacobian has only constant values, for system
of equations this means that it can be solved statically." end JAC_CONSTANT;
of equations this means that it can be solved statically." end JAC_CONSTANT;

record JAC_TIME_VARYING "If jacobian has time varying parts, like parameters or
algebraic variables" end JAC_TIME_VARYING;
algebraic variables" end JAC_TIME_VARYING;

record JAC_NONLINEAR "If jacobian contains variables that are solved for,
means that a nonlinear system of equations needs to be
solved" end JAC_NONLINEAR;
means that a nonlinear system of equations needs to be
solved" end JAC_NONLINEAR;

record JAC_NO_ANALYTIC "No analytic jacobian available" end JAC_NO_ANALYTIC;

Expand All @@ -405,11 +405,11 @@ end IndexReduction;
public
uniontype EquationConstraints "- Equation Constraints"
record ALLOW_UNDERCONSTRAINED "for e.g. initial eqns.
where not all variables
have a solution" end ALLOW_UNDERCONSTRAINED;
where not all variables
have a solution" end ALLOW_UNDERCONSTRAINED;

record EXACT "exact as many equations
as variables" end EXACT;
as variables" end EXACT;

end EquationConstraints;

Expand Down
10 changes: 5 additions & 5 deletions Compiler/BackEnd/BackendDAEOptimize.mo
Expand Up @@ -82,11 +82,11 @@ public function removeSimpleEquations
This function moves simple equations on the form a=b from equations 2nd
in BackendDAE.BackendDAE to simple equations 3rd in BackendDAE.BackendDAE to speed up assignment alg.
inputs: (vars: Variables,
knownVars: Variables,
eqns: BackendDAE.Equation list,
simpleEqns: BackendDAE.Equation list,
initEqns : Equatoin list,
binTree: BinTree)
knownVars: Variables,
eqns: BackendDAE.Equation list,
simpleEqns: BackendDAE.Equation list,
initEqns : Equatoin list,
binTree: BinTree)
outputs: (Variables, BackendDAE.Variables, BackendDAE.Equation list, BackendDAE.Equation list
BackendDAE.Equation list)"
input BackendDAE.Variables inVariables1;
Expand Down
14 changes: 7 additions & 7 deletions Compiler/BackEnd/BackendDAEUtil.mo
Expand Up @@ -197,17 +197,17 @@ protected function traversecheckBackendDAEExp
algorithm
outTuple := matchcontinue(inTuple)
local
DAE.Exp e;
BackendDAE.Variables vars,vars1;
DAE.ComponentRef cr;
list<DAE.ComponentRef> crefs,crefs1;
list<DAE.Exp> expl;
DAE.Exp e;
BackendDAE.Variables vars,vars1;
DAE.ComponentRef cr;
list<DAE.ComponentRef> crefs,crefs1;
list<DAE.Exp> expl;
list<DAE.ExpVar> varLst;
DAE.Ident ident;
BackendDAE.Var backendVar;


// special case for time, it is never part of the equation system
// special case for time, it is never part of the equation system
case ((e as DAE.CREF(componentRef = DAE.CREF_IDENT(ident="time")),(vars,crefs)))
then ((e, (vars,crefs)));

Expand All @@ -233,7 +233,7 @@ algorithm
// case for functionpointers
case ((e as DAE.CREF(ty=DAE.ET_FUNCTION_REFERENCE_FUNC(builtin=_)),(vars,crefs)))
then
((e, (vars,crefs)));
((e, (vars,crefs)));

case ((e as DAE.CREF(componentRef = cr),(vars,crefs)))
equation
Expand Down
2 changes: 1 addition & 1 deletion Compiler/BackEnd/BackendVariable.mo
Expand Up @@ -33,7 +33,7 @@ package BackendVariable
" file: mo
package: BackendVariable
description: BackendVariables contains the function that deals with the datytypes
BackendDAE.VAR BackendDAE.Variables and BackendVariablesArray.
BackendDAE.VAR BackendDAE.Variables and BackendVariablesArray.
RCS: $Id$
"
Expand Down
2 changes: 1 addition & 1 deletion Compiler/BackEnd/Derive.mo
Expand Up @@ -1612,7 +1612,7 @@ algorithm

case (e,cr,differentiateIfExp)
equation
true = RTOpts.debugFlag("failtrace");
true = RTOpts.debugFlag("failtrace");
s = ExpressionDump.printExpStr(e);
s2 = ComponentReference.printComponentRefStr(cr);
str = stringAppendList({"- Derive.differentiateExp ",s," w.r.t: ",s2," failed\n"});
Expand Down
8 changes: 4 additions & 4 deletions Compiler/BackEnd/SimCode.mo
Expand Up @@ -1855,7 +1855,7 @@ algorithm
nres = listLength(residualEquations);

extObjInfo = createExtObjInfo(dlow2);
whenClauses = createSimWhenClauses(dlow2, helpVarInfo);
zeroCrossings = createZeroCrossings(dlow2);
zeroCrossingsNeedSave = createZeroCrossingsNeedSave(zeroCrossings, dlow2, ass1, ass2, comps);
Expand Down Expand Up @@ -6349,7 +6349,7 @@ protected function buildWhenConditionChecks3
input list<DAE.Exp> whenConditions "List of expressions from \"when {exp1, exp2, ...}\" ";
input Integer whenClauseIndex "When clause index";
input Integer nextHelpIndex "Next available help variable index";
input Boolean isElseWhen "Whether this lase is an elsewhen or not";
input Boolean isElseWhen "Whether this lase is an elsewhen or not";
output String outString "Generated c-code";
output list<HelpVarInfo> helpVarLst;
algorithm
Expand Down Expand Up @@ -6542,7 +6542,7 @@ protected function buildWhenConditionChecks4
input list<BackendDAE.WhenClause> inBackendDAEWhenClauseLst "List of when clauses.";
input Integer nextHelpVarIndex "index of the next generated help variable.";
output String outString "Generated event checking code";
output list<HelpVarInfo> helpVarLst "List of help variables introduced in this function.";
output list<HelpVarInfo> helpVarLst "List of help variables introduced in this function.";
algorithm
(outString,helpVarLst):=
matchcontinue (orderOfEquations,inBackendDAEEquationLst,inBackendDAEWhenClauseLst,nextHelpVarIndex)
Expand Down Expand Up @@ -6590,7 +6590,7 @@ protected function buildWhenConditionCheckForEquation "
input Boolean isElseWhen "Whether the equation is inside an elsewhen or not.";
input Integer nextHelpIndex "Next avalable help variable index.";
output String outString "Generated event checking code";
output list<HelpVarInfo> helpVarLst "List of help variables introduced in this function.";
output list<HelpVarInfo> helpVarLst "List of help variables introduced in this function.";
algorithm
(outString, helpVarLst) :=
match (whenEq,inBackendDAEWhenClauseLst,isElseWhen, nextHelpIndex)
Expand Down
2 changes: 1 addition & 1 deletion Compiler/FrontEnd/Algorithm.mo
Expand Up @@ -620,7 +620,7 @@ algorithm
then DAE.STMT_REINIT(var_1,val_1,source);

case (_,_,prop1,prop2,source) equation
Error.addSourceMessage(Error.INTERNAL_ERROR,{"reinit called with wrong args"},DAEUtil.getElementSourceFileInfo(source));
Error.addSourceMessage(Error.INTERNAL_ERROR,{"reinit called with wrong args"},DAEUtil.getElementSourceFileInfo(source));
then fail();

// TODO: Add checks for reinit here. 1. First argument must be variable. 2. Expressions must be real.
Expand Down
2 changes: 1 addition & 1 deletion Compiler/FrontEnd/Builtin.mo
Expand Up @@ -2112,7 +2112,7 @@ end isDer;

public function simpleInitialEnv "
val array2array= (DAE.T_FUNCTION({(\"x\",(DAE.T_ARRAY)},
(DAE.T_ARRAY),NONE())
(DAE.T_ARRAY),NONE())
val array_array2array=
val int2array= (DAE.T_FUNCTION(\"x\",(DAE.T_ARRAY(1,_)),NONE())
Specifierar en vector, array of dimension one
Expand Down

0 comments on commit eed9d43

Please sign in to comment.