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

Typo in the linking of part<->gpart when exchanging strays.

parent fb8b01dd
Branches
Tags
1 merge request!310Star particles and gparts links over MPI
...@@ -1420,7 +1420,7 @@ void engine_exchange_strays(struct engine *e, size_t offset_parts, ...@@ -1420,7 +1420,7 @@ void engine_exchange_strays(struct engine *e, size_t offset_parts,
if (gp->type == swift_type_gas) { if (gp->type == swift_type_gas) {
struct part *p = struct part *p =
&s->parts[offset_gparts + count_parts - gp->id_or_neg_offset]; &s->parts[offset_parts + count_parts - gp->id_or_neg_offset];
gp->id_or_neg_offset = s->parts - p; gp->id_or_neg_offset = s->parts - p;
p->gpart = gp; p->gpart = gp;
} else if (gp->type == swift_type_star) { } else if (gp->type == swift_type_star) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment