Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
90555866
Commit
90555866
authored
Nov 06, 2015
by
Matthieu Schaller
Browse files
Added a global array for the sub-task type names.
parent
0a89ef0f
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/task.c
View file @
90555866
...
...
@@ -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.
*
...
...
src/task.h
View file @
90555866
...
...
@@ -60,7 +60,7 @@ enum task_subtypes {
task_subtype_count
};
extern
const
char
*
taskID_names
[];
extern
const
char
*
sub
taskID_names
[];
/* Data of a task. */
struct
task
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment