Opened 11 years ago

Closed 11 years ago

#2328 closed enhancement (fixed)

backenddaeinfo statistics counts wrong no. of single equations

Reported by: Patrick Täuber Owned by: Patrick Täuber
Priority: normal Milestone: 1.9.0
Component: Backend Version: trunk
Keywords: backenddaeinfo, tearing Cc: Lennart Ochel, Jens Frenkel

Description

Example: testsuite/simulation/modelica/tearing/Tearing2-1.mos

After Tearing:
StrongComponents
========================================
{9:6}
{{{8:4}, {4:7}, {2:8}}
,{3:3} Size: 1 linear
{5:2}
{1:9}
{6:1}
{7:5}

But backenddaeinfo statistics counts:
Single Equations: 6
torn linear Equationsystems: 1 {1 3}

Apparently the no. of torn systems is not subtracted from the no. of single equations.

Change History (4)

comment:1 by Lennart Ochel, 11 years ago

Cc: Jens Frenkel added
Owner: changed from Lennart Ochel to Patrick Täuber
Status: newassigned

I agree. Various strong component types are collapsed for this dump. This is a bit confusing and could be done better. We distinguish between

  • SINGLEEQUATION
  • EQUATIONSYSTEM
  • MIXEDEQUATIONSYSTEM
  • SINGLEARRAY
  • SINGLEALGORITHM
  • SINGLECOMPLEXEQUATION
  • SINGLEWHENEQUATION
  • SINGLEIFEQUATION
  • TORNSYSTEM

in the corresponding Backend uniontype.
It would be better if the dump lists all of these types individually.

I gues you can fix it by your own. It is good for practising ;-)
Also I have added Jens, because I guess he introduced that dump.

Last edited 11 years ago by Lennart Ochel (previous) (diff)

comment:2 by Jens Frenkel, 11 years ago

  • feel free to change it. Primarily it was informative for compiler developers. Now since it is also used in OMEdit it could be more informative for modellers

comment:3 by Lennart Ochel, 11 years ago

Type: defectenhancement

Well, I agree. This is actually more an enhancement than a defect. Anyway, it might be also for developers interesting/important whether a strong component is handled as single equation or torn system.

comment:4 by Patrick Täuber, 11 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.