[petsc-users] dmda and structures

Jed Brown jedbrown at mcs.anl.gov
Tue Dec 31 20:41:53 CST 2013


Gideon Simpson <gideon.simpson at icloud.com> writes:

> I believe I've gotten things to work in both cases, but I wanted to
> clarify what the substantial difference between DMDAVecGetArray and
> DMDAVecGetArrayDOF.  Is it just that it allows me to do indexing of
> the form realization_array[i][j] instead of realization_array[i *
> num_dof +j], 

That's all.  It does that by using an extra set of pointers.

> in terms of how things are distributed?

No difference in distribution.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20131231/4c504fe0/attachment.pgp>


More information about the petsc-users mailing list