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

No debugging code any more

parent f89460ea
No related branches found
No related tags found
1 merge request!292Drift on demand
......@@ -973,8 +973,6 @@ void runner_do_recv_cell(struct runner *r, struct cell *c, int timer) {
for (size_t k = 0; k < nr_parts; k++) {
const int ti_end = parts[k].ti_end;
// if(ti_end < ti_current) error("Received invalid particle !");
if(parts[k].ti_old != ti_current) error("Received undrifted particles p->ti_old=%d ti_current=%d c->nodeID=%d loc=(%f %f %f) c->drift=%p, c->drift->skip=%d",
parts[k].ti_old, ti_current, c->nodeID, c->loc[0], c->loc[1], c->loc[2], c->drift, c->drift ? c->drift->skip : -1);
ti_end_min = min(ti_end_min, ti_end);
ti_end_max = max(ti_end_max, ti_end);
h_max = max(h_max, parts[k].h);
......@@ -1009,24 +1007,6 @@ void runner_do_recv_cell(struct runner *r, struct cell *c, int timer) {
if (timer) TIMER_TOC(timer_dorecv_cell);
}
void runner_check_drift(struct runner *r, struct cell *c) {
const struct part *restrict parts = c->parts;
const size_t nr_parts = c->count;
const int ti_current = r->e->ti_current;
for (size_t k = 0; k < nr_parts; k++) {
if(parts[k].ti_old != ti_current) {
message("Sending undrifted particles p->ti_old=%d ti_current=%d c->nodeID=%d loc=(%f %f %f) c->drift=%p, c->drift->skip=%d",
parts[k].ti_old, ti_current, c->nodeID, c->loc[0], c->loc[1], c->loc[2],
c->drift, c->drift ? c->drift->skip : -1);
break;
}
}
}
/**
* @brief The #runner main thread routine.
*
......@@ -1190,7 +1170,6 @@ void *runner_main(void *data) {
break;
#ifdef WITH_MPI
case task_type_send:
runner_check_drift(r, ci);
if (t->subtype == task_subtype_tend) {
free(t->buff);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment