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; PetscCall(VecGetArrayRead(x,&ax)); PetscCall(VecGetArray(y,&ay)); PetscCall(VecGetLocalSize(y,&m)); PetscCall(VecGetLocalSize(x,&n)); for (i=0;i