<div dir="ltr">Hello everyone,<div><br></div><div>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).</div><div><br></div><div>My question is, if my dof is determined at runtime, how can I define a struct with dof doubles?</div><div><br></div><div>Thank you.</div><div><br></div><div>Best,</div><div>Xiangdong</div></div>