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
1a388cc1
Commit
1a388cc1
authored
Aug 28, 2013
by
Pedro Gonnet
Browse files
be numerically consistent.
Former-commit-id: 071fb3279b08c17b70077bb10a97e9d14c054673
parent
edbbff9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/engine.c
View file @
1a388cc1
...
...
@@ -100,7 +100,7 @@ void engine_redistribute ( struct engine *e ) {
getting the counts. */
int
*
counts
,
*
dest
;
struct
part
*
parts
=
s
->
parts
;
float
ih
[
3
];
double
ih
[
3
];
ih
[
0
]
=
s
->
ih
[
0
];
ih
[
1
]
=
s
->
ih
[
1
];
ih
[
2
]
=
s
->
ih
[
2
];
if
(
(
counts
=
(
int
*
)
malloc
(
sizeof
(
int
)
*
nr_nodes
*
nr_nodes
)
)
==
NULL
||
(
dest
=
(
int
*
)
malloc
(
sizeof
(
int
)
*
s
->
nr_parts
)
)
==
NULL
)
...
...
@@ -156,7 +156,7 @@ void engine_redistribute ( struct engine *e ) {
}
}
/* Wait for all the recvs to tumble in. */
/* Wait for all the
sends and
recvs to tumble in. */
if
(
MPI_Waitall
(
4
*
nr_nodes
,
reqs
,
MPI_STATUSES_IGNORE
)
!=
MPI_SUCCESS
)
error
(
"Failed during waitall for part data."
);
...
...
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