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

Added BHs to the on-the-fly interface of VR

parent b9f7e280
......@@ -237,6 +237,7 @@ void velociraptor_convert_particles_mapper(void *map_data, int nr_gparts,
const struct part *parts = s->parts;
const struct xpart *xparts = s->xparts;
const struct spart *sparts = s->sparts;
const struct bpart *bparts = s->bparts;
/* Handle on the physics modules */
const struct cosmology *cosmo = e->cosmology;
......@@ -314,6 +315,13 @@ void velociraptor_convert_particles_mapper(void *map_data, int nr_gparts,
swift_parts[i].T = 0.f;
case swift_type_black_hole:
swift_parts[i].id = bparts[-gparts[i].id_or_neg_offset].id;
swift_parts[i].u = 0.f;
swift_parts[i].T = 0.f;
case swift_type_dark_matter:
swift_parts[i].id = gparts[i].id_or_neg_offset;
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