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

Remove the debugging checks for the inhibited particles i/o.

parent 64058d51
......@@ -128,16 +128,6 @@ INLINE static void convert_part_potential(const struct engine* e,
ret[0] = 0.f;
}
INLINE static void convert_part_inhibited(const struct engine* e,
const struct part* p,
const struct xpart* xp, float* ret) {
if (p->time_bin == time_bin_inhibited)
error("Writing inhibited particle to the snapshot!");
ret[0] = p->time_bin;
}
/**
* @brief Specifies which particle fields to write to a dataset
*
......@@ -151,7 +141,7 @@ INLINE static void hydro_write_particles(const struct part* parts,
struct io_props* list,
int* num_fields) {
*num_fields = 12;
*num_fields = 10;
/* List what we want to write */
list[0] = io_make_output_field_convert_part("Coordinates", DOUBLE, 3,
......@@ -179,13 +169,6 @@ INLINE static void hydro_write_particles(const struct part* parts,
UNIT_CONV_POTENTIAL, parts,
xparts, convert_part_potential);
list[10] = io_make_output_field("Timebin", CHAR, 1, UNIT_CONV_NO_UNITS, parts,
time_bin);
list[11] = io_make_output_field_convert_part("Inhibited", FLOAT, 1,
UNIT_CONV_NO_UNITS, parts,
xparts, convert_part_inhibited);
#ifdef DEBUG_INTERACTIONS_SPH
list += *num_fields;
......
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