static char help[] = "VecView() with a DMDA1d vector and draw viewer.\n\n"; #include #include #include PetscErrorCode apply(void *ctx,PetscInt n,const PetscScalar *x,PetscScalar *y) { PetscInt i; for (i=0; i