Re: [petsc-users] VecScatter from slice of global vector to sequential vector + AO errors

2013-10-03 Thread Randall Mackie
On Oct 3, 2013, at 12:24 PM, Matthew Knepley wrote: > On Thu, Oct 3, 2013 at 2:07 PM, Randall Mackie wrote: > I am trying to create a VecScatter that will scatter all the values from a > horizontal slice of a 3D DMDA global vector (with dof=3) to a sequential > vector on every processor. So f

Re: [petsc-users] VecScatter from slice of global vector to sequential vector + AO errors

2013-10-03 Thread Barry Smith
Randy, Take a look at DMDAGetRay() in src/dm/impls/da/dasub.c (now called DMDACreateRay()) this takes a row or column from a 2d DADM. You can use the same kind of approach to get a slice from a 3d DMDA. Barry On Oct 3, 2013, at 2:07 PM, Randall Mackie wrote: > I am trying to cr

Re: [petsc-users] VecScatter from slice of global vector to sequential vector + AO errors

2013-10-03 Thread Matthew Knepley
On Thu, Oct 3, 2013 at 2:07 PM, Randall Mackie wrote: > I am trying to create a VecScatter that will scatter all the values from a > horizontal slice of a 3D DMDA global vector (with dof=3) to a sequential > vector on every processor. So far I have been unsuccessful, most likely > because I don't

[petsc-users] VecScatter from slice of global vector to sequential vector + AO errors

2013-10-03 Thread Randall Mackie
I am trying to create a VecScatter that will scatter all the values from a horizontal slice of a 3D DMDA global vector (with dof=3) to a sequential vector on every processor. So far I have been unsuccessful, most likely because I don't completely understand how to get the appropriate IS to do this.