# MPI\_Comm\_used

Returns list of current used MPI\_Comm handle.

## Syntax

* r = MPI\_Comm\_used()

## Output argument

* h - a vector of MPI\_Comm handle.

## Description

Returns list of current used MPI\_Comm handle.

## See also

[MPI\_Comm\_delete](mpi_comm_delete).

## Example

CLI required

```matlab
if ~MPI_Initialized()
  MPI_Init();
end
comm = MPI_Comm_object();
MPI_Comm_used
delete(comm)
MPI_Comm_used
if MPI_Initialized()
  MPI_Finalize();
end
```

## History

| Version | Description     |
| ------- | --------------- |
| 1.0.0   | initial version |

## Author

Allan CORNET
