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
Merge branch 'master' of https://framagit.org/simgrid/simgrid
[simgrid.git]
/
teshsuite
/
smpi
/
mpich3-test
/
datatype
/
subarray.c
diff --git
a/teshsuite/smpi/mpich3-test/datatype/subarray.c
b/teshsuite/smpi/mpich3-test/datatype/subarray.c
index d726b5a23d0c0803b492782b758e2a7f9e912416..65f491bdb923eacddcd3df60e125f10529abccba 100644
(file)
--- a/
teshsuite/smpi/mpich3-test/datatype/subarray.c
+++ b/
teshsuite/smpi/mpich3-test/datatype/subarray.c
@@
-18,9
+18,9
@@
int main(int argc, char *argv[])
{
int myrank;
MPI_Datatype subarray;
- int array_size[] = {
X, Y, Z
};
- int array_subsize[] = {
X/2, Y/2, Z
};
- int array_start[] = {
0, 0, 0
};
+ int array_size[] = {
X, Y, Z
};
+ int array_subsize[] = {
X / 2, Y / 2, Z
};
+ int array_start[] = {
0, 0, 0
};
int i, j, k;
int errs = 0;
@@
-42,7
+42,7
@@
int main(int argc, char *argv[])
MPI_DOUBLE, &subarray);
MPI_Type_commit(&subarray);
- if(myrank == 0)
+ if
(myrank == 0)
MPI_Send(array, 1, subarray, 1, 0, MPI_COMM_WORLD);
else {
MPI_Recv(array, 1, subarray, 0, 0, MPI_COMM_WORLD, MPI_STATUS_IGNORE);