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
9577d3a7
Commit
9577d3a7
authored
Feb 25, 2017
by
Matthieu Schaller
Browse files
Silence temporary compiler warning
parent
e2443984
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/engine.c
View file @
9577d3a7
...
...
@@ -1784,17 +1784,18 @@ void engine_count_and_link_tasks(struct engine *e) {
* @param gravity The gravity task to link.
* @param c The cell.
*/
static
inline
void
engine_make_gravity_dependencies
(
struct
scheduler
*
sched
,
struct
task
*
gravity
,
struct
cell
*
c
)
{
/* static inline void engine_make_gravity_dependencies(struct scheduler *sched,
*/
/* struct task *gravity, */
/* struct cell *c) { */
/* init --> gravity --> kick */
scheduler_addunlock
(
sched
,
c
->
super
->
init
,
gravity
);
scheduler_addunlock
(
sched
,
gravity
,
c
->
super
->
kick2
);
/*
/
\
* init --> gravity --> kick
*\/
*/
/*
scheduler_addunlock(sched, c->super->init, gravity);
*/
/*
scheduler_addunlock(sched, gravity, c->super->kick2);
*/
/* grav_up --> gravity ( --> kick) */
scheduler_addunlock
(
sched
,
c
->
super
->
grav_up
,
gravity
);
}
/*
/
\
* grav_up --> gravity ( --> kick)
*\/
*/
/*
scheduler_addunlock(sched, c->super->grav_up, gravity);
*/
/* } */
/**
* @brief Creates the dependency network for the external gravity tasks of a
...
...
@@ -1804,13 +1805,13 @@ static inline void engine_make_gravity_dependencies(struct scheduler *sched,
* @param gravity The gravity task to link.
* @param c The cell.
*/
static
inline
void
engine_make_external_gravity_dependencies
(
struct
scheduler
*
sched
,
struct
task
*
gravity
,
struct
cell
*
c
)
{
/*
static inline void engine_make_external_gravity_dependencies(
*/
/*
struct scheduler *sched, struct task *gravity, struct cell *c) {
*/
/* init --> external gravity --> kick */
scheduler_addunlock
(
sched
,
c
->
super
->
init
,
gravity
);
scheduler_addunlock
(
sched
,
gravity
,
c
->
super
->
kick2
);
}
/*
/
\
* init --> external gravity --> kick
*\/
*/
/*
scheduler_addunlock(sched, c->super->init, gravity);
*/
/*
scheduler_addunlock(sched, gravity, c->super->kick2);
*/
/* } */
/**
* @brief Creates all the task dependencies for the gravity
...
...
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