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
e0b68cd1
Commit
e0b68cd1
authored
Feb 19, 2020
by
Loic Hausammann
Browse files
Logger: fix compilation
parent
1d471493
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/engine_maketasks.c
View file @
e0b68cd1
...
@@ -831,7 +831,9 @@ void engine_make_hierarchical_tasks_common(struct engine *e, struct cell *c) {
...
@@ -831,7 +831,9 @@ void engine_make_hierarchical_tasks_common(struct engine *e, struct cell *c) {
const
int
with_timestep_limiter
=
const
int
with_timestep_limiter
=
(
e
->
policy
&
engine_policy_timestep_limiter
);
(
e
->
policy
&
engine_policy_timestep_limiter
);
const
int
with_timestep_sync
=
(
e
->
policy
&
engine_policy_timestep_sync
);
const
int
with_timestep_sync
=
(
e
->
policy
&
engine_policy_timestep_sync
);
#ifdef WITH_LOGGER
const
int
with_logger
=
e
->
policy
&
engine_policy_logger
;
const
int
with_logger
=
e
->
policy
&
engine_policy_logger
;
#endif
/* Are we at the top-level? */
/* Are we at the top-level? */
if
(
c
->
top
==
c
&&
c
->
nodeID
==
e
->
nodeID
)
{
if
(
c
->
top
==
c
&&
c
->
nodeID
==
e
->
nodeID
)
{
...
@@ -1076,7 +1078,9 @@ void engine_make_hierarchical_tasks_hydro(struct engine *e, struct cell *c,
...
@@ -1076,7 +1078,9 @@ void engine_make_hierarchical_tasks_hydro(struct engine *e, struct cell *c,
const
int
with_cooling
=
(
e
->
policy
&
engine_policy_cooling
);
const
int
with_cooling
=
(
e
->
policy
&
engine_policy_cooling
);
const
int
with_star_formation
=
(
e
->
policy
&
engine_policy_star_formation
);
const
int
with_star_formation
=
(
e
->
policy
&
engine_policy_star_formation
);
const
int
with_black_holes
=
(
e
->
policy
&
engine_policy_black_holes
);
const
int
with_black_holes
=
(
e
->
policy
&
engine_policy_black_holes
);
#ifdef WITH_LOGGER
const
int
with_logger
=
(
e
->
policy
&
engine_policy_logger
);
const
int
with_logger
=
(
e
->
policy
&
engine_policy_logger
);
#endif
/* Are we are the level where we create the stars' resort tasks?
/* Are we are the level where we create the stars' resort tasks?
* If the tree is shallow, we need to do this at the super-level if the
* If the tree is shallow, we need to do this at the super-level if the
...
...
Write
Preview
Markdown
is supported
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