8#ifndef ELASTICCONSTANTSCMD_H
9#define ELASTICCONSTANTSCMD_H
22#ifndef CMDLINE_PARSER_PACKAGE
24#define CMDLINE_PARSER_PACKAGE "elasticConstants"
27#ifndef CMDLINE_PARSER_PACKAGE_NAME
29#define CMDLINE_PARSER_PACKAGE_NAME "elasticConstants"
32#ifndef CMDLINE_PARSER_VERSION
34#define CMDLINE_PARSER_VERSION ""
114 int override,
int initialize,
int check_required);
191 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.
const char * cmdline_parser_method_values[]
Possible values for method.
int cmdline_parser(int argc, char **argv, struct gengetopt_args_info *args_info)
The command line parser.
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.
unsigned int npoints_given
Whether npoints was given.
char * npoints_orig
number of points for fitting stress-strain relationship original value given at command line.
unsigned inputs_num
unamed options number
unsigned int box_given
Whether box was given.
const char * help_help
Print help and exit help description.
char ** inputs
unamed options (options without names)
char * input_arg
input dump file.
unsigned int method_given
Whether method was given.
const char * method_help
Calculation Method help description.
int npoints_arg
number of points for fitting stress-strain relationship (default='25').
const char * delta_help
size of relative volume changes for strains help description.
char * delta_orig
size of relative volume changes for strains original value given at command line.
unsigned int delta_given
Whether delta was given.
double delta_arg
size of relative volume changes for strains.
char * method_orig
Calculation Method original value given at command line.
unsigned int help_given
Whether help was given.
int box_flag
Optimize box geometry before performing calculation (default=off).
unsigned int input_given
Whether input was given.
unsigned int version_given
Whether version was given.
const char * npoints_help
number of points for fitting stress-strain relationship help description.
const char * version_help
Print version and exit help description.
char * input_orig
input dump file original value given at command line.
const char * box_help
Optimize box geometry before performing calculation help description.
char * method_arg
Calculation Method.
const char * input_help
input dump file help description.