Opened 13 years ago

Closed 4 years ago

#1650 closed defect (wontfix)

Sort the DAE before output to circumvent testing errors due to elements/equations switching places

Reported by: Adrian Pop Owned by: Adrian Pop
Priority: high Milestone: Future
Component: *unknown* Version:
Keywords: Cc: Adrian Pop, Per Östlund

Description

Sort the DAE, both components and equations:

  • functions (alphabetic)
  • constants (alphabetic)
  • parameters (alphabetic)
  • inputs (alphabetic for models)
  • outputs (alphabetic for models)
  • variables (alphabetic)
  • algorithms (no sorting, initial algs first)
  • equations (alphabetic on first expression in the equation)
  • annotations


We should do this at least when --running-testsuite flag is on.
Any comments, do you know it will take too much time?

Change History (2)

comment:1 by Dietmar Winkler, 9 years ago

Cc: adrpo, adrpo, perost → adrpo, perost
Milestone: Future

comment:2 by Per Östlund, 4 years ago

Component: *unknown*
Resolution: wontfix
Status: newclosed

I don't think this is much of an issue anymore, the order of most of the elements is defined by where they are declared in the model. The only thing that can really cause issues is changing the connection handling algorithm, which we hopefully shouldn't need to do.

Note: See TracTickets for help on using tickets.