Function t8_cmesh_trees_finish_part(t8_cmesh_trees_t, int)

Function Documentation

void t8_cmesh_trees_finish_part(t8_cmesh_trees_t trees, int proc)

After all classes of trees and ghosts have been set and after the number of tree attributes was set and their total size (per tree) stored temporarily in the att_offset variable we grow the part array by the needed amount of memory and set the offsets appropriately. The workflow should be: call t8_cmesh_trees_start_part, set tree and ghost classes manually via t8_cmesh_trees_add_tree and t8_cmesh_trees_add_ghost, call t8_cmesh_trees_init_attributes, then call this function. Afterwards successively call t8_cmesh_trees_add_attribute for each attribute and also set all face neighbors (TODO: write function).

Parameters:
  • trees[inout] The trees structure to be updated.

  • proc[in] The number of the part to be finished.