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

Prevent the code from running the stellar ghost on a foreign node.

parent b5f8e635
No related branches found
No related tags found
1 merge request!805Communication tasks for on-the-fly star formation
......@@ -171,6 +171,11 @@ void runner_do_stars_ghost(struct runner *r, struct cell *c, int timer) {
TIMER_TIC;
#ifdef SWIFT_DEBUG_CHECKS
if (c->nodeID != e->nodeID)
error("Running the star ghost on a foreign node!");
#endif
/* Anything to do here? */
if (c->stars.count == 0) return;
if (!cell_is_active_stars(c, e)) return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment