def __init__(self, handle, axes, periods, reorder):
        import _mpi
        # create the handle
        cartesian = _mpi.communicatorCreateCartesian(handle, reorder, axes, periods)

        # create the python wrapper
        Communicator.__init__(self, cartesian)

        # cache attributes
        self._axes = axes
        self._periods = periods
        self._coordinates = _mpi.communicatorCartesianCoordinates(
            self._handle, self.rank, len(axes))

        return
Beispiel #2
0
    def __init__(self, handle, axes, periods, reorder):
        import _mpi
        # create the handle
        cartesian = _mpi.communicatorCreateCartesian(handle, reorder, axes, periods)

        # create the python wrapper
        Communicator.__init__(self, cartesian)

        # cache attributes
        self._axes = axes
        self._periods = periods
        self._coordinates = _mpi.communicatorCartesianCoordinates(
            self._handle, self.rank, len(axes))

        return
 def __init__(self, conn, f_ctrl):
     Communicator.__init__(self, conn)
     self.f_ctrl = f_ctrl
     self.lastPacketTime = time.time()
	def __init__(self, conn, f_ctrl):
		Communicator.__init__(self, conn)
		self.f_ctrl = f_ctrl
		self.lastPacketTime = time.time()