Non uniform grid correction

After encoutering crash on non uniform grids, it occured that I got a buffer outbound index.
If I'm not mistaken the issue came from the dimension in y not used to compute R array values.
Merge pull request #1 from maximeq/patch-1

Non uniform grid correction