Changeset 801 for codes/icosagcm/devel/Python/test
- Timestamp:
- 01/17/19 10:42:38 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/devel/Python/test/py/RSW2_MPAS_W02.py
r760 r801 11 11 from dynamico.meshes import MPAS_Format, Unstructured_PMesh as PMesh, Local_Mesh as Mesh 12 12 from dynamico import time_step 13 from dynamico import maps 13 14 print '...Done' 14 15 … … 24 25 25 26 print 'Omega, planetary PV', Omega, 2*Omega/gh0 27 planet = maps.SphereMap(radius, Omega) 26 28 27 def f(lon,lat): return 2*Omega*np.sin(lat) # Coriolis parameter28 29 print 'Reading MPAS mesh ...' 29 30 meshfile = MPAS_Format('grids/x1.%d.grid.nc'%grid) 30 31 pmesh = PMesh(comm,meshfile) 31 32 pmesh.partition_metis() 32 mesh = Mesh(pmesh, llm, nqdyn, radius, f)33 mesh = Mesh(pmesh, llm, nqdyn, planet) 33 34 print '...Done' 34 35 lon, lat = mesh.lon_i, mesh.lat_i
Note: See TracChangeset
for help on using the changeset viewer.