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
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