From c3ed06c57d2dcd03956c170efefd27bd27aa0f4b Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <matthieu.schaller@durham.ac.uk>
Date: Wed, 20 Jun 2018 12:57:24 +0100
Subject: [PATCH] Correct unit conversion factor to read the material id from
 ICs.

---
 src/hydro/MinimalMultiMat/hydro_io.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/hydro/MinimalMultiMat/hydro_io.h b/src/hydro/MinimalMultiMat/hydro_io.h
index 61301157e1..7f41f5e227 100644
--- a/src/hydro/MinimalMultiMat/hydro_io.h
+++ b/src/hydro/MinimalMultiMat/hydro_io.h
@@ -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,
-- 
GitLab