From daa6e0114e610366b3b351b990eaa6586b6e54fd Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Thu, 13 Feb 2020 23:32:32 +0100 Subject: [PATCH] Write the IDs of the black holes as unsigned long long --- src/black_holes/Default/black_holes_io.h | 2 +- src/black_holes/EAGLE/black_holes_io.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/black_holes/Default/black_holes_io.h b/src/black_holes/Default/black_holes_io.h index b2c3374aec..6107ac3fca 100644 --- a/src/black_holes/Default/black_holes_io.h +++ b/src/black_holes/Default/black_holes_io.h @@ -126,7 +126,7 @@ INLINE static void black_holes_write_particles(const struct bpart* bparts, list[2] = io_make_output_field("Masses", FLOAT, 1, UNIT_CONV_MASS, 0.f, bparts, mass, "Masses of the particles"); - list[3] = io_make_output_field("ParticleIDs", LONGLONG, 1, UNIT_CONV_NO_UNITS, + list[3] = io_make_output_field("ParticleIDs", ULONGLONG, 1, UNIT_CONV_NO_UNITS, 0.f, bparts, id, "Unique ID of the particles"); list[4] = io_make_output_field( diff --git a/src/black_holes/EAGLE/black_holes_io.h b/src/black_holes/EAGLE/black_holes_io.h index 7461d16958..06f7a347d6 100644 --- a/src/black_holes/EAGLE/black_holes_io.h +++ b/src/black_holes/EAGLE/black_holes_io.h @@ -130,7 +130,7 @@ INLINE static void black_holes_write_particles(const struct bpart* bparts, io_make_output_field("DynamicalMasses", FLOAT, 1, UNIT_CONV_MASS, 0.f, bparts, mass, "Dynamical masses of the particles"); - list[3] = io_make_output_field("ParticleIDs", LONGLONG, 1, UNIT_CONV_NO_UNITS, + list[3] = io_make_output_field("ParticleIDs", ULONGLONG, 1, UNIT_CONV_NO_UNITS, 0.f, bparts, id, "Unique ID of the particles"); list[4] = io_make_output_field( -- GitLab