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
9a80921e
Commit
9a80921e
authored
Aug 09, 2018
by
Matthieu Schaller
Browse files
Code formatting
parent
42842d30
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/engine.c
View file @
9a80921e
...
...
@@ -3746,21 +3746,21 @@ void engine_marktasks_mapper(void *map_data, int num_elements,
/* Activate the send/recv tasks. */
if
(
ci
->
nodeID
!=
engine_rank
)
{
/* If the foreign cell is active, we want its ti_end values. */
if
(
ci_active_gravity
)
scheduler_activate
(
s
,
ci
->
recv_ti
);
/* If the foreign cell is active, we want its ti_end values. */
if
(
ci_active_gravity
)
scheduler_activate
(
s
,
ci
->
recv_ti
);
/* If the local cell is active, send its ti_end values. */
if
(
cj_active_gravity
)
scheduler_activate_send
(
s
,
cj
->
send_ti
,
ci
->
nodeID
);
/* If the local cell is active, send its ti_end values. */
if
(
cj_active_gravity
)
scheduler_activate_send
(
s
,
cj
->
send_ti
,
ci
->
nodeID
);
}
else
if
(
cj
->
nodeID
!=
engine_rank
)
{
/* If the foreign cell is active, we want its ti_end values. */
if
(
cj_active_gravity
)
scheduler_activate
(
s
,
cj
->
recv_ti
);
/* If the foreign cell is active, we want its ti_end values. */
if
(
cj_active_gravity
)
scheduler_activate
(
s
,
cj
->
recv_ti
);
/* If the local cell is active, send its ti_end values. */
if
(
ci_active_gravity
)
scheduler_activate_send
(
s
,
ci
->
send_ti
,
cj
->
nodeID
);
/* If the local cell is active, send its ti_end values. */
if
(
ci_active_gravity
)
scheduler_activate_send
(
s
,
ci
->
send_ti
,
cj
->
nodeID
);
}
#endif
}
...
...
@@ -5336,8 +5336,10 @@ void engine_makeproxies(struct engine *e) {
/* Let's be verbose about this choice */
if
(
e
->
verbose
)
message
(
"Looking for proxies up to %d top-level cells away (delta_m=%d delta_m=%d)"
,
delta
,
delta_m
,
delta_p
);
message
(
"Looking for proxies up to %d top-level cells away (delta_m=%d "
"delta_m=%d)"
,
delta
,
delta_m
,
delta_p
);
/* Loop over each cell in the space. */
int
ind
[
3
];
...
...
src/mesh_gravity.c
View file @
9a80921e
...
...
@@ -333,7 +333,8 @@ void pm_mesh_compute_potential(struct pm_mesh* mesh, const struct space* s,
tic
=
getticks
();
/* Merge everybody's share of the density mesh */
MPI_Allreduce
(
MPI_IN_PLACE
,
rho
,
N
*
N
*
N
,
MPI_DOUBLE
,
MPI_SUM
,
MPI_COMM_WORLD
);
MPI_Allreduce
(
MPI_IN_PLACE
,
rho
,
N
*
N
*
N
,
MPI_DOUBLE
,
MPI_SUM
,
MPI_COMM_WORLD
);
if
(
verbose
)
message
(
"Mesh comunication took %.3f %s."
,
...
...
src/scheduler.c
View file @
9a80921e
...
...
@@ -944,8 +944,8 @@ static void scheduler_splittask_gravity(struct task *t, struct scheduler *s) {
}
}
/* Split the pair */
}
}
/* pair interaction? */
}
/* iterate over the current task. */
}
/* pair interaction? */
}
/* iterate over the current 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