Skip to content

Commit

Permalink
- More fixes.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@22208 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Sep 9, 2014
1 parent 8403fa8 commit 08e9426
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Compiler/BackEnd/EvaluateFunctions.mo
Expand Up @@ -365,7 +365,7 @@ algorithm
//print("varScalarCrefs 1\n"+&stringDelimitList(List.map(varScalarCrefs,ComponentReference.printComponentRefStr),"\n")+&"\n");

// is it completely constant or partially?
funcIsConst = List.isEmpty(varScalarCrefs) and List.isNotEmpty(varComplexCrefs);
funcIsConst = List.isEmpty(varScalarCrefs) and List.isEmpty(varComplexCrefs);
funcIsPartConst = (List.isNotEmpty(varScalarCrefs) or List.isNotEmpty(varComplexCrefs)) and (List.isNotEmpty(constScalarCrefs) or List.isNotEmpty(constComplexCrefs)) and not funcIsConst;
isConstRec = intEq(listLength(constScalarCrefs),listLength(List.flatten(scalarOutputs))) and List.isEmpty(varScalarCrefs) and listEmpty(varComplexCrefs) and listEmpty(constComplexCrefs);

Expand Down
2 changes: 1 addition & 1 deletion Compiler/FrontEnd/NFConnectEquations.mo
Expand Up @@ -672,7 +672,7 @@ algorithm
(lhs_vars, lhs_rest) = List.splitOnTrue(lhs_vars, DAEUtil.isParamConstOrComplexVar);
(rhs_vars, rhs_rest) = List.splitOnTrue(rhs_vars, DAEUtil.isParamConstOrComplexVar);

ioc = List.isEmpty(lhs_rest) and listEmpty(rhs_rest);
ioc = List.isEmpty(lhs_rest) and List.isEmpty(rhs_rest);

(eql, ioc) = generateAssertion3(lhs_vars, rhs_vars,
lhs_cref, rhs_cref, inInfo, inEquations, ioc);
Expand Down

0 comments on commit 08e9426

Please sign in to comment.