From: vbd Date: Thu, 8 Nov 2007 15:34:34 +0000 (+0000) Subject: replacing MPI_INTEGER with MPI_INT X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6062ae49350f35d4bec869e9198d42f77d73fc04;p=tools%2Fmedcoupling.git replacing MPI_INTEGER with MPI_INT --- diff --git a/src/ParaMEDMEM/ExplicitCoincidentDEC.cxx b/src/ParaMEDMEM/ExplicitCoincidentDEC.cxx index e5b3632a8..61a3f930e 100644 --- a/src/ParaMEDMEM/ExplicitCoincidentDEC.cxx +++ b/src/ParaMEDMEM/ExplicitCoincidentDEC.cxx @@ -195,8 +195,8 @@ void ExplicitCoincidentDEC::broadcastTopology(const ExplicitTopology* toposend, if (!toposend->getProcGroup()->contains(itarget)) { // int nbelem = toposend->getNbLocalElements(); - _comm_interface->send(&size,1,MPI_INTEGER, itarget,tag+itarget,*(group->getComm())); - _comm_interface->send(serializer, size, MPI_INTEGER, itarget, tag+itarget,*(group->getComm())); + _comm_interface->send(&size,1,MPI_INT, itarget,tag+itarget,*(group->getComm())); + _comm_interface->send(serializer, size, MPI_INT, itarget, tag+itarget,*(group->getComm())); } } } @@ -211,9 +211,9 @@ void ExplicitCoincidentDEC::broadcastTopology(const ExplicitTopology* toposend, if (!toporecv->getProcGroup()->contains(isource)) { int nbelem; - _comm_interface->recv(&nbelem, 1, MPI_INTEGER, isource, tag+myworldrank, *(group->getComm()), &status); + _comm_interface->recv(&nbelem, 1, MPI_INT, isource, tag+myworldrank, *(group->getComm()), &status); int* buffer = new int[nbelem]; - _comm_interface->recv(buffer, nbelem, MPI_INTEGER, isource,tag+myworldrank, *(group->getComm()), &status); + _comm_interface->recv(buffer, nbelem, MPI_INT, isource,tag+myworldrank, *(group->getComm()), &status); ExplicitTopology* topotemp=new ExplicitTopology(); topotemp->unserialize(buffer, *_comm_interface); @@ -261,7 +261,7 @@ void ExplicitCoincidentDEC::transferMappingToSource() nb_transfer_union[unionrank]=_explicit_mapping.getNbDistantElems(i); // delete sourcegroup; } - _comm_interface->allToAll(nb_transfer_union, 1, MPI_INTEGER, dummy_recv, 1, MPI_INTEGER, MPI_COMM_WORLD); + _comm_interface->allToAll(nb_transfer_union, 1, MPI_INT, dummy_recv, 1, MPI_INT, MPI_COMM_WORLD); int* sendbuffer= _explicit_mapping.serialize(_topotarget->getProcGroup()->myRank()); @@ -283,7 +283,7 @@ void ExplicitCoincidentDEC::transferMappingToSource() recvcounts[i]=0; recvdispls[i]=0; } - _comm_interface->allToAllV(sendbuffer, sendcounts, senddispls, MPI_INTEGER, dummyrecv, recvcounts, senddispls, MPI_INTEGER, MPI_COMM_WORLD); + _comm_interface->allToAllV(sendbuffer, sendcounts, senddispls, MPI_INT, dummyrecv, recvcounts, senddispls, MPI_INT, MPI_COMM_WORLD); } //receiving in the source subdomains the mapping sent by targets @@ -294,7 +294,7 @@ void ExplicitCoincidentDEC::transferMappingToSource() int* dummy_send=new int[world_size]; for (int i=0; iallToAll(dummy_send, 1, MPI_INTEGER, nb_transfer_union, 1, MPI_INTEGER, MPI_COMM_WORLD); + _comm_interface->allToAll(dummy_send, 1, MPI_INT, nb_transfer_union, 1, MPI_INT, MPI_COMM_WORLD); int total_size=0; for (int i=0; i< world_size; i++) @@ -323,7 +323,7 @@ void ExplicitCoincidentDEC::transferMappingToSource() sendcounts[i]=0; senddispls[i]=0; } - _comm_interface->allToAllV(dummysend, sendcounts, senddispls, MPI_INTEGER, mappingbuffer, recvcounts, recvdispls, MPI_INTEGER, MPI_COMM_WORLD); + _comm_interface->allToAllV(dummysend, sendcounts, senddispls, MPI_INT, mappingbuffer, recvcounts, recvdispls, MPI_INT, MPI_COMM_WORLD); _explicit_mapping.unserialize(world_size,nb_transfer_union,nbtarget, targetranks, mappingbuffer); }