You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.1 KiB
43 lines
1.1 KiB
/**
|
|
\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 frees memory that was allocated by METIS and returns
|
|
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;
|
|
}
|
|
|
|
|
|
|