1 |
tim |
891 |
/* HydroCmd.h */ |
2 |
|
|
|
3 |
|
|
/* File autogenerated by gengetopt version 2.11 */ |
4 |
|
|
|
5 |
|
|
#ifndef HYDROCMD_H |
6 |
|
|
#define HYDROCMD_H |
7 |
|
|
|
8 |
|
|
/* If we use autoconf. */ |
9 |
|
|
#ifdef HAVE_CONFIG_H |
10 |
|
|
#include "config.h" |
11 |
|
|
#endif |
12 |
|
|
|
13 |
|
|
#ifdef __cplusplus |
14 |
|
|
extern "C" { |
15 |
|
|
#endif /* __cplusplus */ |
16 |
|
|
|
17 |
|
|
#ifndef CMDLINE_PARSER_PACKAGE |
18 |
|
|
#define CMDLINE_PARSER_PACKAGE "Hydro" |
19 |
|
|
#endif |
20 |
|
|
|
21 |
|
|
#ifndef CMDLINE_PARSER_VERSION |
22 |
|
|
#define CMDLINE_PARSER_VERSION "1.0" |
23 |
|
|
#endif |
24 |
|
|
|
25 |
|
|
struct gengetopt_args_info |
26 |
|
|
{ |
27 |
|
|
char * input_arg; /* input dump file. */ |
28 |
|
|
char * output_arg; /* output file prefix (default='hydro'). */ |
29 |
|
|
double viscosity_arg; /* viscosity of solvent. */ |
30 |
tim |
892 |
double temperature_arg; /* temperature of the system. */ |
31 |
tim |
891 |
double sigma_arg; /* diameter of beads(use with rough shell model). */ |
32 |
|
|
char * model_arg; /* hydrodynamics model (support RoughShell and BeadModel). */ |
33 |
|
|
|
34 |
|
|
int help_given ; /* Whether help was given. */ |
35 |
|
|
int version_given ; /* Whether version was given. */ |
36 |
|
|
int input_given ; /* Whether input was given. */ |
37 |
|
|
int output_given ; /* Whether output was given. */ |
38 |
|
|
int viscosity_given ; /* Whether viscosity was given. */ |
39 |
tim |
892 |
int temperature_given ; /* Whether temperature was given. */ |
40 |
tim |
891 |
int sigma_given ; /* Whether sigma was given. */ |
41 |
|
|
int model_given ; /* Whether model was given. */ |
42 |
|
|
|
43 |
|
|
} ; |
44 |
|
|
|
45 |
|
|
int cmdline_parser (int argc, char * const *argv, struct gengetopt_args_info *args_info); |
46 |
|
|
|
47 |
|
|
void cmdline_parser_print_help(void); |
48 |
|
|
void cmdline_parser_print_version(void); |
49 |
|
|
|
50 |
|
|
#ifdef __cplusplus |
51 |
|
|
} |
52 |
|
|
#endif /* __cplusplus */ |
53 |
|
|
#endif /* HYDROCMD_H */ |