pyPDAF.PDAFlocal.set_indices¶
- pyPDAF.PDAFlocal.set_indices()¶
Set index vector to map local state vector to global state vectors.
This is called in the user-supplied function py__init_dim_l_pdaf. This function only sets the mapping for given domain index domain_p between local state vector and global state vector. Each element of map is an index of the global state vector. The index starts from 1.
E.g., map[0] = 2 means that the first element of local state vector is the 2rd element of the global state vector.
- Parameters:
dim_l (int) – Dimension of local state vector
map (ndarray[np.intc, dim=1]) – Index array for mapping between local and global state vector shape: (dim_l,)