Skip to content
GitLab
Menu
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
73da4be8
Commit
73da4be8
authored
Jan 23, 2017
by
Pedro Gonnet
Browse files
fix subtype ordering and formatting.
parent
bca734bd
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/engine.c
View file @
73da4be8
...
...
@@ -788,8 +788,8 @@ void engine_addtasks_recv(struct engine *e, struct cell *c, struct task *t_xv,
if
(
t_xv
==
NULL
&&
c
->
density
!=
NULL
)
{
/* Create the tasks. */
t_xv
=
scheduler_addtask
(
s
,
task_type_recv
,
task_subtype_xv
,
4
*
c
->
tag
,
0
,
c
,
NULL
,
0
);
t_xv
=
scheduler_addtask
(
s
,
task_type_recv
,
task_subtype_xv
,
4
*
c
->
tag
,
0
,
c
,
NULL
,
0
);
t_rho
=
scheduler_addtask
(
s
,
task_type_recv
,
task_subtype_rho
,
4
*
c
->
tag
+
1
,
0
,
c
,
NULL
,
0
);
t_ti
=
scheduler_addtask
(
s
,
task_type_recv
,
task_subtype_tend
,
...
...
src/task.c
View file @
73da4be8
...
...
@@ -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.
...
...
src/task.h
View file @
73da4be8
...
...
@@ -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
));
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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