Changeset 977 for codes/icosagcm/devel/Python/dynamico/meshes.py
- Timestamp:
- 09/26/19 18:49:01 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/devel/Python/dynamico/meshes.py
r959 r977 1 1 from __future__ import absolute_import 2 3 from dynamico.dev import unstructured as unst4 2 5 3 import time … … 15 13 from dynamico.util import list_stencil, BaseClass, inverse_list 16 14 from dynamico import getargs 17 # TODO from dynamico.parmetis import partition_mesh 18 from dynamico.dev.unstructured import partition_mesh 15 from dynamico.partition import partition_mesh 19 16 20 17 log_master, log_world = getargs.getLogger(__name__) … … 419 416 vertex_lat[cell, ivertex] = vlat 420 417 return vertex_lon, vertex_lat 421 mesh.primal_bounds_lon, mesh.primal_bounds_lat = bounds(mesh.primal_ deg, mesh.primal_vertex, mesh.lon_v, mesh.lat_v)418 mesh.primal_bounds_lon, mesh.primal_bounds_lat = bounds(mesh.primal_own_deg, mesh.primal_vertex, mesh.lon_v, mesh.lat_v) 422 419 mesh.dual_bounds_lon, mesh.dual_bounds_lat = bounds(mesh.dual_deg, mesh.dual_vertex, mesh.lon_i, mesh.lat_i) 423 420 … … 766 763 nn, xx, yy, zz = x.size, toint(x), toint(y), toint(z) 767 764 idx=np.zeros(nn, dtype=np.int64) 768 unst.ker.dynamico_morton_encode(nn, xx,yy,zz, idx)765 partition.dynamico_morton_encode(nn, xx,yy,zz, idx) 769 766 return idx 770 767
Note: See TracChangeset
for help on using the changeset viewer.