Skip to content

Commit

Permalink
Small code changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rsachetto committed Oct 24, 2023
1 parent c44c097 commit 5eefc3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main_visualizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ static void calc_vm_bounds(struct gui_shared_info *gui_config, const struct simu
uint32_t num_files = arrlen(simulation_files->files_list);
gui_config->file_size = num_files;

for(int i = 0; i < num_files; i++) {
for(uint32_t i = 0; i < num_files; i++) {
gui_config->progress = i;
char *current_file_name = simulation_files->files_list[i];
const char *current_file_name = simulation_files->files_list[i];
sprintf(path, "%s/%s", simulation_files->base_dir, current_file_name);

if(ensight) {
Expand Down Expand Up @@ -424,7 +424,7 @@ static int read_and_render_files(struct visualization_options *options, struct g
}
}

static void init_gui_config_for_visualization(struct visualization_options *options, struct gui_shared_info *gui_config, bool only_restart) {
static void init_gui_config_for_visualization(const struct visualization_options *options, struct gui_shared_info *gui_config, bool only_restart) {

//TODO: set this from command line
gui_config->adaptive = false;
Expand Down

0 comments on commit 5eefc3e

Please sign in to comment.