qlat.Geometry¶
- class qlat.Geometry(*args)¶
- __init__()¶
Geometry() Geometry(total_site) Geometry(id_node, size_node, node_site) Geometry(coor_node, size_node, node_site)
Methods
Geometry() Geometry(total_site) Geometry(id_node, size_node, node_site) Geometry(coor_node, size_node, node_site)
coordinate_from_index(self, Long index)coordinate_g_from_l(self, Coordinate xl)coordinate_l_from_g(self, Coordinate xg)copy(self[, is_copying_data])g_coordinate_from_index(self, Long index)index_from_coordinate(self, Coordinate xl)index_from_g_coordinate(self, Coordinate xg)init_from_coor_node_site(self, ...)initialize Geometry without call MPI functions.
init_from_id_node_site(self, int id_node, ...)initialize Geometry without call MPI functions.
init_from_total_site(self, Coordinate total_site)Use total_site to initialize Geometry.
is_local(self, Coordinate xl)is_local_xg(self, Coordinate xg)return a global coordinate is inside the local volume or not
show(self)xg_arr(self)return xg for all local sites shape = (geo.local_volume, 4,)
Attributes
cdatacoor_nodeeoexpansion_leftexpansion_rightid_nodeis_only_locallocal_sitelocal_volumelocal_volume_expandednode_sitenum_nodesize_nodetotal_sitetotal_volume