diff --git a/src/task.c b/src/task.c
index a770da1a1433f040a9c582e3e038a47ecf096cf6..665434bd413b94eae850b650b0914e110f5ab91c 100644
--- a/src/task.c
+++ b/src/task.c
@@ -48,6 +48,10 @@ const char *taskID_names[task_type_count] = {
     "ghost",   "drift",   "kick",    "send",     "recv", "link",
     "grav_pp", "grav_mm", "grav_up", "grav_down"};
 
+const char *subtaskID_names[task_type_count] = {
+    "none",    "density",    "force",    "grav"};
+
+
 /**
  * @brief Unlock the cell held by this task.
  *
diff --git a/src/task.h b/src/task.h
index e3b86afd9a9bc7222cebdee0b855602650379eb9..818a998bca07b50b406b3b844f016d08a47c0bf4 100644
--- a/src/task.h
+++ b/src/task.h
@@ -60,7 +60,7 @@ enum task_subtypes {
   task_subtype_count
 };
 
-extern const char *taskID_names[];
+extern const char *subtaskID_names[];
 
 /* Data of a task. */
 struct task {