[GRASS-dev] [GRASS GIS] #1575: r.horizon bugfix and speedup

GRASS GIS trac at osgeo.org
Tue Apr 9 10:43:43 PDT 2013


#1575: r.horizon bugfix and speedup
-------------------------+--------------------------------------------------
 Reporter:  sprice       |       Owner:  grass-dev@…              
     Type:  enhancement  |      Status:  new                      
 Priority:  normal       |   Milestone:  7.0.0                    
Component:  Raster       |     Version:  svn-trunk                
 Keywords:  r.horizon    |    Platform:  All                      
      Cpu:  All          |  
-------------------------+--------------------------------------------------

Comment(by sprice):

 As far as I know, declaring variables in the if(){} is portable. I'm not
 sure what the speed advantage is, though. I like to explicitly give the
 compiler the opportunity to optimize, though.

 The *0.01 is to remove the divide op.

 I'm not sure where the bug is. It's been a while.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/1575#comment:5>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list