Ignore:
Timestamp:
01/17/19 10:42:38 (5 years ago)
Author:
dubos
Message:

devel/unstructured : implement reference vs physical mesh for spherical meshes

File:
1 edited

Legend:

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

    r760 r801  
    1111from dynamico.meshes import MPAS_Format, Unstructured_PMesh as PMesh, Local_Mesh as Mesh 
    1212from dynamico import time_step 
     13from dynamico import maps 
    1314print '...Done' 
    1415 
     
    2425 
    2526print 'Omega, planetary PV', Omega, 2*Omega/gh0 
     27planet = maps.SphereMap(radius, Omega) 
    2628 
    27 def f(lon,lat): return 2*Omega*np.sin(lat) # Coriolis parameter 
    2829print 'Reading MPAS mesh ...' 
    2930meshfile = MPAS_Format('grids/x1.%d.grid.nc'%grid) 
    3031pmesh = PMesh(comm,meshfile) 
    3132pmesh.partition_metis() 
    32 mesh = Mesh(pmesh, llm, nqdyn, radius, f) 
     33mesh = Mesh(pmesh, llm, nqdyn, planet) 
    3334print '...Done' 
    3435lon, lat = mesh.lon_i, mesh.lat_i 
Note: See TracChangeset for help on using the changeset viewer.