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

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, and if yes submit to the
code repository?

Thanks

Rainer

--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Faculty of Science
Natural Sciences Building
Private Bag X1
University of Stellenbosch
Matieland 7602
South Africa

On Tue, Sep 23, 2008 at 10:08 AM, Rainer M Krug <r.m.krug@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