diff --git a/HySoP/hysop/f2py/scales2py.f90 b/HySoP/hysop/f2py/scales2py.f90
index d1579839ceea7250fc2a8b8a7e83b7fcc5976757..40c8fff1e35dbc56985af8a764965a4ebfc4d42e 100755
--- a/HySoP/hysop/f2py/scales2py.f90
+++ b/HySoP/hysop/f2py/scales2py.f90
@@ -23,7 +23,7 @@ contains
     integer(ik), dimension(dim), intent(out) :: offset
     character(len=*), optional ::  order
     real(pk), optional, intent(out) ::  stab_coeff
-    !f2py optional , depend(resolution) :: dim=len(resolution)
+    !f2py optional , depend(ncells) :: dim=len(ncells)
     !f2py intent(hide) dim
     !f2py character(*) optional, intent(in) :: order = 'p_O2'
     
@@ -48,7 +48,7 @@ contains
     call cart_create(dims,error)
     call set_group_size(groupSize)
     ! Create meshes
-    call discretisation_create(resolution(1),resolution(2),resolution(3),lengths(1),lengths(2),lengths(3))
+    call discretisation_create(ncells(1),ncells(2),ncells(3),lengths(1),lengths(2),lengths(3))
     
     ! Init advection solver
     call advec_init(order,stab_coeff)