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.