My Project
programmer's documentation
Typedefs | Enumerations | Functions
fvm_box_tree.h File Reference
#include "cs_defs.h"
#include <stdio.h>
#include "fvm_box.h"
Include dependency graph for fvm_box_tree.h:

Go to the source code of this file.

Typedefs

typedef struct _fvm_box_tree_t fvm_box_tree_t
 

Enumerations

enum  fvm_box_tree_sync_t { FVM_BOX_TREE_ASYNC_LEVEL, FVM_BOX_TREE_SYNC_LEVEL }
 

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)
 

Typedef Documentation

◆ fvm_box_tree_t

typedef struct _fvm_box_tree_t fvm_box_tree_t

Enumeration Type Documentation

◆ fvm_box_tree_sync_t

Enumerator
FVM_BOX_TREE_ASYNC_LEVEL 
FVM_BOX_TREE_SYNC_LEVEL 

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 
)