33 #undef Pstream_CommonRoutines 34 #define Pstream_CommonRoutines(Native) \ 35 void Foam::UPstream::mpiGather \ 37 const Native* sendData, \ 45 std::memmove(recvData, sendData, recvCount*sizeof(Native)); \ 49 void Foam::UPstream::mpiScatter \ 51 const Native* sendData, \ 59 std::memmove(recvData, sendData, recvCount*sizeof(Native)); \ 64 #undef Pstream_CommonRoutines 69 #undef Pstream_CommonRoutines 70 #define Pstream_CommonRoutines(Native) \ 71 void Foam::UPstream::gather \ 73 const Native* sendData, \ 77 const UList<int>& recvCounts, \ 78 const UList<int>& recvOffsets, \ 83 std::memmove(recvData, sendData, sendCount*sizeof(Native)); \ 86 void Foam::UPstream::scatter \ 88 const Native* sendData, \ 89 const UList<int>& sendCounts, \ 90 const UList<int>& sendOffsets, \ 97 std::memmove(recvData, sendData, recvCount*sizeof(Native)); \ 110 #undef Pstream_CommonRoutines #define Pstream_CommonRoutines(Native)