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@21664 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Jul 29, 2014
1 parent cb83b44 commit bacb3f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Compiler/BackEnd/BackendEquation.mo
Expand Up @@ -2208,27 +2208,27 @@ algorithm
DAE.Dimensions dims;
list<Integer> ds;
Boolean b1, b2;

// complex types to complex equations
case (_, _, _, _, _) equation
true = DAEUtil.expTypeComplex(ty);
size = Expression.sizeOf(ty);
then BackendDAE.COMPLEX_EQUATION(size, lhs, rhs, source, inEqAttr);

// array types to array equations
case (_, _, _, _, _) equation
true = DAEUtil.expTypeArray(ty);
dims = Expression.arrayDimension(ty);
ds = Expression.dimensionsSizes(dims);
then BackendDAE.ARRAY_EQUATION(ds, lhs, rhs, source, inEqAttr);

// other types
case (_, _, _, _, _) equation
b1 = DAEUtil.expTypeComplex(ty);
b2 = DAEUtil.expTypeArray(ty);
false = b1 or b2;
then BackendDAE.EQUATION(lhs, rhs, source, inEqAttr);

else equation
// show only on failtrace!
true = Flags.isSet(Flags.FAILTRACE);
Expand Down
8 changes: 4 additions & 4 deletions Compiler/BackEnd/SimCodeUtil.mo
Expand Up @@ -4696,13 +4696,13 @@ algorithm
// if only sparsity pattern is generated
case (((NONE(), (sparsepattern, (diffCompRefs, diffedCompRefs)), colsColors))::rest, SimCode.MODELINFO(vars=simvars), _, name::restnames)
equation

(_, (_, seedVars)) = traveseSimVars(simvars, findSimVarsCompare, (diffCompRefs, {}));
Debug.fcall(Flags.JAC_DUMP2, print, "diffCrefs: " +& ComponentReference.printComponentRefListStr(diffCompRefs) +& "\n");
Debug.fcall(Flags.JAC_DUMP2, print, "\n---+++ seedVars +++---\n");
Debug.fcall(Flags.JAC_DUMP2, print, Tpl.tplString(SimCodeDump.dumpVarsShort, seedVars));


(_, (_, indexVars)) = traveseSimVars(simvars, findSimVarsCompare, (diffedCompRefs, {}));
Debug.fcall(Flags.JAC_DUMP2, print, "diffedCrefs: " +& ComponentReference.printComponentRefListStr(diffedCompRefs) +& "\n");
Debug.fcall(Flags.JAC_DUMP2, print, "\n---+++ indexVars +++---\n");
Expand Down Expand Up @@ -4750,12 +4750,12 @@ algorithm
Debug.fcall(Flags.JAC_DUMP2, print, "diffCrefs: " +& ComponentReference.printComponentRefListStr(diffCompRefs) +& "\n");
Debug.fcall(Flags.JAC_DUMP2, print, "\n---+++ seedVars +++---\n");
Debug.fcall(Flags.JAC_DUMP2, print, Tpl.tplString(SimCodeDump.dumpVarsShort, seedVars));

(_, (_, indexVars)) = traveseSimVars(simvars, findSimVarsCompare, (diffedCompRefs, {}));
Debug.fcall(Flags.JAC_DUMP2, print, "diffedCrefs: " +& ComponentReference.printComponentRefListStr(diffedCompRefs) +& "\n");
Debug.fcall(Flags.JAC_DUMP2, print, "\n---+++ indexVars +++---\n");
Debug.fcall(Flags.JAC_DUMP2, print, Tpl.tplString(SimCodeDump.dumpVarsShort, indexVars));

maxColor = listLength(colsColors);
s = intString(listLength(diffedVars));

Expand Down

0 comments on commit bacb3f9

Please sign in to comment.