MCPcopy Create free account
hub / github.com/Kitware/VTK / BroadcastDoubleVector

Function BroadcastDoubleVector

IO/PIO/PIOAdaptor.cxx:98–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void BroadcastDoubleVector(
99 vtkMultiProcessController* controller, std::vector<double>& dvec, int rank)
100{
101 unsigned long len = static_cast<unsigned long>(dvec.size());
102 controller->Broadcast(&len, 1, 0);
103 if (rank)
104 {
105 dvec.resize(len);
106 }
107 if (len)
108 {
109 controller->Broadcast(dvec.data(), len, 0);
110 }
111}
112};
113
114struct PIOAdaptor::AdaptorImpl

Callers 1

initializeGlobalMethod · 0.70

Calls 4

sizeMethod · 0.45
BroadcastMethod · 0.45
resizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected