Skip to content

Commit

Permalink
- typos
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@17237 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
lochel committed Sep 13, 2013
1 parent c599e47 commit 71abb8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Compiler/BackEnd/BackendDAEUtil.mo
Original file line number Diff line number Diff line change
Expand Up @@ -8369,8 +8369,8 @@ protected
list<tuple<StructurallySingularSystemHandlerFunc,String,stateDeselectionFunc,String>> allIndexReductionMethods;
String strIndexReductionMethod;
algorithm
allIndexReductionMethods := {(IndexReduction.pantelidesIndexReduction,"Pantelites",IndexReduction.noStateDeselection,"uode"),
(IndexReduction.pantelidesIndexReduction,"Pantelites",IndexReduction.dynamicStateSelection,"dynamicStateSelection")};
allIndexReductionMethods := {(IndexReduction.pantelidesIndexReduction,"Pantelides",IndexReduction.noStateDeselection,"uode"),
(IndexReduction.pantelidesIndexReduction,"Pantelides",IndexReduction.dynamicStateSelection,"dynamicStateSelection")};
strIndexReductionMethod := getIndexReductionMethodString();
strIndexReductionMethod := Util.getOptionOrDefault(ostrIndexReductionMethod,strIndexReductionMethod);
IndexReductionMethod := selectIndexReductionMethod(strIndexReductionMethod,allIndexReductionMethods);
Expand Down
6 changes: 3 additions & 3 deletions Compiler/BackEnd/IndexReduction.mo
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ algorithm
// check by count vars of equations, if len(eqns) > len(vars) stop because of structural singular system
(eqns_1,unassignedStates,unassignedEqns,discEqns) = minimalStructurallySingularSystem(eqns,isyst,ishared,inAssignments1,inAssignments2,inArg);
size = BackendDAEUtil.systemSize(isyst);
ErrorExt.setCheckpoint("Pantelites");
ErrorExt.setCheckpoint("Pantelides");
Debug.fcall(Flags.BLT_DUMP, print, "Reduce Index\n");
markarr = arrayCreate(size,-1);
(syst,shared,ass1,ass2,arg,_) =
pantelidesIndexReduction1(unassignedStates,unassignedEqns,eqns,eqns_1,actualEqn,isyst,ishared,inAssignments1,inAssignments2,1,markarr,inArg,{});
ErrorExt.rollBack("Pantelites");
ErrorExt.rollBack("Pantelides");
// get from eqns indexes the scalar indexes
newsize = BackendDAEUtil.systemSize(syst);
changedeqns = Debug.bcallret2(intGt(newsize,size),List.intRange2,size+1,newsize,{});
Expand All @@ -143,7 +143,7 @@ algorithm
fail();
case (_,_,_,_,_,_,_)
equation
ErrorExt.delCheckpoint("Pantelites");
ErrorExt.delCheckpoint("Pantelides");
Error.addMessage(Error.INTERNAL_ERROR, {"- IndexReduction.pantelidesIndexReduction failed!"});
then
fail();
Expand Down

0 comments on commit 71abb8a

Please sign in to comment.