Commit 9410282c authored by Mladen Ivkovic's avatar Mladen Ivkovic

fixed crashes thanks to Loic

parent f5a9aeb7
......@@ -2214,6 +2214,7 @@ void cell_clean_links(struct cell *c, void *data) {
c->hydro.gradient = NULL;
c->hydro.force = NULL;
c->hydro.limiter = NULL;
c->hydro.rt_inject = NULL;
c->grav.grav = NULL;
c->grav.mm = NULL;
c->stars.density = NULL;
......@@ -4867,17 +4868,16 @@ int cell_unskip_rt_tasks(struct cell *c, struct scheduler *s) {
if ((ci_active && ci_nodeID == nodeID) ||
(cj_active && cj_nodeID == nodeID)) {
message("ACTIVATING %d", counter);
scheduler_activate(s, t);
if (t->type == task_type_sub_self) {
message("trying to access subcell rt tasks activation");
printf("=========================================trying to access subcell self rt tasks activation\n");
cell_activate_subcell_rt_tasks(ci, NULL, s);
}
else if (t->type == task_type_sub_pair) {
printf("=========================================trying to access subcell pair rt tasks activation\n");
cell_activate_subcell_rt_tasks(ci, cj, s);
message("trying to access subcell rt tasks activation");
}
}
}
......
......@@ -38,8 +38,6 @@ void DOSELF1_RT(struct runner *r, struct cell *c, int timer) {
TIMER_TIC;
message("Called self for step %d", r->e->step);
/* Anything to do here? */
if (c->hydro.count == 0 || c->stars.count == 0) return;
......@@ -91,7 +89,6 @@ void DOSELF1_RT(struct runner *r, struct cell *c, int timer) {
* @param cj the second cell, where we take hydro particles from
*/
void DOPAIR1_NONSYM_RT(struct runner *r, struct cell *ci, struct cell *cj) {
message("Called pair for step %d", r->e->step);
const struct engine *e = r->e;
......
......@@ -296,6 +296,7 @@ void space_rebuild_recycle_mapper(void *map_data, int num_elements,
c->stars.ti_end_max = -1;
c->black_holes.ti_end_min = -1;
c->black_holes.ti_end_max = -1;
c->hydro.rt_inject = NULL;
star_formation_logger_init(&c->stars.sfh);
#if defined(SWIFT_DEBUG_CHECKS) || defined(SWIFT_CELL_GRAPH)
c->cellID = 0;
......
Markdown is supported
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