Commit 90555866 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Added a global array for the sub-task type names.

parent 0a89ef0f
...@@ -48,6 +48,10 @@ const char *taskID_names[task_type_count] = { ...@@ -48,6 +48,10 @@ const char *taskID_names[task_type_count] = {
"ghost", "drift", "kick", "send", "recv", "link", "ghost", "drift", "kick", "send", "recv", "link",
"grav_pp", "grav_mm", "grav_up", "grav_down"}; "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. * @brief Unlock the cell held by this task.
* *
......
...@@ -60,7 +60,7 @@ enum task_subtypes { ...@@ -60,7 +60,7 @@ enum task_subtypes {
task_subtype_count task_subtype_count
}; };
extern const char *taskID_names[]; extern const char *subtaskID_names[];
/* Data of a task. */ /* Data of a task. */
struct task { struct task {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment