From aedde1a80add97075d497625ce0117d64e9e4b2a Mon Sep 17 00:00:00 2001
From: "Peter W. Draper" <p.w.draper@durham.ac.uk>
Date: Mon, 23 Jan 2017 16:23:44 +0000
Subject: [PATCH] Move new subtypes to after count and name them

---
 src/task.c | 3 ++-
 src/task.h | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/task.c b/src/task.c
index ee4d92cf71..b2fa382504 100644
--- a/src/task.c
+++ b/src/task.c
@@ -55,7 +55,8 @@ const char *taskID_names[task_type_count] = {
     "sourceterms"};
 
 const char *subtaskID_names[task_subtype_count] = {
-    "none", "density", "gradient", "force", "grav", "external_grav", "tend"};
+    "none", "density", "gradient", "force", "grav", "external_grav", "tend",
+    "xv", "rho"};
 
 /**
  * @brief Computes the overlap between the parts array of two given cells.
diff --git a/src/task.h b/src/task.h
index a6de189e02..0474af7abb 100644
--- a/src/task.h
+++ b/src/task.h
@@ -71,9 +71,9 @@ enum task_subtypes {
   task_subtype_grav,
   task_subtype_external_grav,
   task_subtype_tend,
-  task_subtype_count,
   task_subtype_xv,
-  task_subtype_rho
+  task_subtype_rho,
+  task_subtype_count
 } __attribute__((packed));
 
 /**
-- 
GitLab