Changeset 692


Ignore:
Timestamp:
05/03/18 17:27:43 (6 years ago)
Author:
dubos
Message:

devel/Python : fix test/partition.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/devel/Python/test/py/partition.py

    r680 r692  
    8080meshfile = meshes.MPAS_Format('grids/%s.grid.nc'%grid) 
    8181pmesh = meshes.Unstructured_PMesh(comm, meshfile) 
    82 lmesh = meshes.Local_Mesh(pmesh) 
     82 
     83def coriolis(lon,lat): return 0.*lat 
     84llm, nqdyn, radius = 1,1,1. 
     85lmesh = meshes.Local_Mesh(pmesh, llm, nqdyn, radius, coriolis) 
    8386 
    8487(primal_deg, primal_vertex, dim_vertex, dim_cell, cell_owner,  
     
    103106buf.data = np.cos(10.*buf.data) 
    104107buf.update() # updates halo 
    105 lmesh.plot(ax,[-math.pi/2,math.pi/2], mydegree, mybounds, mylon, mylat, buf.data) 
     108lmesh.plot_patches(ax,[-math.pi/2,math.pi/2], mydegree, mybounds, mylon, mylat, buf.data) 
    106109plt.xlim(-190.,190.) 
    107110plt.ylim(-90.,90.) 
     
    111114buf.read_own(cell_owner) 
    112115buf.update() 
    113 lmesh.plot(ax,[0,mpi_rank+1], mydegree, mybounds, mylon, mylat, buf.data) 
     116lmesh.plot_patches(ax,[0,mpi_rank+1], mydegree, mybounds, mylon, mylat, buf.data) 
    114117plt.xlim(-190.,190.) 
    115118plt.ylim(-90.,90.) 
Note: See TracChangeset for help on using the changeset viewer.