My Project
programmer's documentation
Functions
fvm_box_tree.c File Reference
#include "cs_defs.h"
#include <assert.h>
#include <limits.h>
#include <math.h>
#include <string.h>
#include "bft_mem.h"
#include "bft_printf.h"
#include "fvm_box_priv.h"
#include "fvm_box_tree.h"
Include dependency graph for fvm_box_tree.c:

Functions

fvm_box_tree_tfvm_box_tree_create (int max_level, int threshold, float max_box_ratio)
 
void fvm_box_tree_destroy (fvm_box_tree_t **bt)
 
int fvm_box_tree_get_max_level (const fvm_box_tree_t *bt)
 
void fvm_box_tree_set_boxes (fvm_box_tree_t *bt, const fvm_box_set_t *boxes, fvm_box_tree_sync_t build_type)
 
void fvm_box_tree_get_intersects (fvm_box_tree_t *bt, const fvm_box_set_t *boxes, cs_lnum_t *box_index[], cs_gnum_t *box_g_num[])
 
int fvm_box_tree_get_stats (const fvm_box_tree_t *bt, int depth[3], cs_lnum_t n_leaves[3], cs_lnum_t n_boxes[3], cs_lnum_t n_threshold_leaves[3], cs_lnum_t n_leaf_boxes[3], size_t mem_used[3], size_t mem_allocated[3])
 
void fvm_box_tree_dump_statistics (const fvm_box_tree_t *bt)
 
void fvm_box_tree_dump (fvm_box_tree_t *bt)
 

Function Documentation

◆ fvm_box_tree_create()

fvm_box_tree_t* fvm_box_tree_create ( int  max_level,
int  threshold,
float  max_box_ratio 
)

◆ fvm_box_tree_destroy()

void fvm_box_tree_destroy ( fvm_box_tree_t **  bt)

◆ fvm_box_tree_dump()

void fvm_box_tree_dump ( fvm_box_tree_t bt)

◆ fvm_box_tree_dump_statistics()

void fvm_box_tree_dump_statistics ( const fvm_box_tree_t bt)

◆ fvm_box_tree_get_intersects()

void fvm_box_tree_get_intersects ( fvm_box_tree_t bt,
const fvm_box_set_t *  boxes,
cs_lnum_t box_index[],
cs_gnum_t box_g_num[] 
)

◆ fvm_box_tree_get_max_level()

int fvm_box_tree_get_max_level ( const fvm_box_tree_t bt)

◆ fvm_box_tree_get_stats()

int fvm_box_tree_get_stats ( const fvm_box_tree_t bt,
int  depth[3],
cs_lnum_t  n_leaves[3],
cs_lnum_t  n_boxes[3],
cs_lnum_t  n_threshold_leaves[3],
cs_lnum_t  n_leaf_boxes[3],
size_t  mem_used[3],
size_t  mem_allocated[3] 
)

◆ fvm_box_tree_set_boxes()

void fvm_box_tree_set_boxes ( fvm_box_tree_t bt,
const fvm_box_set_t *  boxes,
fvm_box_tree_sync_t  build_type 
)