Skip to content

Commit

Permalink
remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
petrasovaa committed Aug 4, 2023
1 parent 1f7fa3d commit 1ea0f91
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions raster/r.sim/simlib/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@ int input_data(void)
int rows = my, cols = mx; /* my and mx are global variables */
int max_walkers;
double unitconv = 0.000000278; /* mm/hr to m/s */
int if_rain = 0;

G_debug(1, "Running MAR 2011 version, started modifications on 20080211");
G_debug(1, "Reading input data");
Expand Down Expand Up @@ -328,15 +327,12 @@ int input_data(void)
/* Rain: read rain map or use a single value for all cells */
if (rain != NULL) {
si = read_double_raster_map(rows, cols, rain, unitconv);
if_rain = 1;
}
else if (rain_val >= 0.0) { /* If no value set its set to -999.99 */
si = create_double_matrix(rows, cols, rain_val * unitconv);
if_rain = 1;
}
else {
si = create_double_matrix(rows, cols, (double)UNDEF);
if_rain = 0;
}

/* Update elevation map */
Expand Down

0 comments on commit 1ea0f91

Please sign in to comment.