Skip to content

Commit

Permalink
Small code change
Browse files Browse the repository at this point in the history
  • Loading branch information
rsachetto committed Oct 23, 2023
1 parent 72692e2 commit 037a42b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main_simulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ void free_current_simulation_resources(struct user_options *options, struct mono
}

#ifdef COMPILE_GUI
static void init_gui_config_for_simulation(struct user_options *options, struct gui_shared_info *gui_config, bool only_restart) {
static void init_gui_config_for_simulation(const struct user_options *options, struct gui_shared_info *gui_config, bool only_restart) {

if(!only_restart) {
omp_init_lock(&gui_config->draw_lock);
Expand Down Expand Up @@ -176,12 +176,12 @@ int main(int argc, char **argv) {
log_warn("Running the debug version. If you do not need debug information, build with './build -r' or 'make release' to improve the performace!\n");
#endif

#if defined(_OPENMP)
int np = monodomain_solver->num_threads;

if(np == 0)
np = 1;

#if defined(_OPENMP)
omp_set_num_threads(np);
#endif

Expand Down

0 comments on commit 037a42b

Please sign in to comment.