Opened 14 years ago
Last modified 14 years ago
#1277 closed task (fixed)
Rewriting default flow connection according to the specification
Reported by: | Adrian Pop | Owned by: | Adrian Pop |
---|---|---|---|
Priority: | low | Milestone: | Red October |
Component: | Frontend | Version: | |
Keywords: | Cc: | Adrian Pop, Adrian Pop, Per Östlund |
Description
This task investigates if the way we are dealing with unconnected flow connectors can be improved.
Right now the unconnected flow connectors are not saved in the connection sets as the Modelica
specification suggests, but a phases in which all flow components in the environment are checked
if they appear in the current connection set (if they don't appear a set-to-zero equation is generated).
An assessment of how much time this phase takes is needed to decide if the re-implementation according
to the specification will speed the compiler considerably. Note that this information (which flow is not
connected) is also required for finishing the implementation of Stream conenctors.
I implemented a cumulative timer in System.mo/systemimpl.c
For EngineV6.mos it reports:
So it seems the time for the phase in which we search for
all flow components that are unconnected is rather small: ~3.4 seconds out of ~9 minutes.