For collocated variables, I recommend you use the function
DMDAGetReducedDMDA()
http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/DMDAGetReducedDMDA.html
That's the simplest option.
In general, if the 2 dmdas have the same number of points in each
direction, and you let petsc
Dear all,
I'm writing a simple solver for the time-dependent incompressible
Navier-Stokes equations, using a structured grid and a fractional step
approach. Specifically, I'm following the approach of Kim and Moin, from
their 1985 paper. To those who are unfamiliar with fractional step methods,