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

Method GetCommunicator

Parallel/DIY/vtkDIYUtilities.cxx:189–202  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

187
188//------------------------------------------------------------------------------
189diy::mpi::communicator vtkDIYUtilities::GetCommunicator(vtkMultiProcessController* controller)
190{
191 vtkDIYUtilities::InitializeEnvironmentForDIY();
192
193#if VTK_MODULE_ENABLE_VTK_ParallelMPI
194 vtkMPICommunicator* vtkcomm =
195 vtkMPICommunicator::SafeDownCast(controller ? controller->GetCommunicator() : nullptr);
196 return vtkcomm ? diy::mpi::communicator(*vtkcomm->GetMPIComm()->GetHandle())
197 : diy::mpi::communicator(MPI_COMM_SELF);
198#else
199 (void)controller;
200 return diy::mpi::communicator();
201#endif
202}
203
204//------------------------------------------------------------------------------
205void vtkDIYUtilities::AllReduce(diy::mpi::communicator& comm, vtkBoundingBox& bbox)

Callers 15

OpenFileForDataReadMethod · 0.45
ReadPointDataArrayMethod · 0.45
ReadAndSendMethod · 0.45
WriteDataMethod · 0.45
broadcastValuesFunction · 0.45
syncValuesFunction · 0.45
ReadSliceMethod · 0.45
ReadSliceMethod · 0.45
OpenAndReadMetaDataMethod · 0.45
MPIGetCommFunction · 0.45
MPIGetCommFunction · 0.45
MPIGetCommFunction · 0.45

Calls 2

communicatorClass · 0.85
GetHandleMethod · 0.45

Tested by 15

MPIGetCommFunction · 0.36
MPIGetCommFunction · 0.36
MPIGetCommFunction · 0.36
MPIGetCommFunction · 0.36
MPIGetCommFunction · 0.36
MPIGetCommFunction · 0.36
MPIGetCommFunction · 0.36
_GetControllerFunction · 0.36
_GetControllerFunction · 0.36
mainFunction · 0.36
Process2Function · 0.36
Process1Function · 0.36