OpenMD 3.2
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
DynamicPropsCmd.hpp
Go to the documentation of this file.
1/** @file DynamicPropsCmd.hpp
2 * @brief The header file for the command line option parser
3 * generated by GNU Gengetopt version 2.23
4 * http://www.gnu.org/software/gengetopt.
5 * DO NOT modify this file, since it can be overwritten
6 * @author GNU Gengetopt */
7
8#ifndef DYNAMICPROPSCMD_H
9#define DYNAMICPROPSCMD_H
10
11/* If we use autoconf. */
12#ifdef HAVE_CONFIG_H
13#include "config.h"
14#endif
15
16#include <stdio.h> /* for FILE */
17
18#ifdef __cplusplus
19extern "C" {
20#endif /* __cplusplus */
21
22#ifndef CMDLINE_PARSER_PACKAGE
23/** @brief the program name (used for printing errors) */
24#define CMDLINE_PARSER_PACKAGE "DynamicProps"
25#endif
26
27#ifndef CMDLINE_PARSER_PACKAGE_NAME
28/** @brief the complete program name (used for help and version) */
29#define CMDLINE_PARSER_PACKAGE_NAME "DynamicProps"
30#endif
31
32#ifndef CMDLINE_PARSER_VERSION
33/** @brief the program version */
34#define CMDLINE_PARSER_VERSION ""
35#endif
36
37enum enum_privilegedAxis { privilegedAxis__NULL = -1, privilegedAxis_arg_x = 0, privilegedAxis_arg_y, privilegedAxis_arg_z };
38enum enum_selectionMode { selectionMode__NULL = -1, selectionMode_arg_survival = 0, selectionMode_arg_restart };
39
40/** @brief Where the command line options are stored */
42{
43 const char *help_help; /**< @brief Print help and exit help description. */
44 const char *version_help; /**< @brief Print version and exit help description. */
45 char * input_arg; /**< @brief input dump file. */
46 char * input_orig; /**< @brief input dump file original value given at command line. */
47 const char *input_help; /**< @brief input dump file help description. */
48 char * output_arg; /**< @brief output file name. */
49 char * output_orig; /**< @brief output file name original value given at command line. */
50 const char *output_help; /**< @brief output file name help description. */
51 char * sele1_arg; /**< @brief select first stuntdouble set. */
52 char * sele1_orig; /**< @brief select first stuntdouble set original value given at command line. */
53 const char *sele1_help; /**< @brief select first stuntdouble set help description. */
54 char * sele2_arg; /**< @brief select second stuntdouble set (if sele2 is not set, use script from sele1). */
55 char * sele2_orig; /**< @brief select second stuntdouble set (if sele2 is not set, use script from sele1) original value given at command line. */
56 const char *sele2_help; /**< @brief select second stuntdouble set (if sele2 is not set, use script from sele1) help description. */
57 char * sele3_arg; /**< @brief select third stuntdouble set. */
58 char * sele3_orig; /**< @brief select third stuntdouble set original value given at command line. */
59 const char *sele3_help; /**< @brief select third stuntdouble set help description. */
60 int seleoffset_arg; /**< @brief global index offset for a second object (used to define a vector between sites in molecule). */
61 char * seleoffset_orig; /**< @brief global index offset for a second object (used to define a vector between sites in molecule) original value given at command line. */
62 const char *seleoffset_help; /**< @brief global index offset for a second object (used to define a vector between sites in molecule) help description. */
63 int order_arg; /**< @brief Lengendre Polynomial Order. */
64 char * order_orig; /**< @brief Lengendre Polynomial Order original value given at command line. */
65 const char *order_help; /**< @brief Lengendre Polynomial Order help description. */
66 int nbins_arg; /**< @brief Number of bins (default='100'). */
67 char * nbins_orig; /**< @brief Number of bins original value given at command line. */
68 const char *nbins_help; /**< @brief Number of bins help description. */
69 int nzbins_arg; /**< @brief Number of Z bins (default='100'). */
70 char * nzbins_orig; /**< @brief Number of Z bins original value given at command line. */
71 const char *nzbins_help; /**< @brief Number of Z bins help description. */
72 double tcorr_arg; /**< @brief Correlation time (length of each window) in fs (default='100000.0'). */
73 char * tcorr_orig; /**< @brief Correlation time (length of each window) in fs original value given at command line. */
74 const char *tcorr_help; /**< @brief Correlation time (length of each window) in fs help description. */
75 int nstart_arg; /**< @brief Number of frames to skip at start of trajectory (default='0'). */
76 char * nstart_orig; /**< @brief Number of frames to skip at start of trajectory original value given at command line. */
77 const char *nstart_help; /**< @brief Number of frames to skip at start of trajectory help description. */
78 double tsep_arg; /**< @brief Separation time between correlation windows (0 = no gap) (default='0.0'). */
79 char * tsep_orig; /**< @brief Separation time between correlation windows (0 = no gap) original value given at command line. */
80 const char *tsep_help; /**< @brief Separation time between correlation windows (0 = no gap) help description. */
81 double t_apod_arg; /**< @brief Apodization time (fs) [filters tcorr with exp(-t/t_apod) in Fourier-transformed spectroscopic functions] (default='0.0'). */
82 char * t_apod_orig; /**< @brief Apodization time (fs) [filters tcorr with exp(-t/t_apod) in Fourier-transformed spectroscopic functions] original value given at command line. */
83 const char *t_apod_help; /**< @brief Apodization time (fs) [filters tcorr with exp(-t/t_apod) in Fourier-transformed spectroscopic functions] help description. */
84 double t_zerofill_arg; /**< @brief Zero-fill time (fs) [Pads time correlation functions with zeros from tcorr -> t_zerofill in Fourier-transformed spectroscopic functions] (default='0.0'). */
85 char * t_zerofill_orig; /**< @brief Zero-fill time (fs) [Pads time correlation functions with zeros from tcorr -> t_zerofill in Fourier-transformed spectroscopic functions] original value given at command line. */
86 const char *t_zerofill_help; /**< @brief Zero-fill time (fs) [Pads time correlation functions with zeros from tcorr -> t_zerofill in Fourier-transformed spectroscopic functions] help description. */
87 double rcut_arg; /**< @brief cutoff radius (angstroms). */
88 char * rcut_orig; /**< @brief cutoff radius (angstroms) original value given at command line. */
89 const char *rcut_help; /**< @brief cutoff radius (angstroms) help description. */
90 double OOcut_arg; /**< @brief Oxygen-Oxygen cutoff radius (angstroms) (default='3.5'). */
91 char * OOcut_orig; /**< @brief Oxygen-Oxygen cutoff radius (angstroms) original value given at command line. */
92 const char *OOcut_help; /**< @brief Oxygen-Oxygen cutoff radius (angstroms) help description. */
93 double thetacut_arg; /**< @brief HOO cutoff angle (degrees) (default='30'). */
94 char * thetacut_orig; /**< @brief HOO cutoff angle (degrees) original value given at command line. */
95 const char *thetacut_help; /**< @brief HOO cutoff angle (degrees) help description. */
96 double OHcut_arg; /**< @brief Oxygen-Hydrogen cutoff radius (angstroms) (default='2.45'). */
97 char * OHcut_orig; /**< @brief Oxygen-Hydrogen cutoff radius (angstroms) original value given at command line. */
98 const char *OHcut_help; /**< @brief Oxygen-Hydrogen cutoff radius (angstroms) help description. */
99 enum enum_privilegedAxis privilegedAxis_arg; /**< @brief which axis is special for spatial analysis (default = z axis) (default='z'). */
100 char * privilegedAxis_orig; /**< @brief which axis is special for spatial analysis (default = z axis) original value given at command line. */
101 const char *privilegedAxis_help; /**< @brief which axis is special for spatial analysis (default = z axis) help description. */
102 double length_arg; /**< @brief maximum length (default='100'). */
103 char * length_orig; /**< @brief maximum length original value given at command line. */
104 const char *length_help; /**< @brief maximum length help description. */
105 double dipoleX_arg; /**< @brief X-component of the dipole with respect to body frame (default='0.0'). */
106 char * dipoleX_orig; /**< @brief X-component of the dipole with respect to body frame original value given at command line. */
107 const char *dipoleX_help; /**< @brief X-component of the dipole with respect to body frame help description. */
108 double dipoleY_arg; /**< @brief Y-component of the dipole with respect to body frame (default='0.0'). */
109 char * dipoleY_orig; /**< @brief Y-component of the dipole with respect to body frame original value given at command line. */
110 const char *dipoleY_help; /**< @brief Y-component of the dipole with respect to body frame help description. */
111 double dipoleZ_arg; /**< @brief Z-component of the dipole with respect to body frame (default='-1.0'). */
112 char * dipoleZ_orig; /**< @brief Z-component of the dipole with respect to body frame original value given at command line. */
113 const char *dipoleZ_help; /**< @brief Z-component of the dipole with respect to body frame help description. */
114 enum enum_selectionMode selectionMode_arg; /**< @brief How to treat objects which leave a dynamic selection and then return later (default = survival) (default='survival'). */
115 char * selectionMode_orig; /**< @brief How to treat objects which leave a dynamic selection and then return later (default = survival) original value given at command line. */
116 const char *selectionMode_help; /**< @brief How to treat objects which leave a dynamic selection and then return later (default = survival) help description. */
117 char * sfgPolarization_arg; /**< @brief SFG polarization combination: ssp, ppp, sps (default='ssp'). */
118 char * sfgPolarization_orig; /**< @brief SFG polarization combination: ssp, ppp, sps original value given at command line. */
119 const char *sfgPolarization_help; /**< @brief SFG polarization combination: ssp, ppp, sps help description. */
120 double fermiCoupling_arg; /**< @brief Fermi coupling [cm-1] for stretch-bend coupling in SFG spectra (default='25'). */
121 char * fermiCoupling_orig; /**< @brief Fermi coupling [cm-1] for stretch-bend coupling in SFG spectra original value given at command line. */
122 const char *fermiCoupling_help; /**< @brief Fermi coupling [cm-1] for stretch-bend coupling in SFG spectra help description. */
123 const char *selecorr_help; /**< @brief selection correlation function help description. */
124 const char *rcorr_help; /**< @brief mean squared displacement help description. */
125 const char *rcorrZ_help; /**< @brief mean squared displacement binned by Z help description. */
126 const char *vcorr_help; /**< @brief velocity correlation function help description. */
127 const char *vcorrZ_help; /**< @brief velocity correlation function along z-axis help description. */
128 const char *vcorrR_help; /**< @brief velocity correlation function projected radially help description. */
129 const char *vaOutProdcorr_help; /**< @brief Velocity - Velocity auto outer product correlation function help description. */
130 const char *waOutProdcorr_help; /**< @brief Angular Velocity - Angular Velocity auto outer product correlation function help description. */
131 const char *vwOutProdcorr_help; /**< @brief Velocity - Angular Velocity outer product correlation function help description. */
132 const char *wvOutProdcorr_help; /**< @brief Angular Velocity - Velocity outer product correlation function help description. */
133 const char *wcorr_help; /**< @brief charge velocity correlation function help description. */
134 const char *dcorr_help; /**< @brief dipole correlation function help description. */
135 const char *lcorr_help; /**< @brief Lengendre correlation function help description. */
136 const char *lcorrZ_help; /**< @brief Lengendre correlation function binned by Z help description. */
137 const char *cohZ_help; /**< @brief Lengendre correlation function for OH bond vectors binned by Z help description. */
138 const char *sdcorr_help; /**< @brief System dipole correlation function help description. */
139 const char *r_rcorr_help; /**< @brief Radial msd help description. */
140 const char *thetacorr_help; /**< @brief Angular msd help description. */
141 const char *drcorr_help; /**< @brief Directional msd for particles with unit vectors help description. */
142 const char *stresscorr_help; /**< @brief Stress tensor correlation function help description. */
143 const char *bondcorr_help; /**< @brief Bond extension correlation function help description. */
144 const char *freqfluccorr_help; /**< @brief Frequency Fluctuation correlation function help description. */
145 const char *jumptime_help; /**< @brief Hydrogen bond jump time correlation function help description. */
146 const char *jumptimeZ_help; /**< @brief Hydrogen bond jump time correlation function binned by Z help description. */
147 const char *jumptimeR_help; /**< @brief Hydrogen bond jump time correlation function binned by R around a third selection help description. */
148 const char *persistence_help; /**< @brief Hydrogen bond persistence correlation function help description. */
149 const char *pjcorr_help; /**< @brief Momentum - Angular Momentum cross correlation function help description. */
150 const char *ftcorr_help; /**< @brief Force - Torque cross correlation function help description. */
151 const char *ckcorr_help; /**< @brief Charge - Kinetic energy cross correlation function help description. */
152 const char *cscorr_help; /**< @brief Charge - Orientation order parameter (Cos\theta) cross correlation function help description. */
153 const char *facorr_help; /**< @brief Force - Force auto correlation function help description. */
154 const char *tfcorr_help; /**< @brief Torque - Force Cross correlation function help description. */
155 const char *tacorr_help; /**< @brief Torque auto correlation function help description. */
156 const char *disp_help; /**< @brief Displacement correlation function help description. */
157 const char *dispZ_help; /**< @brief Displacement correlation function binned by Z help description. */
158 const char *current_help; /**< @brief Current density auto correlation function help description. */
159 const char *onsager_help; /**< @brief Onsager coefficient correlation functions help description. */
160 const char *ddisp_help; /**< @brief Collective Dipole displacement function (Helfand moment of Current Density) help description. */
161 const char *rotAngleDisp_help; /**< @brief Displacement correlation function for rotation angles help description. */
162 const char *meandisp_help; /**< @brief mean displacement help description. */
163 const char *sfg_help; /**< @brief SFG susceptibility spectrum (exciton model) - use molecular selections help description. */
164
165 unsigned int help_given ; /**< @brief Whether help was given. */
166 unsigned int version_given ; /**< @brief Whether version was given. */
167 unsigned int input_given ; /**< @brief Whether input was given. */
168 unsigned int output_given ; /**< @brief Whether output was given. */
169 unsigned int sele1_given ; /**< @brief Whether sele1 was given. */
170 unsigned int sele2_given ; /**< @brief Whether sele2 was given. */
171 unsigned int sele3_given ; /**< @brief Whether sele3 was given. */
172 unsigned int seleoffset_given ; /**< @brief Whether seleoffset was given. */
173 unsigned int order_given ; /**< @brief Whether order was given. */
174 unsigned int nbins_given ; /**< @brief Whether nbins was given. */
175 unsigned int nzbins_given ; /**< @brief Whether nzbins was given. */
176 unsigned int tcorr_given ; /**< @brief Whether tcorr was given. */
177 unsigned int nstart_given ; /**< @brief Whether nstart was given. */
178 unsigned int tsep_given ; /**< @brief Whether tsep was given. */
179 unsigned int t_apod_given ; /**< @brief Whether t_apod was given. */
180 unsigned int t_zerofill_given ; /**< @brief Whether t_zerofill was given. */
181 unsigned int rcut_given ; /**< @brief Whether rcut was given. */
182 unsigned int OOcut_given ; /**< @brief Whether OOcut was given. */
183 unsigned int thetacut_given ; /**< @brief Whether thetacut was given. */
184 unsigned int OHcut_given ; /**< @brief Whether OHcut was given. */
185 unsigned int privilegedAxis_given ; /**< @brief Whether privilegedAxis was given. */
186 unsigned int length_given ; /**< @brief Whether length was given. */
187 unsigned int dipoleX_given ; /**< @brief Whether dipoleX was given. */
188 unsigned int dipoleY_given ; /**< @brief Whether dipoleY was given. */
189 unsigned int dipoleZ_given ; /**< @brief Whether dipoleZ was given. */
190 unsigned int selectionMode_given ; /**< @brief Whether selectionMode was given. */
191 unsigned int sfgPolarization_given ; /**< @brief Whether sfgPolarization was given. */
192 unsigned int fermiCoupling_given ; /**< @brief Whether fermiCoupling was given. */
193 unsigned int selecorr_given ; /**< @brief Whether selecorr was given. */
194 unsigned int rcorr_given ; /**< @brief Whether rcorr was given. */
195 unsigned int rcorrZ_given ; /**< @brief Whether rcorrZ was given. */
196 unsigned int vcorr_given ; /**< @brief Whether vcorr was given. */
197 unsigned int vcorrZ_given ; /**< @brief Whether vcorrZ was given. */
198 unsigned int vcorrR_given ; /**< @brief Whether vcorrR was given. */
199 unsigned int vaOutProdcorr_given ; /**< @brief Whether vaOutProdcorr was given. */
200 unsigned int waOutProdcorr_given ; /**< @brief Whether waOutProdcorr was given. */
201 unsigned int vwOutProdcorr_given ; /**< @brief Whether vwOutProdcorr was given. */
202 unsigned int wvOutProdcorr_given ; /**< @brief Whether wvOutProdcorr was given. */
203 unsigned int wcorr_given ; /**< @brief Whether wcorr was given. */
204 unsigned int dcorr_given ; /**< @brief Whether dcorr was given. */
205 unsigned int lcorr_given ; /**< @brief Whether lcorr was given. */
206 unsigned int lcorrZ_given ; /**< @brief Whether lcorrZ was given. */
207 unsigned int cohZ_given ; /**< @brief Whether cohZ was given. */
208 unsigned int sdcorr_given ; /**< @brief Whether sdcorr was given. */
209 unsigned int r_rcorr_given ; /**< @brief Whether r_rcorr was given. */
210 unsigned int thetacorr_given ; /**< @brief Whether thetacorr was given. */
211 unsigned int drcorr_given ; /**< @brief Whether drcorr was given. */
212 unsigned int stresscorr_given ; /**< @brief Whether stresscorr was given. */
213 unsigned int bondcorr_given ; /**< @brief Whether bondcorr was given. */
214 unsigned int freqfluccorr_given ; /**< @brief Whether freqfluccorr was given. */
215 unsigned int jumptime_given ; /**< @brief Whether jumptime was given. */
216 unsigned int jumptimeZ_given ; /**< @brief Whether jumptimeZ was given. */
217 unsigned int jumptimeR_given ; /**< @brief Whether jumptimeR was given. */
218 unsigned int persistence_given ; /**< @brief Whether persistence was given. */
219 unsigned int pjcorr_given ; /**< @brief Whether pjcorr was given. */
220 unsigned int ftcorr_given ; /**< @brief Whether ftcorr was given. */
221 unsigned int ckcorr_given ; /**< @brief Whether ckcorr was given. */
222 unsigned int cscorr_given ; /**< @brief Whether cscorr was given. */
223 unsigned int facorr_given ; /**< @brief Whether facorr was given. */
224 unsigned int tfcorr_given ; /**< @brief Whether tfcorr was given. */
225 unsigned int tacorr_given ; /**< @brief Whether tacorr was given. */
226 unsigned int disp_given ; /**< @brief Whether disp was given. */
227 unsigned int dispZ_given ; /**< @brief Whether dispZ was given. */
228 unsigned int current_given ; /**< @brief Whether current was given. */
229 unsigned int onsager_given ; /**< @brief Whether onsager was given. */
230 unsigned int ddisp_given ; /**< @brief Whether ddisp was given. */
231 unsigned int rotAngleDisp_given ; /**< @brief Whether rotAngleDisp was given. */
232 unsigned int meandisp_given ; /**< @brief Whether meandisp was given. */
233 unsigned int sfg_given ; /**< @brief Whether sfg was given. */
234
235 char **inputs ; /**< @brief unnamed options (options without names) */
236 unsigned inputs_num ; /**< @brief unnamed options number */
237 int correlation_function_group_counter; /**< @brief Counter for group correlation_function */
238} ;
239
240/** @brief The additional parameters to pass to parser functions */
242{
243 int override; /**< @brief whether to override possibly already present options (default 0) */
244 int initialize; /**< @brief whether to initialize the option structure gengetopt_args_info (default 1) */
245 int check_required; /**< @brief whether to check that all required options were provided (default 1) */
246 int check_ambiguity; /**< @brief whether to check for options already specified in the option structure gengetopt_args_info (default 0) */
247 int print_errors; /**< @brief whether getopt_long should print an error message for a bad option (default 1) */
248} ;
249
250/** @brief the purpose string of the program */
251extern const char *gengetopt_args_info_purpose;
252/** @brief the usage string of the program */
253extern const char *gengetopt_args_info_usage;
254/** @brief the description string of the program */
255extern const char *gengetopt_args_info_description;
256/** @brief all the lines making the help output */
257extern const char *gengetopt_args_info_help[];
258
259/**
260 * The command line parser
261 * @param argc the number of command line options
262 * @param argv the command line options
263 * @param args_info the structure where option information will be stored
264 * @return 0 if everything went fine, NON 0 if an error took place
265 */
266int cmdline_parser (int argc, char **argv,
267 struct gengetopt_args_info *args_info);
268
269/**
270 * The command line parser (version with additional parameters - deprecated)
271 * @param argc the number of command line options
272 * @param argv the command line options
273 * @param args_info the structure where option information will be stored
274 * @param override whether to override possibly already present options
275 * @param initialize whether to initialize the option structure my_args_info
276 * @param check_required whether to check that all required options were provided
277 * @return 0 if everything went fine, NON 0 if an error took place
278 * @deprecated use cmdline_parser_ext() instead
279 */
280int cmdline_parser2 (int argc, char **argv,
281 struct gengetopt_args_info *args_info,
282 int override, int initialize, int check_required);
283
284/**
285 * The command line parser (version with additional parameters)
286 * @param argc the number of command line options
287 * @param argv the command line options
288 * @param args_info the structure where option information will be stored
289 * @param params additional parameters for the parser
290 * @return 0 if everything went fine, NON 0 if an error took place
291 */
292int cmdline_parser_ext (int argc, char **argv,
293 struct gengetopt_args_info *args_info,
294 struct cmdline_parser_params *params);
295
296/**
297 * Save the contents of the option struct into an already open FILE stream.
298 * @param outfile the stream where to dump options
299 * @param args_info the option struct to dump
300 * @return 0 if everything went fine, NON 0 if an error took place
301 */
302int cmdline_parser_dump(FILE *outfile,
303 struct gengetopt_args_info *args_info);
304
305/**
306 * Save the contents of the option struct into a (text) file.
307 * This file can be read by the config file parser (if generated by gengetopt)
308 * @param filename the file where to save
309 * @param args_info the option struct to save
310 * @return 0 if everything went fine, NON 0 if an error took place
311 */
312int cmdline_parser_file_save(const char *filename,
313 struct gengetopt_args_info *args_info);
314
315/**
316 * Print the help
317 */
319/**
320 * Print the version
321 */
323
324/**
325 * Initializes all the fields a cmdline_parser_params structure
326 * to their default values
327 * @param params the structure to initialize
328 */
330
331/**
332 * Allocates dynamically a cmdline_parser_params structure and initializes
333 * all its fields to their default values
334 * @return the created and initialized cmdline_parser_params structure
335 */
337
338/**
339 * Initializes the passed gengetopt_args_info structure's fields
340 * (also set default values for options that have a default)
341 * @param args_info the structure to initialize
342 */
343void cmdline_parser_init (struct gengetopt_args_info *args_info);
344/**
345 * Deallocates the string fields of the gengetopt_args_info structure
346 * (but does not deallocate the structure itself)
347 * @param args_info the structure to deallocate
348 */
349void cmdline_parser_free (struct gengetopt_args_info *args_info);
350
351/**
352 * Checks that all the required options were specified
353 * @param args_info the structure to check
354 * @param prog_name the name of the program that will be used to print
355 * possible errors
356 * @return
357 */
358int cmdline_parser_required (struct gengetopt_args_info *args_info,
359 const char *prog_name);
360
361extern const char *cmdline_parser_privilegedAxis_values[]; /**< @brief Possible values for privilegedAxis. */
362extern const char *cmdline_parser_selectionMode_values[]; /**< @brief Possible values for selectionMode. */
363
364
365#ifdef __cplusplus
366}
367#endif /* __cplusplus */
368#endif /* DYNAMICPROPSCMD_H */
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.
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.
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...
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...
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 jumptimeZ_given
Whether jumptimeZ was given.
const char * jumptimeZ_help
Hydrogen bond jump time correlation function binned by Z help description.
char * sele2_arg
select second stuntdouble set (if sele2 is not set, use script from sele1).
const char * vwOutProdcorr_help
Velocity - Angular Velocity outer product correlation function help description.
unsigned int persistence_given
Whether persistence was given.
char * nbins_orig
Number of bins original value given at command line.
char * dipoleX_orig
X-component of the dipole with respect to body frame original value given at command line.
unsigned int freqfluccorr_given
Whether freqfluccorr was given.
unsigned int r_rcorr_given
Whether r_rcorr was given.
unsigned int output_given
Whether output was given.
const char * ckcorr_help
Charge - Kinetic energy cross correlation function help description.
unsigned int vcorrZ_given
Whether vcorrZ was given.
const char * ftcorr_help
Force - Torque cross correlation function help description.
unsigned int privilegedAxis_given
Whether privilegedAxis was given.
unsigned int drcorr_given
Whether drcorr was given.
unsigned int selecorr_given
Whether selecorr was given.
unsigned int OHcut_given
Whether OHcut was given.
const char * rcut_help
cutoff radius (angstroms) help description.
char * nstart_orig
Number of frames to skip at start of trajectory original value given at command line.
unsigned int selectionMode_given
Whether selectionMode was given.
unsigned int thetacut_given
Whether thetacut was given.
const char * lcorr_help
Lengendre correlation function help description.
const char * dcorr_help
dipole correlation function help description.
unsigned int dcorr_given
Whether dcorr was given.
char * output_orig
output file name original value given at command line.
const char * output_help
output file name help description.
const char * tsep_help
Separation time between correlation windows (0 = no gap) help description.
const char * nbins_help
Number of bins help description.
unsigned int tcorr_given
Whether tcorr was given.
const char * dipoleZ_help
Z-component of the dipole with respect to body frame help description.
unsigned int onsager_given
Whether onsager was given.
unsigned int current_given
Whether current was given.
char * sfgPolarization_arg
SFG polarization combination: ssp, ppp, sps (default='ssp').
unsigned int sele3_given
Whether sele3 was given.
double dipoleZ_arg
Z-component of the dipole with respect to body frame (default='-1.0').
unsigned int lcorrZ_given
Whether lcorrZ was given.
const char * sele1_help
select first stuntdouble set help description.
unsigned int disp_given
Whether disp was given.
const char * seleoffset_help
global index offset for a second object (used to define a vector between sites in molecule) help desc...
unsigned int order_given
Whether order was given.
const char * jumptime_help
Hydrogen bond jump time correlation function help description.
const char * waOutProdcorr_help
Angular Velocity - Angular Velocity auto outer product correlation function help description.
char * dipoleY_orig
Y-component of the dipole with respect to body frame original value given at command line.
const char * tfcorr_help
Torque - Force Cross correlation function help description.
const char * persistence_help
Hydrogen bond persistence correlation function help description.
char * sele3_orig
select third stuntdouble set original value given at command line.
unsigned int tacorr_given
Whether tacorr was given.
const char * OHcut_help
Oxygen-Hydrogen cutoff radius (angstroms) help description.
double t_apod_arg
Apodization time (fs) [filters tcorr with exp(-t/t_apod) in Fourier-transformed spectroscopic functio...
const char * sele2_help
select second stuntdouble set (if sele2 is not set, use script from sele1) help description.
unsigned inputs_num
unamed options number
const char * t_zerofill_help
Zero-fill time (fs) [Pads time correlation functions with zeros from tcorr -> t_zerofill in Fourier-t...
unsigned int tsep_given
Whether tsep was given.
char * privilegedAxis_orig
which axis is special for spatial analysis (default = z axis) original value given at command line.
unsigned int OOcut_given
Whether OOcut was given.
int order_arg
Lengendre Polynomial Order.
const char * selecorr_help
selection correlation function help description.
double dipoleY_arg
Y-component of the dipole with respect to body frame (default='0.0').
unsigned int vcorr_given
Whether vcorr was given.
unsigned int tfcorr_given
Whether tfcorr was given.
const char * rotAngleDisp_help
Displacement correlation function for rotation angles help description.
unsigned int wcorr_given
Whether wcorr was given.
unsigned int pjcorr_given
Whether pjcorr was given.
const char * thetacut_help
HOO cutoff angle (degrees) help description.
unsigned int fermiCoupling_given
Whether fermiCoupling was given.
char * order_orig
Lengendre Polynomial Order original value given at command line.
char * fermiCoupling_orig
Fermi coupling [cm-1] for stretch-bend coupling in SFG spectra original value given at command line.
const char * wcorr_help
charge velocity correlation function help description.
double fermiCoupling_arg
Fermi coupling [cm-1] for stretch-bend coupling in SFG spectra (default='25').
unsigned int lcorr_given
Whether lcorr was given.
char * sfgPolarization_orig
SFG polarization combination: ssp, ppp, sps original value given at command line.
char * OOcut_orig
Oxygen-Oxygen cutoff radius (angstroms) original value given at command line.
const char * stresscorr_help
Stress tensor correlation function help description.
unsigned int meandisp_given
Whether meandisp was given.
double length_arg
maximum length (default='100').
unsigned int facorr_given
Whether facorr was given.
unsigned int bondcorr_given
Whether bondcorr was given.
const char * help_help
Print help and exit help description.
char * sele3_arg
select third stuntdouble set.
const char * cscorr_help
Charge - Orientation order parameter (Cos\theta) cross correlation function help description.
char * seleoffset_orig
global index offset for a second object (used to define a vector between sites in molecule) original ...
const char * rcorrZ_help
mean squared displacement binned by Z help description.
unsigned int dipoleX_given
Whether dipoleX was given.
char * output_arg
output file name.
unsigned int t_apod_given
Whether t_apod was given.
char ** inputs
unamed options (options without names)
const char * thetacorr_help
Angular msd help description.
unsigned int cscorr_given
Whether cscorr was given.
unsigned int jumptimeR_given
Whether jumptimeR was given.
char * t_zerofill_orig
Zero-fill time (fs) [Pads time correlation functions with zeros from tcorr -> t_zerofill in Fourier-t...
unsigned int rcorr_given
Whether rcorr was given.
char * input_arg
input dump file.
double thetacut_arg
HOO cutoff angle (degrees) (default='30').
unsigned int dipoleZ_given
Whether dipoleZ was given.
char * t_apod_orig
Apodization time (fs) [filters tcorr with exp(-t/t_apod) in Fourier-transformed spectroscopic functio...
unsigned int vwOutProdcorr_given
Whether vwOutProdcorr was given.
char * thetacut_orig
HOO cutoff angle (degrees) original value given at command line.
unsigned int sele1_given
Whether sele1 was given.
unsigned int sfg_given
Whether sfg was given.
unsigned int length_given
Whether length was given.
int seleoffset_arg
global index offset for a second object (used to define a vector between sites in molecule).
const char * order_help
Lengendre Polynomial Order help description.
const char * wvOutProdcorr_help
Angular Velocity - Velocity outer product correlation function help description.
const char * vcorrR_help
velocity correlation function projected radially help description.
unsigned int ddisp_given
Whether ddisp was given.
unsigned int nstart_given
Whether nstart was given.
double rcut_arg
cutoff radius (angstroms).
double tsep_arg
Separation time between correlation windows (0 = no gap) (default='0.0').
unsigned int jumptime_given
Whether jumptime was given.
char * nzbins_orig
Number of Z bins original value given at command line.
unsigned int ftcorr_given
Whether ftcorr was given.
unsigned int wvOutProdcorr_given
Whether wvOutProdcorr was given.
const char * sfg_help
SFG susceptibility spectrum (exciton model) - use molecular selections help description.
unsigned int stresscorr_given
Whether stresscorr was given.
unsigned int vaOutProdcorr_given
Whether vaOutProdcorr was given.
const char * rcorr_help
mean squared displacement help description.
const char * privilegedAxis_help
which axis is special for spatial analysis (default = z axis) help description.
unsigned int t_zerofill_given
Whether t_zerofill was given.
char * sele2_orig
select second stuntdouble set (if sele2 is not set, use script from sele1) original value given at co...
const char * current_help
Current density auto correlation function help description.
const char * meandisp_help
mean displacement help description.
const char * vaOutProdcorr_help
Velocity - Velocity auto outer product correlation function help description.
const char * selectionMode_help
How to treat objects which leave a dynamic selection and then return later (default = survival) help ...
unsigned int dispZ_given
Whether dispZ was given.
const char * freqfluccorr_help
Frequency Fluctuation correlation function help description.
const char * t_apod_help
Apodization time (fs) [filters tcorr with exp(-t/t_apod) in Fourier-transformed spectroscopic functio...
const char * bondcorr_help
Bond extension correlation function help description.
const char * facorr_help
Force - Force auto correlation function help description.
const char * r_rcorr_help
Radial msd help description.
char * sele1_orig
select first stuntdouble set original value given at command line.
char * tcorr_orig
Correlation time (length of each window) in fs original value given at command line.
unsigned int rotAngleDisp_given
Whether rotAngleDisp was given.
unsigned int cohZ_given
Whether cohZ was given.
double OHcut_arg
Oxygen-Hydrogen cutoff radius (angstroms) (default='2.45').
char * length_orig
maximum length original value given at command line.
char * sele1_arg
select first stuntdouble set.
unsigned int ckcorr_given
Whether ckcorr was given.
int nstart_arg
Number of frames to skip at start of trajectory (default='0').
const char * pjcorr_help
Momentum - Angular Momentum cross correlation function help description.
const char * fermiCoupling_help
Fermi coupling [cm-1] for stretch-bend coupling in SFG spectra help description.
unsigned int dipoleY_given
Whether dipoleY was given.
const char * nzbins_help
Number of Z bins help description.
const char * drcorr_help
Directional msd for particles with unit vectors help description.
double dipoleX_arg
X-component of the dipole with respect to body frame (default='0.0').
unsigned int rcut_given
Whether rcut was given.
const char * ddisp_help
Collective Dipole displacement function (Helfand moment of Current Density) help description.
const char * tacorr_help
Torque auto correlation function help description.
int correlation_function_group_counter
Counter for group correlation_function.
char * OHcut_orig
Oxygen-Hydrogen cutoff radius (angstroms) original value given at command line.
unsigned int help_given
Whether help was given.
const char * sele3_help
select third stuntdouble set help description.
const char * vcorrZ_help
velocity correlation function along z-axis help description.
enum enum_selectionMode selectionMode_arg
How to treat objects which leave a dynamic selection and then return later (default = survival) (defa...
const char * vcorr_help
velocity correlation function help description.
char * tsep_orig
Separation time between correlation windows (0 = no gap) original value given at command line.
unsigned int input_given
Whether input was given.
unsigned int rcorrZ_given
Whether rcorrZ was given.
const char * tcorr_help
Correlation time (length of each window) in fs help description.
int nbins_arg
Number of bins (default='100').
const char * onsager_help
Onsager coefficient correlation functions help description.
unsigned int sdcorr_given
Whether sdcorr was given.
enum enum_privilegedAxis privilegedAxis_arg
which axis is special for spatial analysis (default = z axis) (default='z').
double t_zerofill_arg
Zero-fill time (fs) [Pads time correlation functions with zeros from tcorr -> t_zerofill in Fourier-t...
unsigned int version_given
Whether version was given.
char * dipoleZ_orig
Z-component of the dipole with respect to body frame original value given at command line.
unsigned int thetacorr_given
Whether thetacorr was given.
const char * jumptimeR_help
Hydrogen bond jump time correlation function binned by R around a third selection help description.
const char * sfgPolarization_help
SFG polarization combination: ssp, ppp, sps help description.
const char * length_help
maximum length help description.
const char * dispZ_help
Displacement correlation function binned by Z help description.
const char * dipoleX_help
X-component of the dipole with respect to body frame help description.
unsigned int sele2_given
Whether sele2 was given.
const char * sdcorr_help
System dipole correlation function 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 * disp_help
Displacement correlation function help description.
unsigned int nbins_given
Whether nbins was given.
unsigned int vcorrR_given
Whether vcorrR was given.
const char * lcorrZ_help
Lengendre correlation function binned by Z help description.
const char * cohZ_help
Lengendre correlation function for OH bond vectors binned by Z help description.
unsigned int sfgPolarization_given
Whether sfgPolarization was given.
const char * OOcut_help
Oxygen-Oxygen cutoff radius (angstroms) help description.
unsigned int nzbins_given
Whether nzbins was given.
double OOcut_arg
Oxygen-Oxygen cutoff radius (angstroms) (default='3.5').
unsigned int waOutProdcorr_given
Whether waOutProdcorr was given.
char * rcut_orig
cutoff radius (angstroms) original value given at command line.
double tcorr_arg
Correlation time (length of each window) in fs (default='100000.0').
char * selectionMode_orig
How to treat objects which leave a dynamic selection and then return later (default = survival) origi...
unsigned int seleoffset_given
Whether seleoffset was given.
const char * input_help
input dump file help description.
int nzbins_arg
Number of Z bins (default='100').
const char * nstart_help
Number of frames to skip at start of trajectory help description.
const char * dipoleY_help
Y-component of the dipole with respect to body frame help description.