[petsc-users] Non-uniform Cartisian Grid

Alan zhenglun.wei at gmail.com
Wed Nov 7 18:50:30 CST 2012


Dear folks,
I hope you're having a nice day.
I'm testing the Poisson solver in /src/ksp/ksp/examples/tutorials/ex45.
It uses the 'DMDACreate3d' to generate a Cartisian structured grid and
solve it with uniform grid size. However, I attempt to modify it to
obtain solution with a Cartsian structured grid and non-uniform grid (It
is not unstructured local refined mesh). Should I still use the
'DMDACreate3d' and implement different grid size in 'ComputeMatrix' and
'ComputeRHS'? In other words, does 'DMDACreate3d' itself include any
mesh size information?

thanks,
Alan


More information about the petsc-users mailing list