Re: [GRASS-dev] Submitting code / fixed broken r.spread module
On Tue, Sep 23, 2008 at 10:08 AM, Rainer M Krug <[EMAIL PROTECTED]> 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 ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
[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 ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev