Type specific send over MPI

Property definitions

mpi $ Sendable :: send
	# Type specific send over MPI
	protected fun send(mpi: MPI, at, count: Int, dest: Rank, tag: Tag, comm: Comm) is abstract
lib/mpi/mpi.nit:394,2--395,91

mpi :: mpi $ CIntArray :: send
	redef fun send(mpi, at, count, dest, tag, comm)
	do
		var array
		if at != 0 then
			array = native_array + at
		else array = native_array

		mpi.native_send(array, count, new DataType.int,
			dest, tag, new Comm.world)
	end
lib/mpi/mpi.nit:459,2--468,4

mpi :: mpi $ Text :: send
	redef fun send(mpi, at, count, dest, tag, comm)
	do
		var str
		if at != 0 or count != length then
			str = substring(at, count)
		else str = self

		mpi.native_send(str.to_cstring, count, new DataType.char,
			dest, tag, new Comm.world)
	end
lib/mpi/mpi.nit:422,2--431,4