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

Added check that the cell has been drifted before sorting it.

parent 35cb4495
Branches
Tags
1 merge request!327Rebuild criteria
...@@ -340,7 +340,10 @@ void runner_do_sort(struct runner *r, struct cell *c, int flags, int clock) { ...@@ -340,7 +340,10 @@ void runner_do_sort(struct runner *r, struct cell *c, int flags, int clock) {
const int count = c->count; const int count = c->count;
float buff[8]; float buff[8];
TIMER_TIC TIMER_TIC;
/* Check that the particles have been moved to the current time */
if (!cell_is_drifted(c, r->e)) error("Sorting un-drifted cell");
/* Clean-up the flags, i.e. filter out what's already been sorted, but /* Clean-up the flags, i.e. filter out what's already been sorted, but
only if the sorts are recent. */ only if the sorts are recent. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment