61 <<
"Size of list:" << Values.
size()
62 <<
" does not equal the number of processors:"
74 const labelList& belowLeaves = comms[belowID].allBelow();
84 reinterpret_cast<char*
>(receivedValues.begin()),
85 receivedValues.byteSize(),
90 Values[belowID] = receivedValues[0];
94 Values[belowLeaves[leafI]] = receivedValues[leafI + 1];
100 fromBelow >> Values[belowID];
104 Pout<<
" received through "
105 << belowID <<
" data from:" << belowID
106 <<
" data:" << Values[belowID] <<
endl;
110 forAll(belowLeaves, leafI)
112 label leafID = belowLeaves[leafI];
113 fromBelow >> Values[leafID];
117 Pout<<
" received through "
118 << belowID <<
" data from:" << leafID
119 <<
" data:" << Values[leafID] <<
endl;
128 if (myComm.
above() != -1)
144 forAll(belowLeaves, leafI)
146 sendingValues[leafI + 1] = Values[belowLeaves[leafI]];
153 reinterpret_cast<const char*
>(sendingValues.begin()),
154 sendingValues.byteSize(),
171 forAll(belowLeaves, leafI)
173 label leafID = belowLeaves[leafI];
177 Pout<<
" sending to "
178 << myComm.
above() <<
" data from:" << leafID
179 <<
" data:" << Values[leafID] <<
endl;
181 toAbove << Values[leafID];
217 <<
"Size of list:" << Values.
size()
218 <<
" does not equal the number of processors:"
227 if (myComm.
above() != -1)
239 reinterpret_cast<char*
>(receivedValues.begin()),
240 receivedValues.byteSize(),
245 forAll(notBelowLeaves, leafI)
247 Values[notBelowLeaves[leafI]] = receivedValues[leafI];
261 forAll(notBelowLeaves, leafI)
263 label leafID = notBelowLeaves[leafI];
264 fromAbove >> Values[leafID];
268 Pout<<
" received through "
269 << myComm.
above() <<
" data for:" << leafID
270 <<
" data:" << Values[leafID] <<
endl;
280 const labelList& notBelowLeaves = comms[belowID].allNotBelow();
286 forAll(notBelowLeaves, leafI)
288 sendingValues[leafI] = Values[notBelowLeaves[leafI]];
295 reinterpret_cast<const char*
>(sendingValues.begin()),
296 sendingValues.byteSize(),
306 forAll(notBelowLeaves, leafI)
308 label leafID = notBelowLeaves[leafI];
309 toBelow << Values[leafID];
313 Pout<<
" sent through "
314 << belowID <<
" data for:" << leafID
315 <<
" data:" << Values[leafID] <<
endl;