---
name: "MPI_Comm_set_name_mpi-doc"
section: "3"
platform: "linux"
package: "mpi-doc"
version: "1.2.7-9.1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/MPI_Comm_set_name_mpi-doc"
---

# MPI\_Comm\_set\_name\_mpi-doc(3)

give a print name to the communicator

## NAME

MPI\_Comm\_set\_name -  give a print name to the communicator

## SYNOPSIS

```
#include "mpi.h"
int MPI_Comm_set_name( MPI_Comm com, char *name )
```

## INPUT PARAMETERS

- **com**

  \- Communicator to name (handle)

- **name**

  \- Name for communicator

## NOTES FOR FORTRAN

All MPI routines in Fortran (except for  *MPI\_WTIME* and  *MPI\_WTICK* ) have an additional argument  *ierr* at the end of the argument list.   *ierr* is an integer and has the same meaning as the return value of the routine in C.  In Fortran, MPI routines are subroutines, and are invoked with the *call* statement.

All MPI objects (e.g.,  *MPI\_Datatype* ,  *MPI\_Comm* ) are of type  *INTEGER* in Fortran.

## ERRORS

All MPI routines (except  *MPI\_Wtime* and  *MPI\_Wtick* ) return an error value; C routines as the value of the function and Fortran routines in the last argument.  Before the value is returned, the current MPI error handler is called.  By default, this error handler aborts the MPI job.  The error handler may be changed with  *MPI\_Errhandler\_set* ; the predefined error handler *MPI\_ERRORS\_RETURN* may be used to cause error values to be returned. Note that MPI does  **not** guarentee that an MPI program can continue past an error.

- **MPI\_SUCCESS**

  \- No error; MPI routine completed successfully.

- **MPI\_ERR\_COMM**

  \- Invalid communicator.  A common error is to use a null communicator in a call (not even allowed in  *MPI\_Comm\_rank* ).

## LOCATION

comm\_name\_put.c
