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
ae84635d
Commit
ae84635d
authored
Feb 25, 2020
by
Matthieu Schaller
Browse files
Free the proxy memory when done exchanging strays
parent
17abbebc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/engine.c
View file @
ae84635d
...
...
@@ -900,6 +900,21 @@ void engine_exchange_strays(struct engine *e, const size_t offset_parts,
MPI_SUCCESS
)
error
(
"MPI_Waitall on sends failed."
);
/* Free the proxy memory */
for
(
int
k
=
0
;
k
<
e
->
nr_proxies
;
k
++
)
{
struct
proxy
*
prox
=
&
e
->
proxies
[
k
];
if
(
prox
->
gparts_out
)
{
swift_free
(
"gparts_out"
,
prox
->
gparts_out
);
prox
->
gparts_out
=
NULL
;
prox
->
size_gparts_out
=
0
;
}
if
(
prox
->
gparts_in
)
{
swift_free
(
"gparts_in"
,
prox
->
gparts_in
);
prox
->
gparts_in
=
NULL
;
prox
->
size_gparts_in
=
0
;
}
}
if
(
e
->
verbose
)
message
(
"took %.3f %s."
,
clocks_from_ticks
(
getticks
()
-
tic
),
clocks_getunit
());
...
...
Write
Preview
Supports
Markdown
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