Commit 77dc3b54 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Offest the IDs by a random amount when splitting particles to avoid multi-swallowing issues.

parent bfa3c4e0
......@@ -156,7 +156,7 @@ void engine_split_gas_particle_split_mapper(void *restrict map_data, int count,
}
/* Update the IDs */
global_parts[k_parts].id += 2;
global_parts[k_parts].id += (long long) rand();
/* Re-link everything */
if (with_gravity) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment