Ignore:
Timestamp:
02/09/18 16:24:33 (6 years ago)
Author:
dubos
Message:

devel/unstructured : moved mesh partitioning code into meshes.py

File:
1 edited

Legend:

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

    r666 r680  
    11print 'Loading DYNAMICO modules ...' 
    22from dynamico import unstructured as unst 
    3 from dynamico.meshes import MPAS_Mesh as Mesh 
     3from dynamico.meshes import MPAS_Format, Unstructured_Mesh as Mesh 
    44from dynamico import time_step 
    55print '...Done' 
     
    1919def f(lon,lat): return 2*Omega*np.sin(lat) # Coriolis parameter 
    2020print 'Reading MPAS mesh ...' 
    21 mesh = Mesh('grids/x1.%d.grid.nc'%grid, llm, nqdyn, radius, f) 
     21meshfile = MPAS_Format('grids/x1.%d.grid.nc'%grid) 
     22mesh = Mesh(meshfile, llm, nqdyn, radius, f) 
    2223print '...Done' 
    2324lon, lat = mesh.lon_i, mesh.lat_i 
Note: See TracChangeset for help on using the changeset viewer.