parameters: (self)
docstring: Initialize the Communicator.
docstring_summary: Initialize the Communicator.
docstring_tokens: Initialize the Communicator .
function: def _init_communicator(self):
          """Initialize the Communicator."""
          # initialize communicator
          if hoomd.version.mpi_enabled:
              pdata = self.state._cpp_sys_def.getParticleData()
              decomposition = pdata.getDomainDecomposition()
              if decomposition is not None:
                  # create the c++ Communicator
                  if isinstance(self.device, hoomd.device.CPU):
                      cpp_communicator = _hoomd.Communicator(
                          self.state._cpp_sys_def, decomposition)
                  else:
                      cpp_communicator = _hoomd.CommunicatorGPU(
                          self.state._cpp_sys_def, decomposition)
  
                  # set Communicator in C++ System and SystemDefinition
                  self._cpp_sys.setCommunicator(cpp_communicator)
                  self.state._cpp_sys_def.setCommunicator(cpp_communicator)
                  self._system_communicator = cpp_communicator
              else:
                  self._system_communicator = None
          else:
              self._system_communicator = None
function_tokens: def _init_communicator ( self ) : # initialize communicator if hoomd . version . mpi_enabled : pdata = self . state . _cpp_sys_def . getParticleData ( ) decomposition = pdata . getDomainDecomposition ( ) if decomposition is not None : # create the c++ Communicator if isinstance ( self . device , hoomd . device . CPU ) : cpp_communicator = _hoomd . Communicator ( self . state . _cpp_sys_def , decomposition ) else : cpp_communicator = _hoomd . CommunicatorGPU ( self . state . _cpp_sys_def , decomposition ) # set Communicator in C++ System and SystemDefinition self . _cpp_sys . setCommunicator ( cpp_communicator ) self . state . _cpp_sys_def . setCommunicator ( cpp_communicator ) self . _system_communicator = cpp_communicator else : self . _system_communicator = None else : self . _system_communicator = None