Skip to content

Commit 6912234

Browse files
author
Jens Frenkel
committed
- try dynamic state selection
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12167 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 5450e13 commit 6912234

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Compiler/BackEnd/BackendDAEUtil.mo

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7477,7 +7477,7 @@ protected
74777477
tuple<matchingAlgorithmFunc,String> matchingAlgorithm;
74787478
BackendDAE.EqSystem syst;
74797479
algorithm
7480-
7480+
//_ := IndexReduction.tryDeterminant(inDAE);
74817481
preOptModules := getPreOptModules(strPreOptModules);
74827482
pastOptModules := getPastOptModules(strPastOptModules);
74837483
matchingAlgorithm := getMatchingAlgorithm(strmatchingAlgorithm);
@@ -7491,8 +7491,8 @@ algorithm
74917491
(optdae,Util.SUCCESS()) := preoptimiseDAE(inDAE,preOptModules);
74927492

74937493
// transformation phase (matching and sorting using a index reduction method
7494-
sode := transformDAE(optdae,NONE(),matchingAlgorithm,daeHandler);
7495-
//sode := reduceIndexDAE(optdae,NONE(),(Matching.PFPlus,"PFPlus"),(IndexReduction.dynamicStateSelection,"dynamicStateSelection"));
7494+
//sode := transformDAE(optdae,NONE(),matchingAlgorithm,daeHandler);
7495+
sode := reduceIndexDAE(optdae,NONE(),(Matching.PFPlus,"PFPlus"),(IndexReduction.dynamicStateSelection,"dynamicStateSelection"));
74967496
Debug.fcall(Flags.BLT_DUMP, BackendDump.bltdump, ("bltdump",sode));
74977497

74987498
// past optimisation phase
@@ -7577,8 +7577,8 @@ protected
75777577
algorithm
75787578
matchingAlgorithm := getMatchingAlgorithm(strmatchingAlgorithm);
75797579
indexReductionMethod := getIndexReductionMethod(strindexReductionMethod);
7580-
outDAE := transformDAE(inDAE,inMatchingOptions,matchingAlgorithm,indexReductionMethod);
7581-
//outDAE := reduceIndexDAE(inDAE,inMatchingOptions,(Matching.PFPlus,"PFPlus"),(IndexReduction.dynamicStateSelection,"dynamicStateSelection"));
7580+
//outDAE := transformDAE(inDAE,inMatchingOptions,matchingAlgorithm,indexReductionMethod);
7581+
outDAE := reduceIndexDAE(inDAE,inMatchingOptions,(Matching.PFPlus,"PFPlus"),(IndexReduction.dynamicStateSelection,"dynamicStateSelection"));
75827582
end transformBackendDAE;
75837583

75847584
public function transformDAE
@@ -7916,8 +7916,8 @@ algorithm
79167916
case (true,_,_,_)
79177917
equation
79187918
// sode = transformDAE(inDAE,functionTree,SOME((BackendDAE.NO_INDEX_REDUCTION(), BackendDAE.EXACT())),matchingAlgorithm,daeHandler);
7919-
sode = transformDAE(inDAE,NONE(),matchingAlgorithm,daeHandler);
7920-
//sode = reduceIndexDAE(inDAE,NONE(),(Matching.PFPlus,"PFPlus"),(IndexReduction.dynamicStateSelection,"dynamicStateSelection"));
7919+
//sode = transformDAE(inDAE,NONE(),matchingAlgorithm,daeHandler);
7920+
sode = reduceIndexDAE(inDAE,NONE(),(Matching.PFPlus,"PFPlus"),(IndexReduction.dynamicStateSelection,"dynamicStateSelection"));
79217921
Debug.fcall(Flags.BLT_DUMP, BackendDump.bltdump, ("bltdump",sode));
79227922
then sode;
79237923
case (false,_,_,_)
@@ -8013,8 +8013,8 @@ algorithm
80138013
(optdae,Util.SUCCESS()) := preoptimiseDAE(inDAE,preOptModules);
80148014

80158015
// transformation phase (matching and sorting using a index reduction method
8016-
sode := transformDAE(optdae,NONE(),matchingAlgorithm,daeHandler);
8017-
//sode := reduceIndexDAE(optdae,NONE(),(Matching.PFPlus,"PFPlus"),(IndexReduction.dynamicStateSelection,"dynamicStateSelection"));
8016+
//sode := transformDAE(optdae,NONE(),matchingAlgorithm,daeHandler);
8017+
sode := reduceIndexDAE(optdae,NONE(),(Matching.PFPlus,"PFPlus"),(IndexReduction.dynamicStateSelection,"dynamicStateSelection"));
80188018
Debug.fcall(Flags.DUMP_DAE_LOW, BackendDump.bltdump, ("bltdump",sode));
80198019

80208020
// past optimisation phase

0 commit comments

Comments
 (0)