Function t8_forest_partition_data

Function Documentation

void t8_forest_partition_data(t8_forest_t forest_from, t8_forest_t forest_to, const sc_array_t *data_in, sc_array_t *data_out)

Re-Partition an array accordingly to a partitioned forest.

Note

data_in has to be of size equal to the number of local elements of forest_from data_out has to be already allocated and has to be of size equal to the number of local elements of forest_to.

Parameters:
  • forest_from[in] The forest before the partitioning step.

  • forest_to[in] The partitioned forest of forest_from.

  • data_in[in] A pointer to an sc_array_t holding data (one value per element) accordingly to forest_from.

  • data_out[inout] A pointer to an already allocated sc_array_t capable of holding data accordingly to forest_to.