[petsc-users] DMDA and vector PDE
Alexander Grayver
agrayver at gfz-potsdam.de
Tue Nov 1 10:08:00 CDT 2011
Hello!
Sorry for possibly silly question. I've just recently started to use
DMDA functionality.
I solve 3D vector PDE using FD, so my solution vector b has size 3N,
where N stands for total number of grid cells.
Each part of b contains solution for corresponding dimension, i.e. fx =
b(1:N), fy = b(N+1:2N), fz = b(2N+1:3*N).
The question is how can I link my DMDA layout created for grid with N
cells and my solution vector b which
has size of 3N, but naturally represents just 3 separate vectors fx,fy,fz?
Thanks in advance.
Regards,
Alexander
More information about the petsc-users
mailing list