Skip to content
Snippets Groups Projects
Commit c3ed06c5 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Correct unit conversion factor to read the material id from ICs.

parent 80196acc
No related branches found
No related tags found
No related merge requests found
......@@ -69,8 +69,8 @@ INLINE static void hydro_read_particles(struct part* parts,
UNIT_CONV_ACCELERATION, parts, a_hydro);
list[7] = io_make_input_field("Density", FLOAT, 1, OPTIONAL,
UNIT_CONV_DENSITY, parts, rho);
list[8] =
io_make_input_field("MaterialID", INT, 1, OPTIONAL, 1, parts, mat_id);
list[8] = io_make_input_field("MaterialID", INT, 1, COMPULSORY,
UNIT_CONV_NO_UNITS, parts, mat_id);
}
INLINE static void convert_S(const struct engine* e, const struct part* p,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment