From 9055586653487d633f2a8d9fda28c2ceb63e93c8 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <matthieu.schaller@durham.ac.uk>
Date: Fri, 6 Nov 2015 23:47:33 +0100
Subject: [PATCH] Added a global array for the sub-task type names.

---
 src/task.c | 4 ++++
 src/task.h | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/task.c b/src/task.c
index a770da1a14..665434bd41 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 e3b86afd9a..818a998bca 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 {
-- 
GitLab