Re: [petsc-users] How do I Ensure that Two DMDA Objects Are Coupled Correctly?

2016-11-29 Thread Dave May
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

[petsc-users] How do I Ensure that Two DMDA Objects Are Coupled Correctly?

2016-11-28 Thread Clark C Pederson
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,