Go to the source code of this file.
Functions | |
params_t * | parse_cmdline (int argc, char *argv[]) |
Variables | |
static struct gk_option | long_options [] |
static gk_StringMap_t | ctype_options [] |
static gk_StringMap_t | iptype_options [] |
static gk_StringMap_t | rtype_options [] |
static char | helpstr [][100] |
static char | shorthelpstr [][100] |
$Id: cmdline_ndmetis.c 13900 2013-03-24 15:27:07Z karypis $
Definition in file cmdline_ndmetis.c.
This is the entry point of the command-line argument parser
Definition at line 151 of file cmdline_ndmetis.c.
References c, params_t::clabelfile, errexit(), params_t::filename, gk_fexists(), gk_getopt_long_only(), gk_GetStringID(), gk_malloc(), gk_optarg, gk_optind, gk_strdup(), helpstr, params_t::maxfreq, params_t::maxlen, METIS_CTYPE_SHEM, METIS_IPTYPE_METISRB, METIS_IPTYPE_NODE, METIS_OBJTYPE_CUT, METIS_OBJTYPE_VOL, METIS_OPTION_BALANCE, METIS_OPTION_CCORDER, METIS_OPTION_COMPRESS, METIS_OPTION_CONTIG, METIS_OPTION_CTYPE, METIS_OPTION_DBGLVL, METIS_OPTION_HELP, METIS_OPTION_IPTYPE, METIS_OPTION_MINCONN, METIS_OPTION_NCUTS, METIS_OPTION_NITER, METIS_OPTION_NO2HOP, METIS_OPTION_NOOUTPUT, METIS_OPTION_NSEPS, METIS_OPTION_OBJTYPE, METIS_OPTION_PFACTOR, METIS_OPTION_PTYPE, METIS_OPTION_RTYPE, METIS_OPTION_SEED, METIS_OPTION_TPWGTS, METIS_OPTION_UBVEC, METIS_OPTION_UFACTOR, METIS_PTYPE_KWAY, METIS_PTYPE_RB, METIS_RTYPE_FM, METIS_RTYPE_GREEDY, METIS_RTYPE_SEP1SIDED, params_t::minfreq, params_t::minlen, name, shorthelpstr, and params_t::silent.
Referenced by main().
struct gk_option long_options[] [static] |
Initial value:
{ {"ctype", 1, 0, METIS_OPTION_CTYPE}, {"iptype", 1, 0, METIS_OPTION_IPTYPE}, {"rtype", 1, 0, METIS_OPTION_RTYPE}, {"ufactor", 1, 0, METIS_OPTION_UFACTOR}, {"pfactor", 1, 0, METIS_OPTION_PFACTOR}, {"nocompress", 0, 0, METIS_OPTION_COMPRESS}, {"ccorder", 0, 0, METIS_OPTION_CCORDER}, {"no2hop", 0, 0, METIS_OPTION_NO2HOP}, {"nooutput", 0, 0, METIS_OPTION_NOOUTPUT}, {"niter", 1, 0, METIS_OPTION_NITER}, {"nseps", 1, 0, METIS_OPTION_NSEPS}, {"seed", 1, 0, METIS_OPTION_SEED}, {"dbglvl", 1, 0, METIS_OPTION_DBGLVL}, {"help", 0, 0, METIS_OPTION_HELP}, {0, 0, 0, 0} }
Definition at line 16 of file cmdline_ndmetis.c.
gk_StringMap_t ctype_options[] [static] |
Initial value:
{ {"rm", METIS_CTYPE_RM}, {"shem", METIS_CTYPE_SHEM}, {NULL, 0} }
Definition at line 35 of file cmdline_ndmetis.c.
gk_StringMap_t iptype_options[] [static] |
Initial value:
{ {"edge", METIS_IPTYPE_EDGE}, {"node", METIS_IPTYPE_NODE}, {NULL, 0} }
Definition at line 41 of file cmdline_ndmetis.c.
gk_StringMap_t rtype_options[] [static] |
Initial value:
{ {"2sided", METIS_RTYPE_SEP2SIDED}, {"1sided", METIS_RTYPE_SEP1SIDED}, {NULL, 0} }
Definition at line 47 of file cmdline_ndmetis.c.
char helpstr[][100] [static] |
Definition at line 58 of file cmdline_ndmetis.c.
char shorthelpstr[][100] [static] |
Initial value:
{ " ", " Usage: ndmetis [options] <filename>", " use 'ndmetis -help' for a summary of the options.", "" }
Definition at line 139 of file cmdline_ndmetis.c.