From: cvw Date: Thu, 22 Mar 2012 12:39:47 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: V6_main_FINAL~739 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ac455aa729356d6d3072290ba615daf529342286;p=tools%2Fmedcoupling.git *** empty log message *** --- diff --git a/src/MEDPartitioner/Test/MEDPARTITIONERTest.cxx b/src/MEDPartitioner/Test/MEDPARTITIONERTest.cxx index 25f63b652..754e8efb7 100644 --- a/src/MEDPartitioner/Test/MEDPARTITIONERTest.cxx +++ b/src/MEDPartitioner/Test/MEDPARTITIONERTest.cxx @@ -88,11 +88,14 @@ void MEDPARTITIONERTest::setbigSize() // ============================================================================ void MEDPARTITIONERTest::setUp() { - this->_verbose=0; + this->_verbose=1; #if defined(HAVE_MPI2) - MPI_Init(0,0) - MPI_Comm_size(MPI_COMM_WORLD, &MyGlobals::_World_Size); - MPI_Comm_rank(MPI_COMM_WORLD, &MyGlobals::_Rank); + if (MyGlobals::_Rank==-1) //do once only + { + MPI_Init(0,0); + MPI_Comm_size(MPI_COMM_WORLD, &MyGlobals::_World_Size); + MPI_Comm_rank(MPI_COMM_WORLD, &MyGlobals::_Rank); + } #else //sequential : no MPI MyGlobals::_World_Size=1;