Changeset e62a382 in OpenModelica
- Timestamp:
- 2020-10-21T18:53:49+02:00 (4 years ago)
- Branches:
- maintenance/v1.16
- Children:
- 82316a99
- Parents:
- c850391
- git-author:
- Karim Abdelhak <karim.abdelhak@…> (10/08/20 13:27:03)
- git-committer:
- Adrian Pop <adrian.pop@…> (10/21/20 18:53:49)
- Location:
- OMCompiler/Compiler/BackEnd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
OMCompiler/Compiler/BackEnd/BackendEquation.mo
r315a2d2 re62a382 3237 3237 end createResidualExp; 3238 3238 3239 public function hasAnyUnknown 3240 input BackendDAE.Equation eqn; 3241 input BackendDAE.Variables vars; 3242 output Boolean b; 3243 algorithm 3244 b := not listEmpty(equationVars(eqn, vars)); 3245 end hasAnyUnknown; 3246 3239 3247 annotation(__OpenModelica_Interface="backend"); 3240 3248 end BackendEquation; -
OMCompiler/Compiler/BackEnd/Initialization.mo
rc0e8727d re62a382 1169 1169 DoubleEnded.MutableList<BackendDAE.Var> dumpVars; 1170 1170 DoubleEnded.MutableList<BackendDAE.Equation> removedEqns; 1171 list<BackendDAE.Equation> filtered_initial_eqs; 1171 1172 algorithm 1172 1173 // filter empty systems … … 1178 1179 eqs := syst::eqs; 1179 1180 else 1180 DoubleEnded.push_list_back(removedEqns, BackendEquation.equationList(syst.orderedEqs)); 1181 filtered_initial_eqs := list(eqn for eqn guard(BackendEquation.hasAnyUnknown(eqn, inInitVars)) in BackendEquation.equationList(syst.orderedEqs)); 1182 DoubleEnded.push_list_back(removedEqns, filtered_initial_eqs); 1181 1183 DoubleEnded.push_list_back(removedEqns, BackendEquation.equationList(syst.removedEqs)); 1182 1184 end if;
Note: See TracChangeset
for help on using the changeset viewer.