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
67adffa1
Commit
67adffa1
authored
Mar 01, 2018
by
Matthieu Schaller
Browse files
Also use an explicit cast for the multipole proxy allocation.
parent
0d4b43e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/engine.c
View file @
67adffa1
...
...
@@ -2072,7 +2072,8 @@ void engine_exchange_proxy_multipoles(struct engine *e) {
/* Also allocate the MPI requests */
const
int
count_requests
=
count_send_requests
+
count_recv_requests
;
MPI_Request
*
requests
=
malloc
(
sizeof
(
MPI_Request
)
*
count_requests
);
MPI_Request
*
requests
=
(
MPI_Request
*
)
malloc
(
sizeof
(
MPI_Request
)
*
count_requests
);
if
(
requests
==
NULL
)
error
(
"Unable to allocate memory for MPI requests"
);
int
this_request
=
0
;
...
...
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