t8  1.2.0
t8code is a C library to manage a forest of adaptive space-trees of general element classes in parallel.
Functions
t8_cmesh_cxx.cxx File Reference

This file collects all general cmesh routines that need c++ compilation. More...

#include <t8_cmesh.h>
#include <t8_element_cxx.hxx>
#include "t8_cmesh_types.h"

Functions

void t8_cmesh_uniform_bounds (t8_cmesh_t cmesh, int level, t8_scheme_cxx_t *ts, t8_gloidx_t *first_local_tree, t8_gloidx_t *child_in_tree_begin, t8_gloidx_t *last_local_tree, t8_gloidx_t *child_in_tree_end, int8_t *first_tree_shared)
 Calculate the section of a uniform forest for the current rank. More...
 

Detailed Description

This file collects all general cmesh routines that need c++ compilation.

Particularly those functions that use the element interface frome t8_element_cxx.hxx.

TODO: document this file

Function Documentation

◆ t8_cmesh_uniform_bounds()

void t8_cmesh_uniform_bounds ( t8_cmesh_t  cmesh,
int  level,
t8_scheme_cxx_t ts,
t8_gloidx_t first_local_tree,
t8_gloidx_t child_in_tree_begin,
t8_gloidx_t last_local_tree,
t8_gloidx_t child_in_tree_end,
int8_t *  first_tree_shared 
)

Calculate the section of a uniform forest for the current rank.

Parameters
[in]cmeshThe cmesh to be considered.
[in]levelThe uniform refinement level to be created.
[in]tsThe element scheme for which to compute the bounds.
[out]first_local_treeThe first tree that contains elements belonging to the calling processor.
[out]child_in_tree_beginThe global index of the first element belonging to the calling processor. Not computed if NULL.
[out]last_local_treeThe last tree that contains elements belonging to the calling processor.
[out]child_in_tree_endThe global index of the first element that does not belonging to the calling processor anymore. Not computed if NULL.
[out]first_tree_sharedIf not NULL, 1 or 0 is stored here depending on whether first_local_tree is the same as last_local_tree on the next process. cmesh must be committed before calling this function. *