Commit 167e79fb authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Updated signature of drift point debugging check function.

parent aaab643a
......@@ -758,11 +758,11 @@ void cell_clean_links(struct cell *c, void *data) {
*/
void cell_check_drift_point(struct cell *c, void *data) {
integertime_t ti_current = *(integertime_t *)data;
const integertime_t ti_drift = *(integertime_t *)data;
if (c->ti_old != ti_current && c->nodeID == engine_rank)
error("Cell in an incorrect time-zone! c->ti_old=%lld ti_current=%lld",
c->ti_old, ti_current);
if (c->ti_old != ti_drift && c->nodeID == engine_rank)
error("Cell in an incorrect time-zone! c->ti_old=%lld ti_drift=%lld",
c->ti_old, ti_drift);
}
/**
......
......@@ -2055,10 +2055,10 @@ void space_link_cleanup(struct space *s) {
* @param s The #space to check.
* @param ti_current The (integer) time.
*/
void space_check_drift_point(struct space *s, integertime_t ti_current) {
void space_check_drift_point(struct space *s, integertime_t ti_drift) {
/* Recursively check all cells */
space_map_cells_pre(s, 1, cell_check_drift_point, &ti_current);
space_map_cells_pre(s, 1, cell_check_drift_point, &ti_drift);
}
/**
......
......@@ -185,7 +185,7 @@ void space_do_gparts_sort();
void space_init_parts(struct space *s);
void space_init_gparts(struct space *s);
void space_link_cleanup(struct space *s);
void space_check_drift_point(struct space *s, integertime_t ti_current);
void space_check_drift_point(struct space *s, integertime_t ti_drift);
void space_check_timesteps(struct space *s);
void space_clean(struct space *s);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment