28 #ifndef T8_CMESH_PARTITION_H
29 #define T8_CMESH_PARTITION_H
109 int shared,
unsigned seed);
133 sc_MPI_Comm comm,
int percent);
This structure holds the connectivity data of the coarse mesh.
Definition: t8_cmesh_types.h:83
Shared memory array structure.
Definition: t8_shmem.c:35
This is the administrative header file for t8code.
int64_t t8_gloidx_t
A type for global indexing that holds really big numbers.
Definition: t8.h:105
We define the coarse mesh of trees in this file.
void t8_cmesh_gather_treecount_nocommit(t8_cmesh_t cmesh, sc_MPI_Comm comm)
Perform the same task as t8_cmesh_gather_treecount, but do not perform the debugging check whether cm...
Definition: t8_cmesh_partition.c:270
t8_shmem_array_t t8_cmesh_offset_random(sc_MPI_Comm comm, t8_gloidx_t num_trees, int shared, unsigned seed)
Create a random partition table.
Definition: t8_cmesh_partition.c:1895
t8_shmem_array_t t8_cmesh_offset_concentrate(int proc, sc_MPI_Comm comm, t8_gloidx_t num_trees)
Create a valid partition table that concentrates all trees at a given process.
Definition: t8_cmesh_partition.c:1851
t8_shmem_array_t t8_cmesh_offset_half(t8_cmesh_t cmesh, sc_MPI_Comm comm)
Create a repartition array, where each process sends half of its trees to the next process.
Definition: t8_cmesh_partition.c:2049
t8_shmem_array_t t8_cmesh_offset_percent(t8_cmesh_t cmesh, sc_MPI_Comm comm, int percent)
Create a repartition array, where each process sends a percentage of its trees to the next process.
Definition: t8_cmesh_partition.c:1979
void t8_cmesh_gather_treecount(t8_cmesh_t cmesh, sc_MPI_Comm comm)
Create the offset array for a partitioned cmesh.
Definition: t8_cmesh_partition.c:262
void t8_cmesh_gather_trees_per_eclass(t8_cmesh_t cmesh, sc_MPI_Comm comm)
From num_local_trees_per_eclass compute num_trees_per_eclass.
Definition: t8_cmesh_partition.c:140
void t8_cmesh_partition(t8_cmesh_t cmesh, sc_MPI_Comm comm)
Given a cmesh which is to be partitioned, execute the partition task.
Definition: t8_cmesh_partition.c:1750
We define here the datatypes needed for internal cmesh routines.