[GRASS-SVN] r64783 - grass/trunk/vector/v.vol.rst

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Mar 2 13:07:42 PST 2015


Author: annakrat
Date: 2015-03-02 13:07:42 -0800 (Mon, 02 Mar 2015)
New Revision: 64783

Modified:
   grass/trunk/vector/v.vol.rst/user3.c
Log:
v.vol.rst: do not ignore null values in cross_input, causes serious slow down on Windows

Modified: grass/trunk/vector/v.vol.rst/user3.c
===================================================================
--- grass/trunk/vector/v.vol.rst/user3.c	2015-03-02 16:01:17 UTC (rev 64782)
+++ grass/trunk/vector/v.vol.rst/user3.c	2015-03-02 21:07:42 UTC (rev 64783)
@@ -443,7 +443,9 @@
 		    dyy = 0.;
 		    dyz = 0.;
 		    dzz = 0.;
-		    if (bmask == 1) {	/* compute everything for area which is not masked out */
+		    /* compute everything for area which is not masked out
+		       and where cross_input map doesn't have nulls */
+		    if (bmask == 1 && !(cell && Rast_is_f_null_value(&cell[l - 1]))) {
 			h = b[n1];
 			hcell = b[n1];
 			for (m = 1; m <= n_points; m++) {



More information about the grass-commit mailing list