# PetscMapCreateMPI

Creates a map object.

### Synopsis

    #include "petscvec.h"
    int PetscMapCreateMPI(MPI_Comm comm,int n,int N,PetscMap *m)

Collective on MPI_Comm

### Input Parameters

| comm | - the MPI communicator to use
| n | - local vector length (or PETSC_DECIDE to have calculated if N is given)
| N | - global vector length (or PETSC_DECIDE to have calculated if n is given)

### Output Parameter

mm -the map object

### Suggested by

Robert Clay and Alan Williams, developers of ISIS++, Sandia National Laboratories.

### See Also

PetscMapDestroy(), PetscMapGetLocalSize(), PetscMapGetSize(), PetscMapGetGlobalRange(),
PetscMapGetLocalRange()

Level:developer
Location: src/vec/impls/mpi/pmap.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages