Commit 86b254b4 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

The drift point debugging checks should only verify cells that have any part/gpart.

parent 0453b723
......@@ -1241,6 +1241,9 @@ void cell_check_part_drift_point(struct cell *c, void *data) {
/* Only check local cells */
if (c->nodeID != engine_rank) return;
/* Only check cells with content */
if (c->hydro.count == 0) return;
if (c->hydro.ti_old_part != ti_drift)
error("Cell in an incorrect time-zone! c->hydro.ti_old=%lld ti_drift=%lld",
c->hydro.ti_old_part, ti_drift);
......@@ -1273,6 +1276,9 @@ void cell_check_gpart_drift_point(struct cell *c, void *data) {
/* Only check local cells */
if (c->nodeID != engine_rank) return;
/* Only check cells with content */
if (c->grav.count == 0) return;
if (c->grav.ti_old_part != ti_drift)
error(
"Cell in an incorrect time-zone! c->grav.ti_old_part=%lld "
......@@ -1309,7 +1315,13 @@ void cell_check_multipole_drift_point(struct cell *c, void *data) {
const integertime_t ti_drift = *(integertime_t *)data;
if (c->grav.ti_old_multipole != ti_drift && c->nodeID == engine_rank)
/* Only check local cells */
if (c->nodeID != engine_rank) return;
/* Only check cells with content */
if (c->grav.count == 0) return;
if (c->grav.ti_old_multipole != ti_drift)
error(
"Cell multipole in an incorrect time-zone! "
"c->grav.ti_old_multipole=%lld "
......
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