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