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

Improve accuracy of sort.d calculation

parent 9d3f5e9e
Branches
Tags
1 merge request!327Rebuild criteria
......@@ -430,7 +430,7 @@ void runner_do_sort(struct runner *r, struct cell *c, int flags, int clock) {
xparts[k].x_diff_sort[1] = 0.0f;
xparts[k].x_diff_sort[2] = 0.0f;
}
const float px[3] = {parts[k].x[0], parts[k].x[1], parts[k].x[2]};
const double px[3] = {parts[k].x[0], parts[k].x[1], parts[k].x[2]};
for (int j = 0; j < 13; j++)
if (flags & (1 << j)) {
sort[j * (count + 1) + k].i = k;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment