Skip to content
Snippets Groups Projects
Commit 4eca3cf2 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Cosmetics

parent c45e8aaf
Branches
Tags
1 merge request!140First version of main() using a parameter file to get constants.
...@@ -2466,8 +2466,12 @@ void engine_init(struct engine *e, struct space *s, ...@@ -2466,8 +2466,12 @@ void engine_init(struct engine *e, struct space *s,
engine_print_policy(e); engine_print_policy(e);
/* Print information about the hydro scheme */ /* Print information about the hydro scheme */
if (e->nodeID == 0) message("Hydrodynamic scheme: %s", SPH_IMPLEMENTATION); if ((e->policy & engine_policy_hydro) == engine_policy_hydro) {
if (e->nodeID == 0) message("Hydrodynamic kernel: %s", kernel_name); if (e->nodeID == 0) message("Hydrodynamic scheme: %s.", SPH_IMPLEMENTATION);
if (e->nodeID == 0)
message("Hydrodynamic kernel: %s with %.2f +/- %.2f neighbours.",
kernel_name, kernel_nwneigh, const_delta_nwneigh);
}
/* Check we have sensible time bounds */ /* Check we have sensible time bounds */
if (e->timeBegin >= e->timeEnd) if (e->timeBegin >= e->timeEnd)
...@@ -2542,7 +2546,7 @@ void engine_init(struct engine *e, struct space *s, ...@@ -2542,7 +2546,7 @@ void engine_init(struct engine *e, struct space *s,
e->barrier_launchcount = 0; e->barrier_launchcount = 0;
/* Init the scheduler with enough tasks for the initial sorting tasks. */ /* Init the scheduler with enough tasks for the initial sorting tasks. */
const int nr_tasks = 2 * s->tot_cells + e->nr_threads; const int nr_tasks = 2 * s->tot_cells + 2 * e->nr_threads;
scheduler_init(&e->sched, e->s, nr_tasks, nr_queues, scheduler_flag_steal, scheduler_init(&e->sched, e->s, nr_tasks, nr_queues, scheduler_flag_steal,
e->nodeID); e->nodeID);
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment