Commit bdc54ed6 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Only check the part<->gpart links in space_init() if we generate gas from ICs or replicate the ICs.

parent 61eee93e
...@@ -2909,11 +2909,11 @@ void space_init(struct space *s, const struct swift_params *params, ...@@ -2909,11 +2909,11 @@ void space_init(struct space *s, const struct swift_params *params,
gparts = s->gparts; gparts = s->gparts;
Npart = s->nr_parts; Npart = s->nr_parts;
Ngpart = s->nr_gparts; Ngpart = s->nr_gparts;
}
#ifdef SWIFT_DEBUG_CHECKS #ifdef SWIFT_DEBUG_CHECKS
part_verify_links(parts, gparts, sparts, Npart, Ngpart, Nspart, 1); part_verify_links(parts, gparts, sparts, Npart, Ngpart, Nspart, 1);
#endif #endif
}
/* Are we replicating the space ? */ /* Are we replicating the space ? */
if (replicate < 1) if (replicate < 1)
...@@ -2927,11 +2927,11 @@ void space_init(struct space *s, const struct swift_params *params, ...@@ -2927,11 +2927,11 @@ void space_init(struct space *s, const struct swift_params *params,
Npart = s->nr_parts; Npart = s->nr_parts;
Ngpart = s->nr_gparts; Ngpart = s->nr_gparts;
Nspart = s->nr_sparts; Nspart = s->nr_sparts;
}
#ifdef SWIFT_DEBUG_CHECKS #ifdef SWIFT_DEBUG_CHECKS
part_verify_links(parts, gparts, sparts, Npart, Ngpart, Nspart, 1); part_verify_links(parts, gparts, sparts, Npart, Ngpart, Nspart, 1);
#endif #endif
}
/* Decide on the minimal top-level cell size */ /* Decide on the minimal top-level cell size */
const double dmax = max3(s->dim[0], s->dim[1], s->dim[2]); const double dmax = max3(s->dim[0], s->dim[1], s->dim[2]);
......
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