60 "Pstream::gatherList(const List<Pstream::commsStruct>&"
62 ) <<
"Size of list:" << Values.
size()
63 <<
" does not equal the number of processors:"
74 label belowID = myComm.
below()[belowI];
75 const labelList& belowLeaves = comms[belowID].allBelow();
85 reinterpret_cast<char*>(receivedValues.begin()),
86 receivedValues.byteSize()
89 Values[belowID] = receivedValues[0];
93 Values[belowLeaves[leafI]] = receivedValues[leafI + 1];
99 fromBelow >> Values[belowID];
103 Pout<<
" received through "
104 << belowID <<
" data from:" << belowID
105 <<
" data:" << Values[belowID] <<
endl;
109 forAll(belowLeaves, leafI)
111 label leafID = belowLeaves[leafI];
112 fromBelow >> Values[leafID];
116 Pout<<
" received through "
117 << belowID <<
" data from:" << leafID
118 <<
" data:" << Values[leafID] <<
endl;
127 if (myComm.
above() != -1)
143 forAll(belowLeaves, leafI)
145 sendingValues[leafI + 1] = Values[belowLeaves[leafI]];
152 reinterpret_cast<const char*
>(sendingValues.
begin()),
161 forAll(belowLeaves, leafI)
163 label leafID = belowLeaves[leafI];
167 Pout<<
" sending to "
168 << myComm.
above() <<
" data from:" << leafID
169 <<
" data:" << Values[leafID] <<
endl;
171 toAbove << Values[leafID];
206 "Pstream::scatterList(const List<Pstream::commsStruct>&"
208 ) <<
"Size of list:" << Values.
size()
209 <<
" does not equal the number of processors:"
218 if (myComm.
above() != -1)
230 reinterpret_cast<char*
>(receivedValues.begin()),
231 receivedValues.byteSize()
234 forAll(notBelowLeaves, leafI)
236 Values[notBelowLeaves[leafI]] = receivedValues[leafI];
243 forAll(notBelowLeaves, leafI)
245 label leafID = notBelowLeaves[leafI];
246 fromAbove >> Values[leafID];
250 Pout<<
" received through "
251 << myComm.
above() <<
" data for:" << leafID
252 <<
" data:" << Values[leafID] <<
endl;
261 label belowID = myComm.
below()[belowI];
262 const labelList& notBelowLeaves = comms[belowID].allNotBelow();
268 forAll(notBelowLeaves, leafI)
270 sendingValues[leafI] = Values[notBelowLeaves[leafI]];
277 reinterpret_cast<const char*>(sendingValues.begin()),
278 sendingValues.byteSize()
286 forAll(notBelowLeaves, leafI)
288 label leafID = notBelowLeaves[leafI];
289 toBelow << Values[leafID];
293 Pout<<
" sent through "
294 << belowID <<
" data for:" << leafID
295 <<
" data:" << Values[leafID] <<
endl;