Functions | Variables
cmdline_mpmetis.c File Reference

Command-line argument parsing for mpmetis. More...

#include "metisbin.h"
Include dependency graph for cmdline_mpmetis.c:

Go to the source code of this file.

Functions

params_tparse_cmdline (int argc, char *argv[])
 

Variables

static gk_StringMap_t ctype_options []
 
static gk_StringMap_t gtype_options []
 
static char helpstr [][100]
 
static gk_StringMap_t iptype_options []
 
static struct gk_option long_options []
 
static gk_StringMap_t objtype_options []
 
static gk_StringMap_t ptype_options []
 
static char shorthelpstr [][100]
 

Detailed Description

Command-line argument parsing for mpmetis.

Date
12/24/2008
Author
George
Version
$Id: cmdline_mpmetis.c 13905 2013-03-25 13:21:20Z karypis $

Definition in file cmdline_mpmetis.c.

Function Documentation

◆ parse_cmdline()

params_t* parse_cmdline ( int  argc,
char *  argv[] 
)

This is the entry point of the command-line argument parser

Definition at line 194 of file cmdline_mpmetis.c.

Variable Documentation

◆ ctype_options

gk_StringMap_t ctype_options[]
static
Initial value:
= {
{"rm", METIS_CTYPE_RM},
{"shem", METIS_CTYPE_SHEM},
{NULL, 0}
}

Definition at line 68 of file cmdline_mpmetis.c.

◆ gtype_options

gk_StringMap_t gtype_options[]
static
Initial value:
= {
{"dual", METIS_GTYPE_DUAL},
{"nodal", METIS_GTYPE_NODAL},
{NULL, 0}
}

Definition at line 50 of file cmdline_mpmetis.c.

◆ helpstr

char helpstr[][100]
static

Definition at line 84 of file cmdline_mpmetis.c.

◆ iptype_options

gk_StringMap_t iptype_options[]
static
Initial value:
= {
{"grow", METIS_IPTYPE_GROW},
{"random", METIS_IPTYPE_RANDOM},
{NULL, 0}
}

Definition at line 74 of file cmdline_mpmetis.c.

◆ long_options

struct gk_option long_options[]
static
Initial value:
= {
{"gtype", 1, 0, METIS_OPTION_GTYPE},
{"ptype", 1, 0, METIS_OPTION_PTYPE},
{"objtype", 1, 0, METIS_OPTION_OBJTYPE},
{"ctype", 1, 0, METIS_OPTION_CTYPE},
{"iptype", 1, 0, METIS_OPTION_IPTYPE},
{"minconn", 0, 0, METIS_OPTION_MINCONN},
{"contig", 0, 0, METIS_OPTION_CONTIG},
{"nooutput", 0, 0, METIS_OPTION_NOOUTPUT},
{"ufactor", 1, 0, METIS_OPTION_UFACTOR},
{"niter", 1, 0, METIS_OPTION_NITER},
{"ncuts", 1, 0, METIS_OPTION_NCUTS},
{"ncommon", 1, 0, METIS_OPTION_NCOMMON},
{"tpwgts", 1, 0, METIS_OPTION_TPWGTS},
{"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 17 of file cmdline_mpmetis.c.

◆ objtype_options

gk_StringMap_t objtype_options[]
static
Initial value:
= {
{NULL, 0}
}

Definition at line 62 of file cmdline_mpmetis.c.

◆ ptype_options

gk_StringMap_t ptype_options[]
static
Initial value:
= {
{"rb", METIS_PTYPE_RB},
{"kway", METIS_PTYPE_KWAY},
{NULL, 0}
}

Definition at line 56 of file cmdline_mpmetis.c.

◆ shorthelpstr

char shorthelpstr[][100]
static
Initial value:
= {
" ",
" Usage: mpmetis [options] <filename> <nparts>",
" use 'mpmetis -help' for a summary of the options.",
""
}

Definition at line 182 of file cmdline_mpmetis.c.

METIS_OPTION_UFACTOR
@ METIS_OPTION_UFACTOR
Definition: include/metis.h:287
METIS_OPTION_NOOUTPUT
@ METIS_OPTION_NOOUTPUT
Definition: include/metis.h:294
METIS_OPTION_SEED
@ METIS_OPTION_SEED
Definition: include/metis.h:279
METIS_OPTION_OBJTYPE
@ METIS_OPTION_OBJTYPE
Definition: include/metis.h:272
METIS_OPTION_PTYPE
@ METIS_OPTION_PTYPE
Definition: include/metis.h:271
METIS_OPTION_GTYPE
@ METIS_OPTION_GTYPE
Definition: include/metis.h:296
METIS_OPTION_NCOMMON
@ METIS_OPTION_NCOMMON
Definition: include/metis.h:293
METIS_CTYPE_SHEM
@ METIS_CTYPE_SHEM
Definition: include/metis.h:316
METIS_PTYPE_RB
@ METIS_PTYPE_RB
Definition: include/metis.h:303
METIS_OPTION_NITER
@ METIS_OPTION_NITER
Definition: include/metis.h:277
METIS_OPTION_IPTYPE
@ METIS_OPTION_IPTYPE
Definition: include/metis.h:274
METIS_GTYPE_DUAL
@ METIS_GTYPE_DUAL
Definition: include/metis.h:309
METIS_OPTION_CTYPE
@ METIS_OPTION_CTYPE
Definition: include/metis.h:273
METIS_IPTYPE_GROW
@ METIS_IPTYPE_GROW
Definition: include/metis.h:321
METIS_GTYPE_NODAL
@ METIS_GTYPE_NODAL
Definition: include/metis.h:310
METIS_OPTION_CONTIG
@ METIS_OPTION_CONTIG
Definition: include/metis.h:282
METIS_PTYPE_KWAY
@ METIS_PTYPE_KWAY
Definition: include/metis.h:304
METIS_OPTION_DBGLVL
@ METIS_OPTION_DBGLVL
Definition: include/metis.h:276
METIS_CTYPE_RM
@ METIS_CTYPE_RM
Definition: include/metis.h:315
METIS_OPTION_MINCONN
@ METIS_OPTION_MINCONN
Definition: include/metis.h:281
METIS_IPTYPE_RANDOM
@ METIS_IPTYPE_RANDOM
Definition: include/metis.h:322
METIS_OBJTYPE_VOL
@ METIS_OBJTYPE_VOL
Definition: include/metis.h:356
METIS_OPTION_TPWGTS
@ METIS_OPTION_TPWGTS
Definition: include/metis.h:292
METIS_OBJTYPE_CUT
@ METIS_OBJTYPE_CUT
Definition: include/metis.h:355
NULL
#define NULL
Definition: ccolamd.c:609
METIS_OPTION_HELP
@ METIS_OPTION_HELP
Definition: include/metis.h:291
METIS_OPTION_NCUTS
@ METIS_OPTION_NCUTS
Definition: include/metis.h:278


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:09:46