On Thu, Oct 4, 2018 at 8:56 AM Phil Tooley
wrote:
> Hi all,
>
> I am trying to understand how to create a custom scatter from petsc
> ordering in a local vector to natural ordering in a global vector.
>
> I have a 3D DMDA and local vector containing field data and am
> calculating the x y and z
So if you have three processors you would want the first processor to have
all x gradients, etc.?
You could use ISCreateGeneral:
https://www.mcs.anl.gov/petsc/petsc-current/src/dm/examples/tutorials/ex6.c.html
You need to create an integer array with the global indices that you want
to bring to
Hi all,
I am trying to understand how to create a custom scatter from petsc
ordering in a local vector to natural ordering in a global vector.
I have a 3D DMDA and local vector containing field data and am
calculating the x y and z gradients into their own local vectors. I
then need to scatter