# VecScatterRemap
Remaps the "from" and "to" indices in a vector scatter context. FOR EXPERTS ONLY! 
## Synopsis
```
#include "petscsf.h" 
PetscErrorCode VecScatterRemap(VecScatter sf, PetscInt tomap[], PetscInt frommap[])
```
Collective on sf


## Input Parameters

- ***sf    -*** vector scatter context
- ***tomap   -*** remapping plan for "to" indices (may be NULL).
- ***frommap -*** remapping plan for "from" indices (may be NULL)





## Notes
In the parallel case the todata contains indices from where the data is taken
(and then sent to others)! The fromdata contains indices from where the received
data is finally put locally.

In the sequential case the todata contains indices from where the data is put
and the fromdata contains indices from where the data is taken from.
This is backwards from the parallel case!


## See Also
 [](sec_scatter), `VecScatter`, `VecScatterCreate()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/sf/interface/vscat.c.html#VecScatterRemap">src/vec/is/sf/interface/vscat.c</A>


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


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