[petsc-users] DMDA with runtime dof>1

Xiangdong epscodes at gmail.com
Fri Oct 31 13:48:16 CDT 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20141031/aedcdbff/attachment.html>


More information about the petsc-users mailing list