Skip to content
Snippets Groups Projects
Commit b34db505 authored by Andreas Gattringer's avatar Andreas Gattringer
Browse files

butterflies: random walk debug file flush and close

parent 128b81af
No related branches found
No related tags found
No related merge requests found
......@@ -226,5 +226,9 @@ butterflies_cell_dispersal(struct cats_grid *grid, struct cats_thread_info *ts,
single_random_walk(ts, grid, row, col, eggs_to_disperse_per_female, egg_fraction_step, rw_number);
ts->temp1++;
}
if (debug_rw) exit_cats(EXIT_SUCCESS);
if (debug_rw) {
fflush(module_conf->debug_rw_file);
fclose(module_conf->debug_rw_file);
exit_cats(EXIT_SUCCESS);
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment