22#ifndef CMDLINE_PARSER_PACKAGE
24#define CMDLINE_PARSER_PACKAGE "Hydro"
27#ifndef CMDLINE_PARSER_PACKAGE_NAME
29#define CMDLINE_PARSER_PACKAGE_NAME "Hydro"
32#ifndef CMDLINE_PARSER_VERSION
34#define CMDLINE_PARSER_VERSION "2"
37enum enum_model { model__NULL = -1, model_arg_AtomicBead = 0, model_arg_RoughShell, model_arg_BoundaryElement };
134 int override,
int initialize,
int check_required);
211 const char *prog_name);
int cmdline_parser_dump(FILE *outfile, struct gengetopt_args_info *args_info)
Save the contents of the option struct into an already open FILE stream.
int cmdline_parser(int argc, char **argv, struct gengetopt_args_info *args_info)
The command line parser.
const char * cmdline_parser_model_values[]
Possible values for model.
int cmdline_parser_file_save(const char *filename, struct gengetopt_args_info *args_info)
Save the contents of the option struct into a (text) file.
const char * gengetopt_args_info_purpose
the purpose string of the program
const char * gengetopt_args_info_help[]
all the lines making the help output
int cmdline_parser2(int argc, char **argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required)
The command line parser (version with additional parameters - deprecated)
int cmdline_parser_required(struct gengetopt_args_info *args_info, const char *prog_name)
Checks that all the required options were specified.
void cmdline_parser_print_version(void)
Print the version.
struct cmdline_parser_params * cmdline_parser_params_create(void)
Allocates dynamically a cmdline_parser_params structure and initializes all its fields to their defau...
const char * gengetopt_args_info_usage
the usage string of the program
int cmdline_parser_ext(int argc, char **argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params)
The command line parser (version with additional parameters)
void cmdline_parser_init(struct gengetopt_args_info *args_info)
Initializes the passed gengetopt_args_info structure's fields (also set default values for options th...
const char * gengetopt_args_info_description
the description string of the program
void cmdline_parser_print_help(void)
Print the help.
void cmdline_parser_free(struct gengetopt_args_info *args_info)
Deallocates the string fields of the gengetopt_args_info structure (but does not deallocate the struc...
void cmdline_parser_params_init(struct cmdline_parser_params *params)
Initializes all the fields a cmdline_parser_params structure to their default values.
The additional parameters to pass to parser functions.
int print_errors
whether getopt_long should print an error message for a bad option (default 1)
int check_required
whether to check that all required options were provided (default 1)
int check_ambiguity
whether to check for options already specified in the option structure gengetopt_args_info (default 0...
int initialize
whether to initialize the option structure gengetopt_args_info (default 1)
Where the command line options are stored.
double viscosity_arg
viscosity (in poise) (default='0.01').
unsigned int output_given
Whether output was given.
char * beadSize_orig
bead size (diameter) for RoughShell model (in angstroms) original value given at command line.
char * output_orig
output file name original value given at command line.
const char * output_help
output file name help description.
char * temperature_orig
temperature (in Kelvin original value given at command line.
enum enum_model model_arg
hydrodynamics model.
unsigned int msms_given
Whether msms was given.
unsigned int xyz_given
Whether xyz was given.
unsigned inputs_num
unamed options number
double beadSize_arg
bead size (diameter) for RoughShell model (in angstroms) (default='0.2').
const char * xyz_help
xyz file for AtomicBead model help description.
const char * stl_help
stl file for BoundaryElement model help description.
const char * help_help
Print help and exit help description.
int input_file_group_counter
Counter for group input_file.
const char * model_help
hydrodynamics model help description.
char * output_arg
output file name.
char ** inputs
unamed options (options without names)
const char * temperature_help
temperature (in Kelvin help description.
char * input_arg
input dump file.
unsigned int beadSize_given
Whether beadSize was given.
char * msms_orig
filename root for MSMS .vert and .face files original value given at command line.
char * xyz_orig
xyz file for AtomicBead model original value given at command line.
const char * elements_help
output the hydrodynamic elements (beads or triangles) only, hydrodynamics calculation will not be per...
double temperature_arg
temperature (in Kelvin (default='300').
const char * beadSize_help
bead size (diameter) for RoughShell model (in angstroms) help description.
unsigned int elements_given
Whether elements was given.
const char * viscosity_help
viscosity (in poise) help description.
char * stl_orig
stl file for BoundaryElement model original value given at command line.
unsigned int temperature_given
Whether temperature was given.
unsigned int stl_given
Whether stl was given.
unsigned int help_given
Whether help was given.
char * xyz_arg
xyz file for AtomicBead model.
int elements_flag
output the hydrodynamic elements (beads or triangles) only, hydrodynamics calculation will not be per...
unsigned int input_given
Whether input was given.
char * model_orig
hydrodynamics model original value given at command line.
unsigned int version_given
Whether version was given.
char * viscosity_orig
viscosity (in poise) original value given at command line.
unsigned int viscosity_given
Whether viscosity was given.
const char * version_help
Print version and exit help description.
char * input_orig
input dump file original value given at command line.
char * stl_arg
stl file for BoundaryElement model.
const char * input_help
input dump file help description.
unsigned int model_given
Whether model was given.
char * msms_arg
filename root for MSMS .vert and .face files.
const char * msms_help
filename root for MSMS .vert and .face files help description.