Functions | Variables
cmdline_m2gmetis.c File Reference

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

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

Go to the source code of this file.

Functions

params_tparse_cmdline (int argc, char *argv[])
 

Variables

static gk_StringMap_t gtype_options []
 
static char helpstr [][100]
 
static struct gk_option long_options []
 
static char shorthelpstr [][100]
 

Detailed Description

Command-line argument parsing for m2gmetis.

Date
12/24/2008
Author
George
Version
$Id: cmdline_m2gmetis.c 10046 2011-06-01 14:13:40Z karypis $

Definition in file cmdline_m2gmetis.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 82 of file cmdline_m2gmetis.c.

Variable Documentation

◆ gtype_options

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.

◆ helpstr

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.

◆ long_options

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.

◆ shorthelpstr

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.

METIS_OPTION_GTYPE
@ METIS_OPTION_GTYPE
Definition: include/metis.h:296
METIS_OPTION_NCOMMON
@ METIS_OPTION_NCOMMON
Definition: include/metis.h:293
METIS_GTYPE_DUAL
@ METIS_GTYPE_DUAL
Definition: include/metis.h:309
METIS_GTYPE_NODAL
@ METIS_GTYPE_NODAL
Definition: include/metis.h:310
METIS_OPTION_DBGLVL
@ METIS_OPTION_DBGLVL
Definition: include/metis.h:276
NULL
#define NULL
Definition: ccolamd.c:609
METIS_OPTION_HELP
@ METIS_OPTION_HELP
Definition: include/metis.h:291


gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:43:15