Skip to content
Snippets Groups Projects
Commit 672f2d89 authored by lhausamm's avatar lhausamm Committed by Loic Hausammann
Browse files

Compute correctly the number of task

  - The index file seems to be good
parent c67b9a8b
No related branches found
No related tags found
1 merge request!502Logger
......@@ -3639,6 +3639,8 @@ void engine_maketasks(struct engine *e) {
e->size_links += s->tot_cells * self_grav_tasks_per_cell;
if (e->policy & engine_policy_stars)
e->size_links += s->tot_cells * stars_tasks_per_cell;
if (e->policy & engine_policy_logger)
e->size_links += s->tot_cells;
/* Allocate the new link list */
if ((e->links = (struct link *)malloc(sizeof(struct link) * e->size_links)) ==
......@@ -4437,6 +4439,10 @@ int engine_estimate_nr_tasks(struct engine *e) {
if (e->policy & engine_policy_stars) {
n1 += 2;
}
if (e->policy & engine_policy_logger) {
n1 += 1;
n2 += 1;
}
#ifdef WITH_MPI
......
......@@ -2742,7 +2742,7 @@ void runner_do_logger(struct runner *r, struct cell *c, int timer) {
logger_mask_u | logger_mask_h | logger_mask_rho |
logger_mask_consts,
&p->last_offset, e->logger_dump);
message("Offset: %lu", p->last_offset);
//message("Offset: %lu", p->last_offset);
/* Set counter back to zero */
p->last_output = 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment