Skip to content

Commit

Permalink
- bugfix singular system error message, use nonscalar indices of equa…
Browse files Browse the repository at this point in the history
…tions

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@14407 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Dec 15, 2012
1 parent 485ee4d commit cd926be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Compiler/BackEnd/BackendVariable.mo
Expand Up @@ -2353,7 +2353,7 @@ algorithm
equation
(pos < n) = true;
NONE() = arr[pos + 1];
print("- vararrayNth " +& intString(pos +1 ) +& " has NONE!!!\n");
print("- BackendVariable.vararrayNth " +& intString(pos +1 ) +& " has NONE!!!\n");
then
fail();
end matchcontinue;
Expand Down
2 changes: 1 addition & 1 deletion Compiler/BackEnd/Matching.mo
Expand Up @@ -6546,7 +6546,7 @@ algorithm
vars := List.fold1(unmatched,getAssignedVars,inAssignments1,vars);
vars := List.select1(vars,intLe,n);
var_str := BackendDump.dumpMarkedVars(isyst, vars);
source := BackendEquation.markedEquationSource(isyst, listGet(unmatched,1));
source := BackendEquation.markedEquationSource(isyst, listGet(unmatched1,1));
info := DAEUtil.getElementSourceFileInfo(source);
Error.addSourceMessage(Error.STRUCT_SINGULAR_SYSTEM, {eqn_str,var_str}, info);
end singularSystemError;
Expand Down

0 comments on commit cd926be

Please sign in to comment.