hp2FEM  0.1
Functions
src/metis-5.0/libmetis/wspace.c File Reference

Functions dealing with memory allocation and workspace management. More...

#include "metislib.h"
Include dependency graph for wspace.c:

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)

Detailed Description

Functions dealing with memory allocation and workspace management.

Date:
Started 2/24/96
Author:
George
Copyright 1997-2009, Regents of the University of Minnesota
Version:
Id:
wspace.c 10492 2011-07-06 09:28:42Z karypis

Function Documentation

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 wspacepop ( ctrl_t ctrl)

This function frees all mops since the last push

void wspacepush ( ctrl_t ctrl)

This function sets a marker in the stack of malloc ops to be used subsequently for freeing purposes

 All Classes Files Functions Variables Typedefs Friends Defines