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
67a7a2da
Commit
67a7a2da
authored
Dec 26, 2016
by
Matthieu Schaller
Browse files
Protect the receive task against use in non-MPI context.
parent
7626e4d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/runner.c
View file @
67a7a2da
...
...
@@ -954,6 +954,8 @@ void runner_do_kick(struct runner *r, struct cell *c, int timer) {
*/
void
runner_do_recv_cell
(
struct
runner
*
r
,
struct
cell
*
c
,
int
timer
)
{
#ifdef WITH_MPI
const
struct
part
*
restrict
parts
=
c
->
parts
;
const
struct
gpart
*
restrict
gparts
=
c
->
gparts
;
const
size_t
nr_parts
=
c
->
count
;
...
...
@@ -1005,6 +1007,10 @@ void runner_do_recv_cell(struct runner *r, struct cell *c, int timer) {
c
->
h_max
=
h_max
;
if
(
timer
)
TIMER_TOC
(
timer_dorecv_cell
);
#else
error
(
"SWIFT was not compiled with MPI support."
);
#endif
}
/**
...
...
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