# coding: utf-8

from pyccel.stdlib.parallel.mpi import mpi_init
from pyccel.stdlib.parallel.mpi import mpi_finalize

from pyccel.stdlib.parallel.mpi_new import Cart

ierr = -1

mpi_init(ierr)

p = Cart()

del p

mpi_finalize(ierr)

@@ -187,17 +187,20 @@
 (ierr)%0A%0A
-p
+mesh
  = Cart(
@@ -206,13 +206,199 @@
 ()%0A%0A
-del p
+#sx = mesh.starts%5B0%5D%0A#ex = mesh.ends%5B0%5D%0A#%0A#sy = mesh.starts%5B1%5D%0A#ey = mesh.ends%5B1%5D%0A%0A#r_ext_x = range(sx-1, ex+1+1)%0A#r_ext_y = range(sy-1, ey+1+1)%0A#mesh_ext = tensor(r_ext_x, r_ext_y)%0A%0Adel mesh
 %0A%0Amp

update example cart_2d