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 | gtype_options [] |
static char | helpstr [][100] |
static char | shorthelpstr [][100] |
$Id: cmdline_m2gmetis.c 10046 2011-06-01 14:13:40Z karypis $
Definition in file cmdline_m2gmetis.c.
This is the entry point of the command-line argument parser
Definition at line 82 of file cmdline_m2gmetis.c.
References c, errexit(), gk_getopt_long_only(), gk_GetStringID(), gk_malloc(), gk_optarg, gk_optind, gk_strdup(), helpstr, METIS_GTYPE_DUAL, METIS_OPTION_DBGLVL, METIS_OPTION_GTYPE, METIS_OPTION_HELP, METIS_OPTION_NCOMMON, name, and shorthelpstr.
struct gk_option long_options[] [static] |
Initial value:
{ {"gtype", 1, 0, METIS_OPTION_GTYPE}, {"ncommon", 1, 0, METIS_OPTION_NCOMMON}, {"dbglvl", 1, 0, METIS_OPTION_DBGLVL}, {"help", 0, 0, METIS_OPTION_HELP}, {0, 0, 0, 0} }
Definition at line 17 of file cmdline_m2gmetis.c.
gk_StringMap_t gtype_options[] [static] |
Initial value:
{ {"dual", METIS_GTYPE_DUAL}, {"nodal", METIS_GTYPE_NODAL}, {NULL, 0} }
Definition at line 32 of file cmdline_m2gmetis.c.
char helpstr[][100] [static] |
Initial value:
{ " ", "Usage: m2gmetis [options] <meshfile> <graphfile>", " ", " Required parameters", " meshfile Stores the input mesh.", " graphfile The filename of the output graph.", " ", " Optional parameters", " -gtype=string", " Specifies the graph that will be generated.", " The possible values are:", " dual - Generate dual graph of the mesh [default]", " nodal - Generate the nodal graph of the mesh", " ", " -ncommon=int [applies when gtype=dual]", " Specifies the common number of nodes that two elements must have", " in order to put an edge between them in the dual graph. Default is 1.", " ", " -dbglvl=int ", " Selects the dbglvl.", " ", " -help", " Prints this message.", "" }
Definition at line 42 of file cmdline_m2gmetis.c.
char shorthelpstr[][100] [static] |
Initial value:
{ " ", " Usage: m2gmetis [options] <meshfile> <graphfile>", " use 'm2gmetis -help' for a summary of the options.", "" }
Definition at line 70 of file cmdline_m2gmetis.c.