[GRASS-SVN] r61101 - grass-addons/grass7/raster/r.gwr
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jul 1 05:48:29 PDT 2014
Author: mmetz
Date: 2014-07-01 05:48:29 -0700 (Tue, 01 Jul 2014)
New Revision: 61101
Modified:
grass-addons/grass7/raster/r.gwr/gwr.c
Log:
r.gwr: optimize
Modified: grass-addons/grass7/raster/r.gwr/gwr.c
===================================================================
--- grass-addons/grass7/raster/r.gwr/gwr.c 2014-07-01 11:18:10 UTC (rev 61100)
+++ grass-addons/grass7/raster/r.gwr/gwr.c 2014-07-01 12:48:29 UTC (rev 61101)
@@ -162,6 +162,9 @@
for (c = 0; c < nsize; c++) {
+ if (w[r][c] == 0)
+ continue;
+
isnull = 0;
for (i = 0; i < ninx; i++) {
xval[i + 1] = xbuf[i].buf[r][c + cc];
More information about the grass-commit
mailing list