Skip to content

Commit

Permalink
r.stream.extract: remove unneeded condition
Browse files Browse the repository at this point in the history
for setting main drainage direction to A* path if possible. (#1248)

Co-authored-by: Markus Metz <markus.metz.giswork@gmail.com>
  • Loading branch information
nilason and metzm committed Feb 2, 2021
1 parent 6146f05 commit a36d34e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions raster/r.stream.extract/streams.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,14 +597,6 @@ int extract_streams(double threshold, double mont_exp, int internal_acc)
G_fatal_error("np_side < 0");

/* set main drainage direction to A* path if possible */
if (mfd_cells > 0 && max_side != np_side) {
if (fabs(wat_nbr[np_side] >= max_acc)) {
max_acc = fabs(wat_nbr[np_side]);
r_max = dr;
c_max = dc;
max_side = np_side;
}
}
if (mfd_cells == 0) {
flat = 0;
r_max = dr;
Expand Down

0 comments on commit a36d34e

Please sign in to comment.