[GRASS-dev] Submitting code / fixed broken r.spread module

Markus Neteler neteler at osgeo.org
Tue Sep 23 17:15:23 EDT 2008


On Tue, Sep 23, 2008 at 10:08 AM, Rainer M Krug <r.m.krug at gmail.com> wrote:
> Hi
>
> How can I submit the revised code for the r.spread module of the
> WIldfire simulation?
> managed to get it working and it looks fine to me.
>
> The original code in the file replaceHa.c read:
>
>  while ( (smaller_child <= *heap_len) &&
>         (new_min_cost > heap[smaller_child].min_cost)) {
>
>      heap[i].min_cost = heap[smaller_child].min_cost;
>      heap[i].angle = heap[smaller_child].angle;
>      heap[i].row = heap[smaller_child].row;
>      heap[i].col = heap[smaller_child].col;
>
> and I changed it to:
>
> while ( (smaller_child <= *heap_len) &&
>         (smaller_child > 0) &&
>         (new_min_cost > heap[smaller_child].min_cost)) {
> .
> Could please someone check if that is OK,

... not done...

> and if yes submit to the code repository?

Submitted (from offlist diff) to 6.3.svn (requested by Rainer),
6.4.svn and trunk.

cheers,
Markus


More information about the grass-dev mailing list