Skip to content

Commit

Permalink
[Janitor mode] Fix whitespace
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@23276 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Nov 7, 2014
1 parent 89f0013 commit 7dc01b6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions Compiler/BackEnd/BackendDAECreate.mo
Expand Up @@ -254,42 +254,42 @@ algorithm
case DAE.INITIAL_COMPLEX_EQUATION()
algorithm
(outEqns, outREqns, outIEqns) := lowerEqn(el, inFunctions, outEqns, outREqns, outIEqns);
then
then
();

// array equations
case DAE.ARRAY_EQUATION()
algorithm
(outEqns, outREqns, outIEqns) := lowerEqn(el, inFunctions, outEqns, outREqns, outIEqns);
then
then
();

// initial array equations
case DAE.INITIAL_ARRAY_EQUATION()
algorithm
(outEqns, outREqns, outIEqns) := lowerEqn(el, inFunctions, outEqns, outREqns, outIEqns);
then
then
();

// when equations
case DAE.WHEN_EQUATION()
algorithm
(outEqns, outWhenClauses) := lowerWhenEqn(el, inFunctions, outEqns, outWhenClauses);
then
then
();

// if equation
case DAE.IF_EQUATION()
algorithm
(outEqns, outREqns, outIEqns) := lowerEqn(el, inFunctions, outEqns, outREqns, outIEqns);
then
then
();

// initial if equation
case DAE.INITIAL_IF_EQUATION()
algorithm
(outEqns, outREqns, outIEqns) := lowerEqn(el, inFunctions, outEqns, outREqns, outIEqns);
then
then
();

// algorithm
Expand Down Expand Up @@ -519,7 +519,7 @@ algorithm
outEqns := BackendDAE.EQUATION(e1, e2, src, attr) :: outEqns;
then
();

// variables: states and algebraic variables without binding equation
case DAE.VAR(componentRef = cr, binding = NONE()) guard(isStateOrAlgvar(inElement))
algorithm
Expand All @@ -545,7 +545,7 @@ algorithm

end matchcontinue;
end lowerVar;

protected function isStateOrAlgvar
"@author adrpo
check if this variable is a state or algebraic"
Expand Down
2 changes: 1 addition & 1 deletion Compiler/BackEnd/BackendDAEUtil.mo
Expand Up @@ -882,7 +882,7 @@ algorithm
backendDAEType=btp, symjacs=symjacs, info=ei)))
algorithm
knvars := BackendVariable.traverseBackendDAEVarsWithUpdate(
knvars, function calculateValueTraverser(inEnv = graph), cache);
knvars, function calculateValueTraverser(inEnv = graph), cache);
// Reverse the order of the known vars in the hashtable. This is stupid,
// but things break otherwise.
knvars := BackendVariable.listVar(BackendVariable.varList(knvars));
Expand Down
8 changes: 4 additions & 4 deletions Compiler/BackEnd/BackendVariable.mo
Expand Up @@ -2216,7 +2216,7 @@ algorithm
outVariables := BackendDAE.VARIABLES(indices, arr, buckets, 0);
end emptyVars;

public function emptyVarsSized
public function emptyVarsSized
"Returns a Variable datastructure that is empty."
input Integer size;
output BackendDAE.Variables outVariables := emptyVars(size);
Expand All @@ -2225,7 +2225,7 @@ end emptyVarsSized;
public function varList
"Takes a BackendDAE.Variables and returns a list of all variables in it,
useful for e.g. dumping.

NOTE: This function will fail if the Variables contains more than one set.
This is because mergeVariables doesn't do a real merging, so if we just
append all the variables from the sets we might get duplicates."
Expand Down Expand Up @@ -2865,7 +2865,7 @@ algorithm
for i in 1:num_vars loop
ovar := vars[i];
if isSome(ovar) then
SOME(var) := ovar;
SOME(var) := ovar;
outVars := addVar(var, outVars);
end if;
end for;
Expand Down Expand Up @@ -3160,7 +3160,7 @@ protected
DAE.ComponentRef cr;
algorithm
BackendDAE.VARIABLES(crefIndices = indices, varArr = arr,
bucketSize = buckets) := inVariables;
bucketSize = buckets) := inVariables;
hash_idx := ComponentReference.hashComponentRefMod(inCref, buckets) + 1;
cr_indices := indices[hash_idx];
BackendDAE.CREFINDEX(index = outIndex) := List.getMemberOnTrue(inCref,
Expand Down
2 changes: 1 addition & 1 deletion Compiler/Util/BaseHashTable.mo
Expand Up @@ -139,7 +139,7 @@ protected
algorithm
(key, _) := entry;
(hashvec, varr, bsize, n, fntpl as (hashFunc, keyEqual, _, _)) := hashTable;

hash_idx := hashFunc(key, bsize) + 1;
indices := hashvec[hash_idx];

Expand Down

0 comments on commit 7dc01b6

Please sign in to comment.