Skip to content

Commit

Permalink
Fix scalability for Tearing.selectCausalVars
Browse files Browse the repository at this point in the history
Tearing.selectCausalVars does intersection of each row, which
typically has a small size (say 2), with selEqs which has size ~500
and is fixed for all rows. The indexes are in a known range (for
example 1~1000), so an array<Boolean> of the known maximum size is
created and filled with true/false (true=exists in selEqs).

This makes the intersection trivial to calculate.
  • Loading branch information
sjoelund authored and OpenModelica-Hudson committed Mar 23, 2016
1 parent 2f31423 commit 3f8822a
Show file tree
Hide file tree
Showing 2 changed files with 147 additions and 40 deletions.

0 comments on commit 3f8822a

Please sign in to comment.