alimaye / sun-fan-delta-model

GNU General Public License v3.0
0 stars 0 forks source link

Refactor and bugfix in avulsion routing #28

Closed amoodie closed 3 years ago

amoodie commented 3 years ago

This PR refactors avulsions to simplify the codebase. Additionally, a bug in the forbiddenCorners code is fixed, and avulsion routing is changed to stop after encountering a sink cell at any point along the avulsion (#27).

First commit contains refactor: avulsion path finding is handled entirely within propagateAvulsion now, with checkAvulsion searching and flagging avulsions. First commit also contains bugfix: the corner checking was working, but flagging the incorrect corner as forbidden, this is fixed by reordering the corner index array.

Second commit implements the sink check.