Path: blob/devel/elmergrid/src/metis-5.1.0/libmetis/auxapi.c
3206 views
/**1\file2\brief This file contains various helper API routines for using METIS.34\date Started 5/12/20115\author George6\author Copyright 1997-2009, Regents of the University of Minnesota7\version\verbatim $Id: auxapi.c 10409 2011-06-25 16:58:34Z karypis $ \endverbatim8*/91011#include "metislib.h"121314/*************************************************************************/15/*! This function free memory that was allocated by METIS and retuned16to the application.1718\param ptr points to the memory that was previously allocated by19METIS.20*/21/*************************************************************************/22int METIS_Free(void *ptr)23{24if (ptr != NULL) free(ptr);25return METIS_OK;26}272829/*************************************************************************/30/*! This function sets the default values for the options.3132\param options points to an array of size at least METIS_NOPTIONS.33*/34/*************************************************************************/35int METIS_SetDefaultOptions(idx_t *options)36{37iset(METIS_NOPTIONS, -1, options);3839return METIS_OK;40}4142434445