Skip to content
Snippets Groups Projects
Commit e8e16679 authored by Bert Vandenbroucke's avatar Bert Vandenbroucke Committed by Matthieu Schaller
Browse files

Fix inconsistent box wrapping for particles on edge of box

parent 5e95afb7
Branches
Tags
2 merge requests!1558Sync mhd canvas before is too late,!1556Fix inconsistent box wrapping for particles on edge of box
......@@ -273,6 +273,7 @@ struct redist_mapper_data {
parts[k].x[j] += s->dim[j]; \
else if (parts[k].x[j] >= s->dim[j]) \
parts[k].x[j] -= s->dim[j]; \
if (parts[k].x[j] == s->dim[j]) parts[k].x[j] = 0.0; \
} \
const int cid = cell_getid(s->cdim, parts[k].x[0] * s->iwidth[0], \
parts[k].x[1] * s->iwidth[1], \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment