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

Also allocate the groupID array when no particles are in groups.

parent 4bb70323
No related branches found
No related tags found
2 merge requests!721Velociraptor outputs,!719Velociraptor output strategy
......@@ -524,7 +524,7 @@ void velociraptor_invoke(struct engine *e, const int linked_with_snap) {
}
/* Assign the group IDs back to the gparts */
if (linked_with_snap && num_gparts_in_groups > 0) {
if (linked_with_snap) {
if (posix_memalign((void **)&s->gpart_group_data, part_align,
nr_gparts * sizeof(struct velociraptor_gpart_data)) != 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment