33 #undef Pstream_CommonRoutines 34 #define Pstream_CommonRoutines(Native) \ 36 void Foam::UPstream::mpiGather \ 38 const Native* sendData, \ 44 std::memmove(recvData, sendData, count*sizeof(Native)); \ 48 void Foam::UPstream::mpiScatter \ 50 const Native* sendData, \ 56 std::memmove(recvData, sendData, count*sizeof(Native)); \ 60 void Foam::UPstream::mpiAllGather \ 69 void Foam::UPstream::gather \ 71 const Native* sendData, \ 75 const UList<int>& recvCounts, \ 76 const UList<int>& recvOffsets, \ 81 std::memmove(recvData, sendData, sendCount*sizeof(Native)); \ 84 void Foam::UPstream::scatter \ 86 const Native* sendData, \ 87 const UList<int>& sendCounts, \ 88 const UList<int>& sendOffsets, \ 95 std::memmove(recvData, sendData, recvCount*sizeof(Native)); \ 108 #undef Pstream_CommonRoutines #define Pstream_CommonRoutines(Native)