pyPDAF.PDAF.local_l2g_cb

pyPDAF.PDAF.local_l2g_cb()

Initialise elements of a global state vector from a local state vector. This is the full callback function to be used internally. The mapping is done using the index vector id_lstate_in_pstate that is initialised in pyPDAF.PDAF.local_set_indices.

To exclude any element of the local state vector from the initialisationone can set the corresponding index value to 0.

Parameters:
  • step (int) – Current time step

  • domain_p (int) – Current local analysis domain

  • dim_l (int) – Local state dimension

  • state_l (ndarray[tuple[dim_l], np.float64]) –

    State vector on local analysis domain

    The array dimension dim_l is Local state dimension.

  • dim_p (int) – PE-local full state dimension

  • state_p (ndarray[tuple[dim_p], np.float64]) –

    PE-local full state vector

    The array dimension dim_p is PE-local full state dimension.

Returns:

state_p – PE-local full state vector

The array dimension dim_p is PE-local full state dimension

Return type:

ndarray[tuple[dim_p], np.float64]