static char help[] = "Test VTK structured (.vts) and rectilinear (.vtr) viewer support with multi-dof DMDAs.\n\ Supply the -namefields flag to test with field names.\n\n"; #include #include /* Helper function to name DMDA fields */ PetscErrorCode NameFields(DM da,PetscInt dof) { PetscErrorCode ierr; PetscInt c; PetscFunctionBeginUser; for (c=0; c