Commit 9a5480ad authored by Folkert Nobels's avatar Folkert Nobels
Browse files

Check if the particle is not inhibited for the star formation

parent 2ff52e60
......@@ -669,7 +669,10 @@ void runner_do_star_formation(struct runner *r, struct cell *c, int timer) {
} /* Not Star-forming? */
} else { /* is active? */
star_formation_logger_log_inactive_part(p, xp, &c->stars.sfh);
/* Check if the particle is not inhibited */
if (!part_is_inhibited(p,e)) {
star_formation_logger_log_inactive_part(p, xp, &c->stars.sfh);
}
}
} /* Loop over particles */
}
......
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