[petsc-users] DMDA with runtime dof>1
Barry Smith
bsmith at mcs.anl.gov
Fri Oct 31 14:37:23 CDT 2014
Use DMDAVecGetArrayDOF()
Barry
> On Oct 31, 2014, at 1:48 PM, Xiangdong <epscodes at gmail.com> wrote:
>
> Hello everyone,
>
> For the DMDA with dof>1, it seems that we always define a struct 'Field' with dof doubles. Once we have this struct, it is easy to convert from global vector to multi-dimension arrays (e.g the function DMDAVecGetArray).
>
> My question is, if my dof is determined at runtime, how can I define a struct with dof doubles?
>
> Thank you.
>
> Best,
> Xiangdong
More information about the petsc-users
mailing list