#include "petscvec.h" PetscErrorCode VecScatterRemap(VecScatter scat,PetscInt *rto,PetscInt *rfrom)Collective on VecScatter
scat | - vector scatter context | |
from | - remapping for "from" indices (may be NULL) | |
to | - remapping for "to" indices (may be NULL) |
Notes: In the parallel case the todata is actually the indices from which the data is TAKEN! The from stuff is where the data is finally put. This is VERY VERY confusing!
In the sequential case the todata is the indices where the data is put and the fromdata is where it is taken from. This is backwards from the paralllel case! CRY! CRY! CRY!