|
@@ -90,23 +90,23 @@ int main(int argc, char *argv[])
|
|
/***************************************************/
|
|
/***************************************************/
|
|
if ((infd_psand = Rast_open_cell_old(psand, "")) < 0)
|
|
if ((infd_psand = Rast_open_cell_old(psand, "")) < 0)
|
|
G_fatal_error(_("Unable to open raster map <%s>"), psand);
|
|
G_fatal_error(_("Unable to open raster map <%s>"), psand);
|
|
- inrast_psand = Rast_allocate_c_buf();
|
|
|
|
|
|
+ inrast_psand = Rast_allocate_d_buf();
|
|
|
|
|
|
if ((infd_psilt = Rast_open_cell_old(psilt, "")) < 0)
|
|
if ((infd_psilt = Rast_open_cell_old(psilt, "")) < 0)
|
|
G_fatal_error(_("Unable to open raster map <%s>"), psilt);
|
|
G_fatal_error(_("Unable to open raster map <%s>"), psilt);
|
|
- inrast_psilt = Rast_allocate_c_buf();
|
|
|
|
|
|
+ inrast_psilt = Rast_allocate_d_buf();
|
|
|
|
|
|
if ((infd_pclay = Rast_open_cell_old(pclay, "")) < 0)
|
|
if ((infd_pclay = Rast_open_cell_old(pclay, "")) < 0)
|
|
G_fatal_error(_("Unable to open raster map <%s>"), pclay);
|
|
G_fatal_error(_("Unable to open raster map <%s>"), pclay);
|
|
- inrast_pclay = Rast_allocate_c_buf();
|
|
|
|
|
|
+ inrast_pclay = Rast_allocate_d_buf();
|
|
|
|
|
|
if ((infd_pomat = Rast_open_cell_old(pomat, "")) < 0)
|
|
if ((infd_pomat = Rast_open_cell_old(pomat, "")) < 0)
|
|
G_fatal_error(_("Unable to open raster map <%s>"), pomat);
|
|
G_fatal_error(_("Unable to open raster map <%s>"), pomat);
|
|
- inrast_pomat = Rast_allocate_c_buf();
|
|
|
|
|
|
+ inrast_pomat = Rast_allocate_d_buf();
|
|
/***************************************************/
|
|
/***************************************************/
|
|
nrows = G_window_rows();
|
|
nrows = G_window_rows();
|
|
ncols = G_window_cols();
|
|
ncols = G_window_cols();
|
|
- outrast = Rast_allocate_c_buf();
|
|
|
|
|
|
+ outrast = Rast_allocate_d_buf();
|
|
|
|
|
|
/* Create New raster files */
|
|
/* Create New raster files */
|
|
if ((outfd = Rast_open_raster_new(result, DCELL_TYPE)) < 0)
|
|
if ((outfd = Rast_open_raster_new(result, DCELL_TYPE)) < 0)
|