Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*BEWARE*, quite BIG changes, MathCore will need to update their files!
- new implementation for inner outer to get the Elementary ThreeSprings working + inner components are put first in the list returned by Inst.splitElems to be instantiated first + when instantiated the inner component environment and the dae is saved into InnerOuter.InstHierarchy + when instantiated the outer component the inner component is looked up into InnerOuter.InstHierarchy and the returned environment and dae are processed to make it usable for outer: * components in the environment are switched from INNER to OUTER * components in the dae are switched from INNER to OUTER and prefixed with the prefix of outer - tons of other fixes InnerOuter.mo is a new package - contains the instance hierarchy and the inner/outer functionality previously in Inst.mo Prefix.mo split into Prefix.mo and PrefixUtil.mo - this makes Prefix.mo to contain just data type definitions and can be included almost anywhere. - Prefix functionality that heavily depends on other packages is moved to PrefixUtil.mo Connect.mo split into Connect.mo and ConnectUtil.mo - just data types in Connect.mo to be easily included anywhere - ConnectUtil.mo better encapsulates the connect functionality from Inst.mo and Env.mo SCode.mo - added info node to SCode.CLASS (is now used in Static.mo to get the build time for a function instead of going via Interactive.getPathedClassInProgram which might do instantiation again) Inst.mo - moved big parts of Inst.mo into ConnectUtil.mo and InnerOuter.mo - modification on outer will be ignored and will generate only a warning instead of an error as some other Modelica tools do. Env.mo - moved parts of Env.mo into ConnectUtil.mo as they really belong there! - this makes Env.mo much lightweight on imported modules. DAEUtil.mo - correctly dump the input/output types of the flattened functions - got rid of some spaces before the ";" Cevalfunc.mo - fixed an error with the dimension of the type of the output components in functions type AliasToArrayType = Real[3]; output AliasToArrayType x; wrongly generated: output Real x; Main.mo - better display of errors and warnings when flattening files from the command line - hopefully fixed the naming of generated code if you load a library via the command line ./omc File.mo Modelica wrongly generated Modelica.cpp Modelica_functions.cpp ... System.mo and systemimpl.c - changed a bit the global caching interface. Static.mo - return the same expression in makeASUBArrayAdressing if we have qualified component references This will get rid of x.y.f[{1,2,3}] = ... in the Elementary examples. - implemented function caching in Ceval.mo (disabled for now as we get permission denied when trying to delete .dlls in .mos scripts) Makefile* - updates to makefiles to compile the new packages git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@4985 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
- Loading branch information