Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle also WHOLEDIM in Exp.replaceSliceSub. WHOLEDIM is *also* a special case of SLICE that contains the all subscripts, so we need to handle that too! This will get rid of errors like: The generated equations: controller.observer.y[:,1] = controller.L.u[:,1]; controller.observer.y[:,2] = controller.L.u[:,2]; should be instead; controller.observer.y[1] = controller.L.u[1]; controller.observer.y[2] = controller.L.u[2]; - DAEUtil.mo - count internal equations in if equations by removing assert and terminate - handle more equation types in DAEUtil.makeEquationToResidualExp - todo: handle assert in if equations by translating them to assert(NOT condition_from_if OR condition_from_assert, ...) or something like this (my boolean logic doesn't work at this hour). git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@5025 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
- Loading branch information
Showing
2 changed files
with
141 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters