1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
/**
\file
\brief This file contains various helper API routines for using METIS.
\date Started 5/12/2011
\author George
\author Copyright 1997-2009, Regents of the University of Minnesota
\version\verbatim $Id: auxapi.c 10409 2011-06-25 16:58:34Z karypis $ \endverbatim
*/
#include "metislib.h"
/*************************************************************************/
/*! This function free memory that was allocated by METIS and retuned
to the application.
\param ptr points to the memory that was previously allocated by
METIS.
*/
/*************************************************************************/
int METIS_Free(void *ptr)
{
if (ptr != NULL) free(ptr);
return METIS_OK;
}
/*************************************************************************/
/*! This function sets the default values for the options.
\param options points to an array of size at least METIS_NOPTIONS.
*/
/*************************************************************************/
int METIS_SetDefaultOptions(idx_t *options)
{
iset(METIS_NOPTIONS, -1, options);
return METIS_OK;
}
|