[petsc-users] Multi-DOF DMDA Vec

Anush Krishnan anush at bu.edu
Fri Jun 13 13:23:54 CDT 2014


Hello petsc-users,

I created a vector using DMDACreate with 3 degrees of freedom. Is it
possible for me to access each vector corresponding to a degree of freedom?
Seeing that I need to access the array as [k][j][i][dof], does it mean that
the values of each component are not contiguous?

Also, what is the difference between DMDAVecGetArray and DMDAVecGetArrayDOF?

Thank you,
Anush
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140613/6c2aeaf2/attachment.html>


More information about the petsc-users mailing list