SU2
Functions
wspace.c File Reference

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)
 

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

§ AllocateRefinementWorkSpace()

void AllocateRefinementWorkSpace ( ctrl_t ctrl,
idx_t  nbrpoolsize 
)

This function allocates refinement-specific memory for the workspace

§ AllocateWorkSpace()

void AllocateWorkSpace ( ctrl_t ctrl,
graph_t graph 
)

This function allocates memory for the workspace

§ cnbrpoolGetNext()

idx_t cnbrpoolGetNext ( ctrl_t ctrl,
idx_t  nnbrs 
)

This function gets the next free index from cnbrpool

§ cnbrpoolReset()

void cnbrpoolReset ( ctrl_t ctrl)

This function resets the cnbrpool

§ FreeWorkSpace()

void FreeWorkSpace ( ctrl_t ctrl)

This function frees the workspace

§ ikvwspacemalloc()

ikv_t* ikvwspacemalloc ( ctrl_t ctrl,
idx_t  n 
)

This function allocate space from the core

§ iwspacemalloc()

idx_t* iwspacemalloc ( ctrl_t ctrl,
idx_t  n 
)

This function allocate space from the core

§ rwspacemalloc()

real_t* rwspacemalloc ( ctrl_t ctrl,
idx_t  n 
)

This function allocate space from the core

§ vnbrpoolGetNext()

idx_t vnbrpoolGetNext ( ctrl_t ctrl,
idx_t  nnbrs 
)

This function gets the next free index from vnbrpool

§ vnbrpoolReset()

void vnbrpoolReset ( ctrl_t ctrl)

This function resets the vnbrpool

§ wspacemalloc()

void* wspacemalloc ( ctrl_t ctrl,
size_t  nbytes 
)

This function allocate space from the workspace/heap

§ wspacepop()

void wspacepop ( ctrl_t ctrl)

This function frees all mops since the last push

§ wspacepush()

void wspacepush ( ctrl_t ctrl)

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