Changeset 1019c41e in OpenModelica for OMCompiler/Compiler/NFFrontEnd/NFSimplifyModel.mo
- Timestamp:
- 2020-10-21T15:09:21+02:00 (4 years ago)
- Children:
- 9960cdcd
- Parents:
- 5c431b26
- git-author:
- Per Östlund <perost86@…> (10/20/20 12:57:27)
- git-committer:
- Adrian Pop <adrian.pop@…> (10/21/20 15:09:21)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OMCompiler/Compiler/NFFrontEnd/NFSimplifyModel.mo
rc9471b8 r1019c41e 161 161 case Equation.FOR(range = SOME(e)) 162 162 algorithm 163 if not Equation.containsExpList(eq.body, function Expression.containsIterator(iterator = eq.iterator)) then 164 body := simplifyEquations(eq.body); 163 body := simplifyEquations(eq.body); 164 165 if not Equation.containsExpList(body, function Expression.containsIterator(iterator = eq.iterator)) then 165 166 equations := List.append_reverse(body, equations); 166 167 else … … 171 172 // e := Expression.applySubscript(Subscript.INDEX(Expression.INTEGER(1)), e); 172 173 173 // body := Equation.mapExpList( eq.body,174 // body := Equation.mapExpList(body, 174 175 // function Expression.replaceIterator(iterator = eq.iterator, iteratorValue = e)); 175 176 // body := simplifyEquations(body); … … 177 178 //elseif not Dimension.isZero(dim) then 178 179 eq.range := SimplifyExp.simplifyOpt(eq.range); 179 eq.body := simplifyEquations(eq.body);180 eq.body := body; 180 181 equations := eq :: equations; 181 182 //end if;
Note: See TracChangeset
for help on using the changeset viewer.