# PetscMapGetLocalSize

Gets the number of elements associated with this processor.

### Synopsis

    #include "petscvec.h"
    PetscErrorCode PETSCVEC_DLLEXPORT PetscMapGetLocalSize(PetscMap m,PetscInt *n)

Not Collective

### Input Parameter

m -the map object

### Output Parameter

n -the local size

### C++ variants

| PetscInt PetscMapGetLocalSize(PetscMap m) |  | -> |  | PetscMapGetLocalSize(m,&s); return s;

### See Also

PetscMapGetSize(), PetscMapGetLocalRange(), PetscMapGetGlobalRange()

Level:developer
Location:src/vec/interface/map.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages

### Examples

src/vec/examples/tutorials/ex17.c.html