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
Fix tesh with new dependencies on Mutex
[simgrid.git]
/
teshsuite
/
smpi
/
type-struct
/
type-struct.c
diff --git
a/teshsuite/smpi/type-struct/type-struct.c
b/teshsuite/smpi/type-struct/type-struct.c
index 35460ea4925c37d4244fdefb666be584f656334f..9ae85efa36d2d590027092ef58f8c3bb3ed64760 100644
(file)
--- a/
teshsuite/smpi/type-struct/type-struct.c
+++ b/
teshsuite/smpi/type-struct/type-struct.c
@@
-1,4
+1,4
@@
-/* Copyright (c) 2012-20
14
. The SimGrid Team.
+/* Copyright (c) 2012-20
23
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-10,7
+10,12
@@
int main(int argc, char **argv)
{
int rank;
int main(int argc, char **argv)
{
int rank;
- struct { int a;int c; double b;int tab[2][3];} value;
+ struct {
+ int a;
+ int c;
+ double b;
+ int tab[2][3];
+ } value = {0};
MPI_Datatype mystruct;
int blocklens[3];
MPI_Aint indices[3];
MPI_Datatype mystruct;
int blocklens[3];
MPI_Aint indices[3];
@@
-55,11
+60,11
@@
int main(int argc, char **argv)
MPI_Bcast( &value, 1, mystruct, 0, MPI_COMM_WORLD );
MPI_Bcast( &value, 1, mystruct, 0, MPI_COMM_WORLD );
- printf(
"Process %d got %d (-2?) and %f (8.0?), tab (should be all 0): ", rank, value.a, value.b
);
+ printf(
"Process %d got %d (-2?) and %f (8.0?), tab (should be all 0):", rank, value.a, value.b
);
for (int j = 0; j < 2; j++)
for (int i = 0; i < 3; i++)
for (int j = 0; j < 2; j++)
for (int i = 0; i < 3; i++)
- printf("
%d
", tab[j][i]);
+ printf("
%d
", tab[j][i]);
printf("\n");
/* Clean up the type */
printf("\n");
/* Clean up the type */