hp2FEM
0.1
|
Functions dealing with memory allocation and workspace management. More...
#include "metislib.h"
Functions | |
void | AllocateWorkSpace (ctrl_t *ctrl, graph_t *graph) |
void | AllocateRefinementWorkSpace (ctrl_t *ctrl, idx_t nbrpoolsize) |
void | FreeWorkSpace (ctrl_t *ctrl) |
void * | wspacemalloc (ctrl_t *ctrl, size_t nbytes) |
void | wspacepush (ctrl_t *ctrl) |
void | wspacepop (ctrl_t *ctrl) |
idx_t * | iwspacemalloc (ctrl_t *ctrl, idx_t n) |
real_t * | rwspacemalloc (ctrl_t *ctrl, idx_t n) |
ikv_t * | ikvwspacemalloc (ctrl_t *ctrl, idx_t n) |
void | cnbrpoolReset (ctrl_t *ctrl) |
idx_t | cnbrpoolGetNext (ctrl_t *ctrl, idx_t nnbrs) |
void | vnbrpoolReset (ctrl_t *ctrl) |
idx_t | vnbrpoolGetNext (ctrl_t *ctrl, idx_t nnbrs) |
Functions dealing with memory allocation and workspace management.
void AllocateRefinementWorkSpace | ( | ctrl_t * | ctrl, |
idx_t | nbrpoolsize | ||
) |
This function allocates refinement-specific memory for the workspace
void AllocateWorkSpace | ( | ctrl_t * | ctrl, |
graph_t * | graph | ||
) |
This function allocates memory for the workspace
idx_t cnbrpoolGetNext | ( | ctrl_t * | ctrl, |
idx_t | nnbrs | ||
) |
This function gets the next free index from cnbrpool
void cnbrpoolReset | ( | ctrl_t * | ctrl | ) |
This function resets the cnbrpool
void FreeWorkSpace | ( | ctrl_t * | ctrl | ) |
This function frees the workspace
ikv_t* ikvwspacemalloc | ( | ctrl_t * | ctrl, |
idx_t | n | ||
) |
This function allocate space from the core
idx_t* iwspacemalloc | ( | ctrl_t * | ctrl, |
idx_t | n | ||
) |
This function allocate space from the core
real_t* rwspacemalloc | ( | ctrl_t * | ctrl, |
idx_t | n | ||
) |
This function allocate space from the core
idx_t vnbrpoolGetNext | ( | ctrl_t * | ctrl, |
idx_t | nnbrs | ||
) |
This function gets the next free index from vnbrpool
void vnbrpoolReset | ( | ctrl_t * | ctrl | ) |
This function resets the vnbrpool
void* wspacemalloc | ( | ctrl_t * | ctrl, |
size_t | nbytes | ||
) |
This function allocate space from the workspace/heap
void wspacepush | ( | ctrl_t * | ctrl | ) |
This function sets a marker in the stack of malloc ops to be used subsequently for freeing purposes