[GRASS-dev] Rast_set_window() changes in 7.0
Glynn Clements
glynn at gclements.plus.com
Sun Aug 15 01:40:10 EDT 2010
Seth Price wrote:
> I'm getting an error whenever I run r.sun under the latest weekly:
> ERROR: Output window changed while maps are open for write
AFAICT, the Rast_set_window() call is gratuitous; try removing it:
--- raster/r.sun/main.c (revision 43118)
+++ raster/r.sun/main.c (working copy)
@@ -1157,8 +1157,6 @@
fd12 = Rast_open_fp_new(glob_rad);
}
- Rast_set_window(&cellhd);
-
if (m != Rast_window_rows())
G_fatal_error("OOPS: rows changed from %d to %d", m, Rast_window_rows());
if (n != Rast_window_cols())
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list