Yes, but where things are located in that block of memory depends on how you calculate the location in the memory - particularly when dealing with 2D arrays. Since you are also COPY NY+1 elements more than your original code, I'd say that it is possible that it's going wrong for that reason.
--
Mats