t8  1.2.0
t8code is a C library to manage a forest of adaptive space-trees of general element classes in parallel.
t8_forest_partition.h
Go to the documentation of this file.
1 /*
2  This file is part of t8code.
3  t8code is a C library to manage a collection (a forest) of multiple
4  connected adaptive space-trees of general element classes in parallel.
5 
6  Copyright (C) 2015 the developers
7 
8  t8code is free software; you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation; either version 2 of the License, or
11  (at your option) any later version.
12 
13  t8code is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with t8code; if not, write to the Free Software Foundation, Inc.,
20  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 */
22 
27 /* TODO: begin documenting this file: make doxygen 2>&1 | grep t8_forest_partition */
28 
29 #ifndef T8_FOREST_PARTITION_H
30 #define T8_FOREST_PARTITION_H
31 
32 #include <t8.h>
33 #include <t8_forest.h>
34 
35 T8_EXTERN_C_BEGIN ();
36 /* TODO: document */
37 void t8_forest_partition (t8_forest_t forest);
38 
44 
54  forest, int rank);
55 
61  forest);
62 
70  forest);
71 
72 /* TODO: document */
73 /* data_in has length forest_from->num_local_elements
74  * data_out -- -- forest_to->num_local_elements
75  */
76 void t8_forest_partition_data (t8_forest_t forest_from,
77  t8_forest_t forest_to,
78  const sc_array_t *data_in,
79  sc_array_t *data_out);
80 
81 T8_EXTERN_C_END ();
82 
83 #endif /* !T8_FOREST_PARTITION_H! */
This structure is private to the implementation.
Definition: t8_forest_types.h:69
This is the administrative header file for t8code.
We define the forest of trees in this file.
void t8_forest_partition_create_tree_offsets(t8_forest_t forest)
Create the array tree offsets of a partitioned forest.
Definition: t8_forest_partition.cxx:249
int t8_forest_partition_next_nonempty_rank(t8_forest_t forest, int rank)
If t8_forest_partition_create_offsets was already called, compute for a given rank the next greater r...
void t8_forest_partition_create_offsets(t8_forest_t forest)
Create the element_offset array of a partitioned forest.
Definition: t8_forest_partition.cxx:96
void t8_forest_partition_create_first_desc(t8_forest_t forest)
Create the array of global_first_descendant ids of a partitioned forest.
Definition: t8_forest_partition.cxx:166