# ISLocalToGlobalMappingSetType
Sets the implementation type `ISLocalToGlobalMapping` will use 
## Synopsis
```
#include "petscis.h"  
PetscErrorCode ISLocalToGlobalMappingSetType(ISLocalToGlobalMapping ltog, ISLocalToGlobalMappingType type)
```
Logically Collective


## Input Parameters

- ***ltog -*** the `ISLocalToGlobalMapping` object
- ***type -*** a known method



## Options Database Key

- ***-islocaltoglobalmapping_type  <method> -*** Sets the method; use -help for a list of available methods (for instance, basic or hash)





## Notes
See "petsc/include/petscis.h" for available methods

Normally, it is best to use the `ISLocalToGlobalMappingSetFromOptions()` command and
then set the `ISLocalToGlobalMappingType` from the options database rather than by using
this routine.


## Developer Note
`ISLocalToGlobalMappingRegister()` is used to add new types to `ISLocalToGlobalMappingList` from which they
are accessed by `ISLocalToGlobalMappingSetType()`.


## See Also
 [](sec_scatter), `ISLocalToGlobalMappingType`, `ISLocalToGlobalMappingType`, `ISLocalToGlobalMappingRegister()`, `ISLocalToGlobalMappingCreate()`, `ISLocalToGlobalMappingGetType()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/utils/isltog.c.html#ISLocalToGlobalMappingSetType">src/vec/is/utils/isltog.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/is/utils/isltog.c)


[Index of all IS routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
