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/DCMIP2008c5.py

    r679 r680  
    44from dynamico import DCMIP 
    55from dynamico import meshes 
    6 from dynamico.meshes import MPAS_Mesh as Mesh 
    76import math as math 
    87import matplotlib.pyplot as plt 
     
    4544    nqdyn, preff, Treff = 1, 1e5, 300. 
    4645    thermo = dyn.Ideal_perfect(Cpd, Rd, preff, Treff) 
    47     mesh = Mesh('grids/x1.%d.grid.nc'%grid, llm, nqdyn, radius, f) 
     46    meshfile = meshes.MPAS_Format('grids/x1.%d.grid.nc'%grid) 
     47    mesh = meshes.Unstructured_Mesh(meshfile, llm, nqdyn, radius, f) 
    4848    lev,levp1 = np.arange(llm),np.arange(llm+1) 
    4949    lon_i, lat_i, lon_e, lat_e =  mesh.lon_i, mesh.lat_i, mesh.lon_e, mesh.lat_e 
Note: See TracChangeset for help on using the changeset viewer.