diff --git a/examples/HydroTests/SodShock_3D/sodShock.yml b/examples/HydroTests/SodShock_3D/sodShock.yml index 816af9c9ad620ce8617340d749b8ab3e61e53ec6..4c6c9b9dec880fb0fd6cb3243b11bade405d53e2 100644 --- a/examples/HydroTests/SodShock_3D/sodShock.yml +++ b/examples/HydroTests/SodShock_3D/sodShock.yml @@ -19,6 +19,9 @@ Snapshots: time_first: 0. # Time of the first output (in internal units) delta_time: 0.2 # Time difference between consecutive outputs (in internal units) compression: 1 + +Scheduler: + links_per_tasks: 75 # Parameters governing the conserved quantities statistics Statistics: diff --git a/examples/parameter_example.yml b/examples/parameter_example.yml index 29e467fca247b25288951239787db2a83121aa55..375c5abc22d117b7322dd49e37109430b3ef0e32 100644 --- a/examples/parameter_example.yml +++ b/examples/parameter_example.yml @@ -72,7 +72,7 @@ Scheduler: cell_extra_sparts: 400 # (Optional) Number of spare sparts per top-level allocated at rebuild time for on-the-fly creation. max_top_level_cells: 12 # (Optional) Maximal number of top-level cells in any dimension. The number of top-level cells will be the cube of this (this is the default value). tasks_per_cell: 0.0 # (Optional) The average number of tasks per cell. If not large enough the simulation will fail (means guess...). - links_per_tasks: 10 # (Optional) The average number of links per tasks (before adding the communication tasks). If not large enough the simulation will fail (means guess...). Defaults to 10. + links_per_tasks: 25 # (Optional) The average number of links per tasks (before adding the communication tasks). If not large enough the simulation will fail (means guess...). Defaults to 10. mpi_message_limit: 4096 # (Optional) Maximum MPI task message size to send non-buffered, KB. engine_max_parts_per_ghost: 1000 # (Optional) Maximum number of parts per ghost. engine_max_sparts_per_ghost: 1000 # (Optional) Maximum number of sparts per ghost. diff --git a/src/engine.c b/src/engine.c index 96f325eba08ce23842ee6d4e7dad6c2d8554599b..a82e8db6d6b73ef95c5705b8b6a4adb3b74cec05 100644 --- a/src/engine.c +++ b/src/engine.c @@ -5512,7 +5512,7 @@ void engine_config(int restart, struct engine *e, struct swift_params *params, /* Estimated number of links per tasks */ e->links_per_tasks = - parser_get_opt_param_int(params, "Scheduler:links_per_tasks", 15); + parser_get_opt_param_int(params, "Scheduler:links_per_tasks", 25); /* Init the scheduler. */ scheduler_init(&e->sched, e->s, maxtasks, nr_queues,