MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / Bcast

Method Bcast

Src/Base/AMReX_BoxList.cpp:907–917  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

905}
906
907void
908BoxList::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}

Callers 1

MakeNewGridsMethod · 0.45

Calls 6

sizeMethod · 0.95
IOProcessorNumberFunction · 0.85
BcastFunction · 0.70
MyProcFunction · 0.70
resizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected