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

Update the i/o of the basic cooling models to use the new function signature.

parent b02160ec
......@@ -64,9 +64,9 @@ __attribute__((always_inline)) INLINE static int cooling_write_particles(
const struct part* parts, const struct xpart* xparts, struct io_props* list,
const struct cooling_function_data* cooling) {
list[0] = io_make_output_field_convert_part("Temperature", FLOAT, 1,
UNIT_CONV_TEMPERATURE, parts,
xparts, convert_part_T);
list[0] = io_make_output_field_convert_part(
"Temperatures", FLOAT, 1, UNIT_CONV_TEMPERATURE, 0.f, parts, xparts,
convert_part_T, "Temperatures of the gas particles");
return 1;
}
......
......@@ -73,9 +73,9 @@ __attribute__((always_inline)) INLINE static int cooling_write_particles(
const struct part* parts, const struct xpart* xparts, struct io_props* list,
const struct cooling_function_data* cooling) {
list[0] = io_make_output_field_convert_part("Temperature", FLOAT, 1,
UNIT_CONV_TEMPERATURE, parts,
xparts, convert_part_T);
list[0] = io_make_output_field_convert_part(
"Temperatures", FLOAT, 1, UNIT_CONV_TEMPERATURE, 0.f, parts, xparts,
convert_part_T, "Temperatures of the gas particles");
return 1;
}
......
......@@ -72,12 +72,14 @@ __attribute__((always_inline)) INLINE static int cooling_write_particles(
const struct part* parts, const struct xpart* xparts, struct io_props* list,
const struct cooling_function_data* cooling) {
list[0] = io_make_output_field_convert_part("Temperature", FLOAT, 1,
UNIT_CONV_TEMPERATURE, parts,
xparts, convert_part_T);
list[0] = io_make_output_field_convert_part(
"Temperature", FLOAT, 0.f, 1, UNIT_CONV_TEMPERATURE, parts, xparts,
convert_part_T, "Temperatures of the gas particles");
list[1] = io_make_output_field("RadiatedEnergy", FLOAT, 1, UNIT_CONV_ENERGY,
xparts, cooling_data.radiated_energy);
list[1] = io_make_output_field(
"RadiatedEnergies", FLOAT, 1, UNIT_CONV_ENERGY, 0.f, xparts,
cooling_data.radiated_energy,
"Thermal energies radiated by the cooling mechanism");
return 2;
}
......
......@@ -63,7 +63,7 @@ __attribute__((always_inline)) INLINE static int cooling_write_particles(
const struct cooling_function_data* cooling) {
list[0] = io_make_output_field_convert_part(
"Temperature", FLOAT, 1, UNIT_CONV_TEMPERATURE, 0.f, parts, xparts,
"Temperatures", FLOAT, 1, UNIT_CONV_TEMPERATURE, 0.f, parts, xparts,
convert_part_T, "Temperature of the particles");
return 1;
}
......
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