Function t8_forest_copy_trees

Function Documentation

void t8_forest_copy_trees(t8_forest_t forest, t8_forest_t from, int copy_elements)

Allocate memory for trees and set their values as in from.

For each tree allocate enough element memory to fit the elements of from. If copy_elements is true, copy the elements of from into the element memory. Do not copy the first and last desc for each tree, as this is done outside in commit