[petsc-users] DMDA and vector PDE
Jed Brown
jedbrown at mcs.anl.gov
Tue Nov 1 10:14:59 CDT 2011
On Tue, Nov 1, 2011 at 09:08, Alexander Grayver <agrayver at gfz-potsdam.de>wrote:
> 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).
>
You set the number of degrees of freedom per node to 3. Then these vectors
are interlaced in b.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111101/de34d3c5/attachment.htm>
More information about the petsc-users
mailing list