Skip to content

Commit

Permalink
r.geomorphon: Put a few comments right
Browse files Browse the repository at this point in the history
  • Loading branch information
infrastation authored and wenzeslaus committed Oct 28, 2020
1 parent e6021dc commit 8df5294
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions raster/r.geomorphon/local_proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ typedef struct
char *label;
} FCOLORS;

/* variables */
/* main */
GLOBAL MAPS elevation;
GLOBAL int nrows, ncols, row_radius_size, row_buffer_size;
GLOBAL int search_cells, skip_cells, step_cells, start_cells;
Expand All @@ -142,8 +142,6 @@ GLOBAL double flat_threshold, flat_threshold_height;
GLOBAL double H, V;
GLOBAL struct Cell_head window;
GLOBAL int cell_step;

/* main */
GLOBAL unsigned int global_ternary_codes[6562];

/* memory */
Expand All @@ -155,8 +153,10 @@ int free_map(FCELL ** map, int n);
int write_form_cat_colors(char *raster, CATCOLORS * ccolors);
int write_contrast_colors(char *);

/* geom */
/* pattern */
int calc_pattern(PATTERN * pattern, int row, int cur_row, int col);

/* geom */
unsigned int ternary_rotate(unsigned int value);
FORMS determine_form(int num_plus, int num_minus);
int determine_binary(int *pattern, int sign);
Expand Down
4 changes: 2 additions & 2 deletions raster/r.geomorphon/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ int main(int argc, char **argv)

G_done_msg(" ");
exit(EXIT_SUCCESS);
} /* end of multiresolution */
} /* end of NOT multiresolution */

if (multires) {
PATTERN *multi_patterns;
Expand Down Expand Up @@ -550,6 +550,6 @@ int main(int argc, char **argv)
}
G_message("Multiresolution Done!");
exit(EXIT_SUCCESS);
}
} /* end of multiresolution */

}

0 comments on commit 8df5294

Please sign in to comment.