From: ageay Date: Fri, 8 Nov 2013 07:21:44 +0000 (+0000) Subject: Debug vbd to correct the invalid use of parameter. X-Git-Tag: V7_3_1b1~67 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3a9baef3e4cb3cda1ed955136ffdedb3606d35c8;p=tools%2Fmedcoupling.git Debug vbd to correct the invalid use of parameter. --- diff --git a/src/ParaMEDMEM/MPIAccess.cxx b/src/ParaMEDMEM/MPIAccess.cxx index aa186a1b4..291d5c4d8 100644 --- a/src/ParaMEDMEM/MPIAccess.cxx +++ b/src/ParaMEDMEM/MPIAccess.cxx @@ -78,12 +78,13 @@ namespace ParaMEDMEM _comm_interface( ProcessorGroup->getCommInterface() ) , _intra_communicator( ProcessorGroup->getComm() ) { + void *v ; int mpitagub ; int flag ; - //MPI_Attr_get does not run with _IntraCommunicator ??? - //MPI_Attr_get(*_IntraCommunicator,MPI_TAG_UB,&mpitagub,&flag) ; - MPI_Attr_get(MPI_COMM_WORLD,MPI_TAG_UB,&mpitagub,&flag) ; - mpitagub=abs(mpitagub); + //MPI_Comm_get_attr does not run with _IntraCommunicator ??? + //MPI_Comm_get_attr(*_IntraCommunicator,MPID_TAG_UB,&mpitagub,&flag) ; + MPI_Comm_get_attr(MPI_COMM_WORLD,MPI_TAG_UB,&v,&flag) ; + mpitagub=*(reinterpret_cast(v)); if ( BaseTag != 0 ) BaseTag = (BaseTag/MODULO_TAG)*MODULO_TAG ; if ( MaxTag == 0 )