static char help[] = "Test MATMFFD for the rectangular case\n\n"; #include static PetscErrorCode myF(void* ctx,Vec x,Vec y) { const PetscScalar *ax; PetscScalar *ay; PetscInt i,j,m,n; PetscFunctionBegin; CHKERRQ(VecGetArrayRead(x,&ax)); CHKERRQ(VecGetArray(y,&ay)); CHKERRQ(VecGetLocalSize(y,&m)); CHKERRQ(VecGetLocalSize(x,&n)); for (i=0;i