PPL Logo

libs/ck-libs/metis/programs/cmdline_m2gmetis.c File Reference

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

Go to the source code of this file.

Functions

params_tparse_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]


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.

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.

Here is the call graph for this function:


Variable Documentation

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.

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.


Generated on Mon Sep 21 08:10:21 2020 for Charm++ by  doxygen 1.5.5