| 905 | } |
| 906 | |
| 907 | void |
| 908 | BoxList::Bcast () |
| 909 | { |
| 910 | int nboxes = static_cast<int>(this->size()); |
| 911 | const int IOProcNumber = ParallelDescriptor::IOProcessorNumber(); |
| 912 | ParallelDescriptor::Bcast(&nboxes, 1, IOProcNumber); |
| 913 | if (ParallelDescriptor::MyProc() != IOProcNumber) { |
| 914 | m_lbox.resize(nboxes); |
| 915 | } |
| 916 | ParallelDescriptor::Bcast(m_lbox.data(), nboxes, IOProcNumber); |
| 917 | } |
| 918 | |
| 919 | } |
no test coverage detected