Skip to content

Commit

Permalink
- switch of debug outputs
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@14583 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Dec 30, 2012
1 parent ce4a65a commit ef1166b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Compiler/BackEnd/Initialization.mo
Original file line number Diff line number Diff line change
Expand Up @@ -1091,17 +1091,17 @@ algorithm
nEqns = BackendDAEUtil.equationSize(inEqns);
syst = BackendDAE.EQSYSTEM(inVars, inEqns, NONE(), NONE(), BackendDAE.NO_MATCHING(),{});
(syst,m,mt,_,_) = BackendDAEUtil.getIncidenceMatrixScalar(syst,BackendDAE.SOLVABLE());
BackendDump.printEqSystem(syst);
// BackendDump.printEqSystem(syst);
vec1 = arrayCreate(nVars,-1);
vec2 = arrayCreate(nEqns,-1);
Matching.matchingExternalsetIncidenceMatrix(nVars,nEqns,m);
BackendDAEEXT.matching(nVars,nEqns,5,-1,0.0,1);
BackendDAEEXT.getAssignment(vec2,vec1);
// try to find for unmatched variables without startvalue an equation by unassign a variable with start value
unassigned1 = Matching.getUnassigned(nEqns, vec2, {});
print("Unassigned Eqns " +& stringDelimitList(List.map(unassigned1,intString),", ") +& "\n");
//unassigned1 = Matching.getUnassigned(nEqns, vec2, {});
// print("Unassigned Eqns " +& stringDelimitList(List.map(unassigned1,intString),", ") +& "\n");
unassigned = Matching.getUnassigned(nVars, vec1, {});
print("Unassigned Vars " +& stringDelimitList(List.map(unassigned,intString),", ") +& "\n");
// print("Unassigned Vars " +& stringDelimitList(List.map(unassigned,intString),", ") +& "\n");
Debug.bcall(intGt(listLength(unassigned),nVars-nEqns),print,"Error could not match all equations\n");
unassigned = Util.if_(intGt(listLength(unassigned),nVars-nEqns),{},unassigned);
//unassigned = List.firstN(listReverse(unassigned),nVars-nEqns);
Expand Down

0 comments on commit ef1166b

Please sign in to comment.