Skip to content

Commit e1f5151

Browse files
author
Jens Frenkel
committed
- comment out extendAllRecordEqns until testsuite library uses inline annotation
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@5616 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 8625642 commit e1f5151

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

Compiler/CevalScript.mo

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2331,9 +2331,9 @@ algorithm
23312331
dae = DAEUtil.transformIfEqToExpr(dae,false);
23322332
ic_1 = Interactive.addInstantiatedClass(ic, Interactive.INSTCLASS(className,dae,env));
23332333
dlow = DAELow.lower(dae, addDummy, true);
2334-
funcs = DAEUtil.daeFunctionTree(dae);
2335-
dlow = Inline.inlineCalls(NONE(),SOME(funcs),{DAE.NORM_INLINE()},dlow);
2336-
dlow = DAELow.extendAllRecordEqns(dlow,funcs);
2334+
//funcs = DAEUtil.daeFunctionTree(dae);
2335+
//dlow = Inline.inlineCalls(NONE(),SOME(funcs),{DAE.NORM_INLINE()},dlow);
2336+
//dlow = DAELow.extendAllRecordEqns(dlow,funcs);
23372337
Debug.fprint("bltdump", "Lowered DAE:\n");
23382338
Debug.fcall("bltdump", DAELow.dump, dlow);
23392339
m = DAELow.incidenceMatrix(dlow);
@@ -3302,9 +3302,9 @@ algorithm
33023302
RTOpts.setEliminationLevel(0); // No variable elimination
33033303
(dlow as DAELow.DAELOW(orderedVars = DAELow.VARIABLES(numberOfVars = varSize),orderedEqs = eqns))
33043304
= DAELow.lower(dae, false/* no dummy variable*/, true);
3305-
funcs = DAEUtil.daeFunctionTree(dae);
3306-
dlow = Inline.inlineCalls(NONE(),SOME(funcs),{DAE.NORM_INLINE()},dlow);
3307-
dlow = DAELow.extendAllRecordEqns(dlow,funcs);
3305+
//funcs = DAEUtil.daeFunctionTree(dae);
3306+
//dlow = Inline.inlineCalls(NONE(),SOME(funcs),{DAE.NORM_INLINE()},dlow);
3307+
//dlow = DAELow.extendAllRecordEqns(dlow,funcs);
33083308
Debug.fcall("dumpdaelow", DAELow.dump, dlow);
33093309
RTOpts.setEliminationLevel(elimLevel); // reset elimination level.
33103310
eqnSize = DAELow.equationSize(eqns);

Compiler/DAELow.mo

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6001,11 +6001,11 @@ algorithm
60016001
e2_1 = Exp.simplify(e2);
60026002
e1_2 = Exp.stringifyCrefs(e1_1);
60036003
e2_2 = Exp.stringifyCrefs(e2_1);
6004-
complexEqs = {COMPLEX_EQUATION(-1,e1_2,e2_2,source)};
6004+
//complexEqs = {COMPLEX_EQUATION(-1,e1_2,e2_2,source)};
60056005
// create as many equations as the dimension of the record
6006-
//ty = Exp.typeof(e1);
6007-
//i = Exp.sizeOf(ty);
6008-
//complexEqs = Util.listFill(COMPLEX_EQUATION(-1,e1_2,e2_2,source), i);
6006+
ty = Exp.typeof(e1);
6007+
i = Exp.sizeOf(ty);
6008+
complexEqs = Util.listFill(COMPLEX_EQUATION(-1,e1_2,e2_2,source), i);
60096009
then
60106010
complexEqs;
60116011
// initial
@@ -6015,11 +6015,11 @@ algorithm
60156015
e2_1 = Exp.simplify(e2);
60166016
e1_2 = Exp.stringifyCrefs(e1_1);
60176017
e2_2 = Exp.stringifyCrefs(e2_1);
6018-
complexEqs = {COMPLEX_EQUATION(-1,e1_2,e2_2,source)};
6018+
//complexEqs = {COMPLEX_EQUATION(-1,e1_2,e2_2,source)};
60196019
// create as many equations as the dimension of the record
6020-
//ty = Exp.typeof(e1);
6021-
//i = Exp.sizeOf(ty);
6022-
//complexEqs = Util.listFill(COMPLEX_EQUATION(-1,e1_2,e2_2,source), i);
6020+
ty = Exp.typeof(e1);
6021+
i = Exp.sizeOf(ty);
6022+
complexEqs = Util.listFill(COMPLEX_EQUATION(-1,e1_2,e2_2,source), i);
60236023
then
60246024
complexEqs;
60256025
case (_)

Compiler/Main.mo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -766,9 +766,9 @@ algorithm
766766
true = runBackendQ();
767767
Debug.fcall("execstat",print, "*** Main -> To lower dae at time: " +& realString(clock()) +& "\n" );
768768
dlow = DAELow.lower(dae, /* add dummy state if needed */ true, /* simplify */ true);
769-
funcs = DAEUtil.daeFunctionTree(dae);
770-
dlow = Inline.inlineCalls(NONE(),SOME(funcs),{DAE.NORM_INLINE()},dlow);
771-
dlow = DAELow.extendAllRecordEqns(dlow,funcs);
769+
//funcs = DAEUtil.daeFunctionTree(dae);
770+
//dlow = Inline.inlineCalls(NONE(),SOME(funcs),{DAE.NORM_INLINE()},dlow);
771+
//dlow = DAELow.extendAllRecordEqns(dlow,funcs);
772772
Debug.fcall("dumpdaelow", DAELow.dump, dlow);
773773
m = DAELow.incidenceMatrix(dlow);
774774
mT = DAELow.transposeMatrix(m);

Compiler/SimCode.mo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -522,9 +522,9 @@ algorithm
522522
dae = DAEUtil.transformIfEqToExpr(dae,false);
523523
ic_1 = Interactive.addInstantiatedClass(ic, Interactive.INSTCLASS(className,dae,env));
524524
dlow = DAELow.lower(dae, addDummy, true);
525-
funcs = DAEUtil.daeFunctionTree(dae);
526-
dlow = Inline.inlineCalls(NONE(),SOME(funcs),{DAE.NORM_INLINE()},dlow);
527-
dlow = DAELow.extendAllRecordEqns(dlow,funcs);
525+
//funcs = DAEUtil.daeFunctionTree(dae);
526+
//dlow = Inline.inlineCalls(NONE(),SOME(funcs),{DAE.NORM_INLINE()},dlow);
527+
//dlow = DAELow.extendAllRecordEqns(dlow,funcs);
528528
Debug.fprint("bltdump", "Lowered DAE:\n");
529529
Debug.fcall("bltdump", DAELow.dump, dlow);
530530
m = DAELow.incidenceMatrix(dlow);

0 commit comments

Comments
 (0)