Property definitions

mpi $ Status :: defaultinit
# Status of a communication used by `MPI::probe`
extern class Status `{ MPI_Status* `}
	# Ignore the resulting status
	new ignore `{ return MPI_STATUS_IGNORE; `}

	# Allocated a new `Status`, must be freed with `free`
	new `{ return malloc(sizeof(MPI_Status)); `}

	# Source of this communication
	fun source: Rank `{ return self->MPI_SOURCE; `}

	# Tag of this communication
	fun tag: Tag `{ return self->MPI_TAG; `}

	# Success or error on this communication
	fun error: SuccessOrError `{ return self->MPI_ERROR; `}

	# Count of the given `data_type` in this communication
	fun count(data_type: DataType): Int
	`{
		int count;
		MPI_Get_count(self, data_type, &count);
		return count;
	`}
end
lib/mpi/mpi.nit:237,1--261,3