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