Commit 1ab41df0 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

In the case where the gas particles are generated from the ICs, set...

In the case where the gas particles are generated from the ICs, set 'with_baryon_particles' to 1 as well.
parent a49d2803
......@@ -959,7 +959,9 @@ int main(int argc, char *argv[]) {
const int with_DM_particles = N_total[swift_type_dark_matter] > 0;
const int with_baryon_particles =
(N_total[swift_type_gas] + N_total[swift_type_stars] +
N_total[swift_type_black_hole]) > 0;
N_total[swift_type_black_hole] >
0) ||
(with_DM_particles && generate_gas_in_ics);
/* Do we have background DM particles? */
const int with_DM_background_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