# PetscMapGetSize

Gets the total number of elements associated with this map.

### Synopsis

    #include "petscvec.h"
    PetscErrorCode PETSCVEC_DLLEXPORT PetscMapGetSize(PetscMap m,PetscInt *N)

Not Collective

### Input Parameter

m -the map object

### Output Parameter

N -the global size

### C++ variants

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

### See Also

PetscMapGetLocalSize(), 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