Re: [petsc-users] Extract subdomain values from DMDA

2017-04-22 Thread Jed Brown
Tina Patel writes: > Hello everyone, > I want to manipulate a global vector that has values only on the subgrid of a > larger grid obtained by DMDACreate3d(). For example, I'd like to extract a > 6x6x6 chunk from a 7x7x7 grid.  > At some point, I need to put that 6x6x6 chunk

Re: [petsc-users] Extract subdomain values from DMDA

2017-04-22 Thread Barry Smith
Tina, Is the matrix also obtained by extracting it from a larger matrix on the larger grid or do you generate the matrix for the smaller problem directly on the smaller grid? In order to "pull out" the part you want, you need to create two index sets that indicate the values you are