35 #undef Pstream_CommonRoutines 36 #define Pstream_CommonRoutines(Native) \ 37 void Foam::UPstream::allToAll \ 39 const UList<Native>& sendData, \ 40 UList<Native>& recvData, \ 44 recvData.deepCopy(sendData); \ 51 #undef Pstream_CommonRoutines 56 #undef Pstream_CommonRoutines 57 #define Pstream_CommonRoutines(Native) \ 58 void Foam::UPstream::allToAll \ 60 const Native* sendData, \ 61 const UList<int>& sendCounts, \ 62 const UList<int>& sendOffsets, \ 64 const UList<int>& recvCounts, \ 65 const UList<int>& recvOffsets, \ 69 if (recvCounts[0] != sendCounts[0]) \ 71 FatalErrorInFunction \ 72 << "Number to send " << sendCounts[0] \ 73 << " does not equal number to receive " << recvCounts[0] \ 74 << Foam::abort(FatalError); \ 76 std::memmove(recvData, sendData, recvCounts[0]*sizeof(Native)); \ 82 #undef Pstream_CommonRoutines #define Pstream_CommonRoutines(Native)