A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
functioning MPI_Comm_get_name, MPI_Comm_set_name
[simgrid.git]
/
teshsuite
/
smpi
/
mpich3-test
/
datatype
/
hindexed_block_contents.c
diff --git
a/teshsuite/smpi/mpich3-test/datatype/hindexed_block_contents.c
b/teshsuite/smpi/mpich3-test/datatype/hindexed_block_contents.c
index
e316c70
..
c5d0483
100644
(file)
--- a/
teshsuite/smpi/mpich3-test/datatype/hindexed_block_contents.c
+++ b/
teshsuite/smpi/mpich3-test/datatype/hindexed_block_contents.c
@@
-31,15
+31,13
@@
int main(int argc, char **argv)
MPI_Datatype t;
int count = 4;
int blocklength = 2;
MPI_Datatype t;
int count = 4;
int blocklength = 2;
- MPI_Aint displacements[] = {
0, 8, 16, 24
};
+ MPI_Aint displacements[] = {
0, 8, 16, 24
};
MPI_Init(&argc, &argv);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
if (!rank) {
MPI_Init(&argc, &argv);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
if (!rank) {
- MPI_Type_create_hindexed_block(count, blocklength,
- displacements, MPI_INT,
- &t);
+ MPI_Type_create_hindexed_block(count, blocklength, displacements, MPI_INT, &t);
MPI_Type_commit(&t);
{
int ni, na, nd, combiner;
MPI_Type_commit(&t);
{
int ni, na, nd, combiner;
@@
-55,7
+53,7
@@
int main(int argc, char **argv)
check(i[1] == 2);
check(na == 4);
check(i[1] == 2);
check(na == 4);
- for (k
=
0; k < na; k++)
+ for (k
=
0; k < na; k++)
check(a[k] == (k * 8));
check(nd == 1);
check(a[k] == (k * 8));
check(nd == 1);