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

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

gk_StringMap_t gtype_options[]
static
Initial value:
= {
{"dual", METIS_GTYPE_DUAL},
{"nodal", METIS_GTYPE_NODAL},
{NULL, 0}
}
#define NULL
Definition: ccolamd.c:609

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.

struct gk_option long_options[]
static
Initial value:

Definition at line 17 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.



gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:28