X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/35fd56f06e4d1d4bc93a80dd0e53afeb20f7e35d..558e19f535bb0c65b610bc758c8133ded549ca3c:/teshsuite/smpi/mpich3-test/util/dtypes_manual.c diff --git a/teshsuite/smpi/mpich3-test/util/dtypes_manual.c b/teshsuite/smpi/mpich3-test/util/dtypes_manual.c index bfff4be3fd..e8f43220f4 100644 --- a/teshsuite/smpi/mpich3-test/util/dtypes_manual.c +++ b/teshsuite/smpi/mpich3-test/util/dtypes_manual.c @@ -43,7 +43,7 @@ */ /* Change this to test only the basic, predefined types */ -static int basic_only = 0; +SMPI_VARINIT_GLOBAL_AND_SET(basic_only, int, 0); /* Arrays types, inbufs, outbufs, and counts are allocated by the @@ -194,7 +194,7 @@ static int basic_only = 0; */ void MTestDatatype2BasicOnly(void) { - basic_only = 1; + SMPI_VARGET_GLOBAL(basic_only) = 1; } SMPI_VARINIT_GLOBAL_AND_SET(nbasic_types, int, 0); /* World rank */ @@ -228,7 +228,7 @@ void MTestDatatype2Generate(MPI_Datatype * types, void **inbufs, void **outbufs, #endif SMPI_VARGET_GLOBAL(nbasic_types) = cnt; - if (basic_only) { + if (SMPI_VARGET_GLOBAL(basic_only)) { *n = cnt; return; }