Changeset 977 for codes/icosagcm/devel/Python/dynamico
- Timestamp:
- 09/26/19 18:49:01 (5 years ago)
- Location:
- codes/icosagcm/devel/Python/dynamico
- Files:
-
- 2 added
- 1 edited
- 1 copied
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 -
codes/icosagcm/devel/Python/dynamico/partition.h
r952 r977 3 3 #include <parmetis.h> 4 4 5 void dynamico_partition_graph(int mpi_rank, int mpi_size,5 static inline void dynamico_partition_graph(int mpi_rank, int mpi_size, 6 6 idx_t vtxdist[], idx_t xadj_loc[], idx_t adjncy_loc[], 7 7 idx_t nparts, idx_t part[]) … … 49 49 } 50 50 51 void dynamico_morton_encode(int n, const int *x, const int *y, const int *z, uint64_t *m)51 static inline void dynamico_morton_encode(int n, const int *x, const int *y, const int *z, uint64_t *m) 52 52 { 53 53 for(int i=0; i<n; i++)
Note: See TracChangeset
for help on using the changeset viewer.