[GRASS-dev] [GRASS GIS] #2348: r.stream.order Error finding nodes.

#2348: r.stream.order Error finding nodes.
---------------------+----------------------------
  Reporter: hcho | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.2.3
Component: Raster | Version: svn-trunk
Resolution: | Keywords: r.stream.order
       CPU: All | Platform: All
---------------------+----------------------------

Comment (by mmetz):

Replying to [ticket:2348 hcho]:
> When a cell has five tributaries, ram_number_of_tribs (or
seg_number_of_tribs) doesn't complain (trib > 5 in line 17), but
ram_stream_topology raises a fatal error with the same counting logic
(trib > 4 in line 89). I think 5 incoming tributaries, 1 outgoing and 2
non-stream cells should be fine here too.
>
> IMHO, lines 89 and 308 should also be trib > 5 for consistency.

The max number of tributaries has been synced to be 5 in r71703.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2348#comment:6&gt;
GRASS GIS <https://grass.osgeo.org>