21#define FIX_UNUSED(X) (void) (X)
27const char *gengetopt_args_info_purpose =
"Computes properties which are averaged over some or all of the\nconfigurations that are contained within a dump file. The most common\nexample of a static property that can be computed is the pair\ndistribution function between atoms of type A and other atoms of type\nB, gAB(r).\n\nExample:\n StaticProps -i tp4.dump --gofr --sele1=\"select O*\" --sele2=\"select O*\"\n\nThis command computes the oxygen-oxygen pair distribution function,\ngOO(r), from a file named tp4.dump";
29const char *gengetopt_args_info_usage =
"Usage: StaticProps [OPTION]... [FILE]...";
31const char *gengetopt_args_info_versiontext =
"";
33const char *gengetopt_args_info_description =
"";
35const char *gengetopt_args_info_help[] = {
36 " -h, --help Print help and exit",
37 " -V, --version Print version and exit",
38 " -i, --input=filename input dump file (mandatory)",
39 " -o, --output=filename output file name",
40 " -n, --step=INT process every n frame (default=`1')",
41 " -b, --nbins=INT number of bins (general purpose)\n (default=`100')",
42 " -x, --nbins_x=INT number of bins in x axis (default=`100')",
43 " -y, --nbins_y=INT number of bins in y axis (default=`100')",
44 " --nbins_z=INT number of bins in z axis (default=`100')",
45 " -r, --nrbins=INT number of radial bins (usually duplicates\n functionality of nbins) (default=`100')",
46 " --binWidth=DOUBLE width of radial bins in angstroms\n (default=`1.0')",
47 " -a, --nanglebins=INT number of bins for cos(angle) (default=`50')",
48 " -c, --rcut=DOUBLE cutoff radius (rcut)",
49 " --OOcut=DOUBLE Oxygen-Oxygen cutoff radius (angstroms)\n (default=`3.5')",
50 " --thetacut=DOUBLE HOO cutoff angle (degrees) (default=`30')",
51 " --OHcut=DOUBLE Oxygen-Hydrogen cutoff radius (angstroms)\n (default=`2.45')",
52 " --dz=DOUBLE slab width (dz)",
53 " --length=DOUBLE maximum length (Defaults to 1/2 smallest length\n of first frame)",
54 " --zlength=DOUBLE maximum length (Defaults to 1/2 smallest length\n of first frame)",
55 " -z, --zoffset=DOUBLE Where to set the zero for the slab_density\n calculation (default=`0')",
56 " --sele1=selection script select the first stuntdouble set",
57 " --sele2=selection script select the second stuntdouble set",
58 " --sele3=selection script select the third stuntdouble set",
59 " --refsele=selection script\n select reference (use and only use with --gxyz)",
60 " --comsele=selection script\n select stunt doubles for center-of-mass\n reference point",
61 " --seleoffset=INT global index offset for a second object (used\n to define a vector between sites in molecule)",
62 " --seleoffset2=INT global index offset for a third object (used to\n define a vector between sites in molecule)",
63 " --seleoffset3=INT global index offset for a fourth object (used\n to define a vector between sites in molecule)",
64 " --molname=STRING molecule name",
65 " --begin=INT begin internal index",
66 " --end=INT end internal index",
67 " --radius=DOUBLE nanoparticle radius",
68 " -v, --voxelSize=DOUBLE voxel size (angstroms)",
69 " --gaussWidth=DOUBLE Gaussian width (angstroms)",
70 " --privilegedAxis=ENUM which axis is special for spatial analysis\n (default = z axis) (possible values=\"x\",\n \"y\", \"z\" default=`z')",
71 " --privilegedAxis2=ENUM which axis is special for spatial analysis\n (default = x axis) (possible values=\"x\",\n \"y\", \"z\" default=`x')",
72 " --momentum=ENUM Type of momentum whose distribtution is\n required (default = Liner Momentum)\n (possible values=\"P\", \"J\" default=`P')",
73 " --component=ENUM component of momentum for the momemtum\n distribution (default = z axis) (possible\n values=\"x\", \"y\", \"z\" default=`z')",
74 " --dipoleX=DOUBLE X-component of the dipole with respect to body\n frame",
75 " --dipoleY=DOUBLE Y-component of the dipole with respect to body\n frame",
76 " --dipoleZ=DOUBLE Z-component of the dipole with respect to body\n frame",
77 " --v_radius=DOUBLE VanderWaals radiius for fictious atoms used in\n model eg. M site in TIP4P-FQ water model",
78 " --gen_xyz generates xyz file (default=off)",
79 " --atom_name=selection script\n name of atom for with average charge to be\n generated",
80 " --sfgPolarization=STRING SFG polarization combination: ssp, ppp, sps\n (default=`ssp')",
81 " --lorentzianWidth=DOUBLE Lorentzian half-width [cm-1] applied to\n eigenstates in SFG spectra (default=`5')",
82 " --fermiCoupling=DOUBLE Fermi coupling [cm-1] for stretch-bend coupling\n in SFG spectra (default=`25')",
83 "\n Group: staticProps\n an option of this group is required",
84 " --bo bond order parameter (--rcut must be specified)",
85 " --ior icosahedral bond order parameter as a function\n of radius (--rcut must be specified)",
86 " --for FCC bond order parameter as a function of\n radius (--rcut must be specified)",
87 " --bad N(theta) bond angle density within (--rcut must\n be specified)",
88 " --count count of objects matching selection criteria\n (and associated statistics)",
89 " --mcount count of molecules matching selection criteria\n (and associated statistics)",
92 " --r_theta g(r, cos(theta))",
93 " --r_omega g(r, cos(omega))",
95 " --theta_omega g(cos(theta), cos(omega))",
96 " --r_theta_omega g(r, cos(theta), cos(omega))",
98 " --twodgofr 2D g(r) (Slab width --dz must be specified)",
99 " --kirkwood_buff Kirkwood-Buff integrals (--sele1 and --sele2\n must both be specified)",
100 " -p, --p2 p2 order parameter (--sele1 must be specified,\n --sele2 is optional)",
101 " --p2r p2 order parameter using r as director axis",
102 " --p2z p2 order parameter using z (or privilegedAxis)\n as director axis",
103 " --rp2 rp2 order parameter (--sele1 and --sele2 must\n be specified)",
104 " -s, --scd scd order parameter (either --sele1, --sele2,\n --sele3 are specified or --molname, --begin,\n --end are specified)",
105 " -d, --density density plot",
106 " --slab_density slab density, rho(z)",
107 " --pipe_density pipe density, rho(axis1, axis2)",
108 " --p_angle p(cos(theta)) (--sele1 must be specified,\n --sele2 is optional)",
111 " --angle_r angle of R",
112 " --hullvol hull volume of nanoparticle",
113 " --rodlength length of nanorod",
114 " -Q, --tet_param tetrahedrality order parameter (Qk)",
115 " --tet_param_z spatially-resolved tetrahedrality order\n parameter Qk(z)",
116 " --tet_param_r spatially-resolved tetrahedrality order\n parameter Qk(r) around a third selection",
117 " --tet_param_rangle spatially-resolved tetrahedrality order\n parameter Qk(r,cos(theta)) around a third\n selection",
118 " --tet_param_dens computes density of the tetrahedrality order\n parameter Qk",
119 " --tet_param_xyz volume-resolved tetrahedrality order parameter\n Qk(x,y,z). (voxelSize, rcut, and gaussWidth\n must be specified)",
120 " --trans_param_z spatially-resolved translational order\n parameter t(z)",
121 " --rnemdz slab-resolved RNEMD statistics (temperature,\n density, velocity)",
122 " --rnemdr shell-resolved RNEMD statistics (temperature,\n density, angular velocity)",
123 " --rnemdrt shell and angle-resolved RNEMD statistics\n (temperature, density, angular velocity)",
124 " --nitrile electrostatic potential to frequency map based\n on the Cho nitrile fits",
125 " --OHfreqmap electrostatic field to OH frequency\n distribution based on the Corcelli frequency\n map",
126 " -m, --multipole average multipole moments contained within\n cutoff spheres as a function of radius",
127 " --surfDiffusion X, Y, and R (surface diffusion if Z exposed and\n bulk immobile) diffusion",
128 " --cn Coordination Number Distribution",
129 " --scn Secondary Coordination Number Distribution",
130 " --gcn Generalized Coordination Number Distribution",
131 " --hbond Hydrogen Bonding statistics using geometric\n criteria (rcut and thetacut must be\n specified)",
132 " --hbondz Hydrogen Bonding density binned by z (rcut and\n thetacut must be specified)",
133 " --hbondzvol Hydrogen Bonding density binned by z and\n normalized by bin volume (rcut and thetacut\n must be specified)",
134 " --hbondr Hydrogen Bonding density binned by r (rcut and\n thetacut must be specified)",
135 " --hbondrvol Hydrogen Bonding density binned by r and\n normalized by bin volume (rcut and thetacut\n must be specified)",
136 " --potDiff potential energy difference when charge on\n selection is set to zero",
137 " --tet_hb hydrogen bond statistics binned by\n tetrahedrality of donor and acceptor\n molecules",
138 " -k, --kirkwood distance-dependent Kirkwood factor",
139 " --kirkwoodQ distance-dependent Kirkwood factor for\n quadrupoles",
140 " --densityfield computes an average density field",
141 " --velocityfield computes an average velocity field",
142 " --velocityZ computes an average two-dimensional velocity\n map",
143 " -D, --eam_density computes an average eam density profile of the\n selected atom",
144 " -q, --net_charge computes an average charge profile of the\n selected atom",
145 " -J, --current_density computes the current density for the selected\n atom",
146 " --chargez computes the charge distribution along selected\n axis and selected atom",
147 " --charger computes the charge density as a function of\n the radius and selected atom",
148 " --massdensityz computes the mass density of the selection\n along selected axis",
149 " --massdensityr computes the mass density of the selection as a\n function of the radius from the center of\n mass",
150 " --numberz computes the number density along selected axis\n and selected molcule",
151 " --numberr computes the number density as a function of\n the radius and selected molecule",
152 " --charge_density_z computes the continuous charge distribution\n along selected axis and selected atom",
153 " --countz computes the number of selected atoms along\n selected axis",
154 " -M, --momentum_distribution computes the momentum distribution for the\n selected atom",
155 " -S, --dipole_orientation spatially-resolved dipole order parameter S(z),\n S = (3 Cos^2\\theta - 1)/2",
156 " --order_prob probability of order parameter for given\n selection",
157 " --sfg SFG susceptibility spectrum (time averaging\n approximation) - uses molecular selections",
167} cmdline_parser_arg_type;
179cmdline_parser_required2 (
struct gengetopt_args_info *args_info,
const char *prog_name,
const char *additional_error);
181const char *cmdline_parser_privilegedAxis_values[] = {
"x",
"y",
"z", 0};
182const char *cmdline_parser_privilegedAxis2_values[] = {
"x",
"y",
"z", 0};
183const char *cmdline_parser_momentum_values[] = {
"P",
"J", 0};
184const char *cmdline_parser_component_values[] = {
"x",
"y",
"z", 0};
187gengetopt_strdup (
const char *s);
319 FIX_UNUSED (args_info);
401 args_info->
help_help = gengetopt_args_info_help[0] ;
403 args_info->
input_help = gengetopt_args_info_help[2] ;
404 args_info->
output_help = gengetopt_args_info_help[3] ;
405 args_info->
step_help = gengetopt_args_info_help[4] ;
406 args_info->
nbins_help = gengetopt_args_info_help[5] ;
410 args_info->
nrbins_help = gengetopt_args_info_help[9] ;
413 args_info->
rcut_help = gengetopt_args_info_help[12] ;
414 args_info->
OOcut_help = gengetopt_args_info_help[13] ;
416 args_info->
OHcut_help = gengetopt_args_info_help[15] ;
417 args_info->
dz_help = gengetopt_args_info_help[16] ;
418 args_info->
length_help = gengetopt_args_info_help[17] ;
419 args_info->
zlength_help = gengetopt_args_info_help[18] ;
420 args_info->
zoffset_help = gengetopt_args_info_help[19] ;
421 args_info->
sele1_help = gengetopt_args_info_help[20] ;
422 args_info->
sele2_help = gengetopt_args_info_help[21] ;
423 args_info->
sele3_help = gengetopt_args_info_help[22] ;
424 args_info->
refsele_help = gengetopt_args_info_help[23] ;
425 args_info->
comsele_help = gengetopt_args_info_help[24] ;
429 args_info->
molname_help = gengetopt_args_info_help[28] ;
430 args_info->
begin_help = gengetopt_args_info_help[29] ;
431 args_info->
end_help = gengetopt_args_info_help[30] ;
432 args_info->
radius_help = gengetopt_args_info_help[31] ;
439 args_info->
dipoleX_help = gengetopt_args_info_help[38] ;
440 args_info->
dipoleY_help = gengetopt_args_info_help[39] ;
441 args_info->
dipoleZ_help = gengetopt_args_info_help[40] ;
443 args_info->
gen_xyz_help = gengetopt_args_info_help[42] ;
448 args_info->
bo_help = gengetopt_args_info_help[48] ;
449 args_info->
ior_help = gengetopt_args_info_help[49] ;
450 args_info->
for_help = gengetopt_args_info_help[50] ;
451 args_info->
bad_help = gengetopt_args_info_help[51] ;
452 args_info->
count_help = gengetopt_args_info_help[52] ;
453 args_info->
mcount_help = gengetopt_args_info_help[53] ;
454 args_info->
gofr_help = gengetopt_args_info_help[54] ;
455 args_info->
gofz_help = gengetopt_args_info_help[55] ;
456 args_info->
r_theta_help = gengetopt_args_info_help[56] ;
457 args_info->
r_omega_help = gengetopt_args_info_help[57] ;
458 args_info->
r_z_help = gengetopt_args_info_help[58] ;
461 args_info->
gxyz_help = gengetopt_args_info_help[61] ;
464 args_info->
p2_help = gengetopt_args_info_help[64] ;
465 args_info->
p2r_help = gengetopt_args_info_help[65] ;
466 args_info->
p2z_help = gengetopt_args_info_help[66] ;
467 args_info->
rp2_help = gengetopt_args_info_help[67] ;
468 args_info->
scd_help = gengetopt_args_info_help[68] ;
469 args_info->
density_help = gengetopt_args_info_help[69] ;
472 args_info->
p_angle_help = gengetopt_args_info_help[72] ;
473 args_info->
hxy_help = gengetopt_args_info_help[73] ;
474 args_info->
rho_r_help = gengetopt_args_info_help[74] ;
475 args_info->
angle_r_help = gengetopt_args_info_help[75] ;
476 args_info->
hullvol_help = gengetopt_args_info_help[76] ;
485 args_info->
rnemdz_help = gengetopt_args_info_help[85] ;
486 args_info->
rnemdr_help = gengetopt_args_info_help[86] ;
487 args_info->
rnemdrt_help = gengetopt_args_info_help[87] ;
488 args_info->
nitrile_help = gengetopt_args_info_help[88] ;
492 args_info->
cn_help = gengetopt_args_info_help[92] ;
493 args_info->
scn_help = gengetopt_args_info_help[93] ;
494 args_info->
gcn_help = gengetopt_args_info_help[94] ;
495 args_info->
hbond_help = gengetopt_args_info_help[95] ;
496 args_info->
hbondz_help = gengetopt_args_info_help[96] ;
498 args_info->
hbondr_help = gengetopt_args_info_help[98] ;
500 args_info->
potDiff_help = gengetopt_args_info_help[100] ;
501 args_info->
tet_hb_help = gengetopt_args_info_help[101] ;
510 args_info->
chargez_help = gengetopt_args_info_help[110] ;
511 args_info->
charger_help = gengetopt_args_info_help[111] ;
514 args_info->
numberz_help = gengetopt_args_info_help[114] ;
515 args_info->
numberr_help = gengetopt_args_info_help[115] ;
517 args_info->
countz_help = gengetopt_args_info_help[117] ;
521 args_info->
sfg_help = gengetopt_args_info_help[121] ;
532 if (strlen(gengetopt_args_info_versiontext) > 0)
533 printf(
"\n%s\n", gengetopt_args_info_versiontext);
536static void print_help_common(
void)
538 size_t len_purpose = strlen(gengetopt_args_info_purpose);
539 size_t len_usage = strlen(gengetopt_args_info_usage);
542 printf(
"%s\n", gengetopt_args_info_usage);
544 if (len_purpose > 0) {
545 printf(
"%s\n", gengetopt_args_info_purpose);
548 if (len_usage || len_purpose) {
552 if (strlen(gengetopt_args_info_description) > 0) {
553 printf(
"%s\n\n", gengetopt_args_info_description);
562 while (gengetopt_args_info_help[i])
563 printf(
"%s\n", gengetopt_args_info_help[i++]);
569 clear_given (args_info);
570 clear_args (args_info);
571 init_args_info (args_info);
600free_string_field (
char **s)
614 free_string_field (&(args_info->
input_arg));
618 free_string_field (&(args_info->
step_orig));
626 free_string_field (&(args_info->
rcut_orig));
630 free_string_field (&(args_info->
dz_orig));
634 free_string_field (&(args_info->
sele1_arg));
636 free_string_field (&(args_info->
sele2_arg));
638 free_string_field (&(args_info->
sele3_arg));
650 free_string_field (&(args_info->
end_orig));
671 free (args_info->
inputs [i]);
676 clear_given (args_info);
687check_possible_values(
const char *val,
const char *values[])
697 for (i = 0, len = strlen(val); values[i]; ++i)
699 if (strncmp(val, values[i], len) == 0)
703 if (strlen(values[i]) == len)
711 return (found ? -2 : -1);
716write_into_file(FILE *outfile,
const char *opt,
const char *arg,
const char *values[])
721 found = check_possible_values(arg, values);
724 fprintf(outfile,
"%s=\"%s\" # %s\n", opt, arg, values[found]);
726 fprintf(outfile,
"%s=\"%s\"\n", opt, arg);
728 fprintf(outfile,
"%s\n", opt);
745 write_into_file(outfile,
"help", 0, 0 );
747 write_into_file(outfile,
"version", 0, 0 );
749 write_into_file(outfile,
"input", args_info->
input_orig, 0);
751 write_into_file(outfile,
"output", args_info->
output_orig, 0);
753 write_into_file(outfile,
"step", args_info->
step_orig, 0);
755 write_into_file(outfile,
"nbins", args_info->
nbins_orig, 0);
757 write_into_file(outfile,
"nbins_x", args_info->
nbins_x_orig, 0);
759 write_into_file(outfile,
"nbins_y", args_info->
nbins_y_orig, 0);
761 write_into_file(outfile,
"nbins_z", args_info->
nbins_z_orig, 0);
763 write_into_file(outfile,
"nrbins", args_info->
nrbins_orig, 0);
765 write_into_file(outfile,
"binWidth", args_info->
binWidth_orig, 0);
769 write_into_file(outfile,
"rcut", args_info->
rcut_orig, 0);
771 write_into_file(outfile,
"OOcut", args_info->
OOcut_orig, 0);
773 write_into_file(outfile,
"thetacut", args_info->
thetacut_orig, 0);
775 write_into_file(outfile,
"OHcut", args_info->
OHcut_orig, 0);
777 write_into_file(outfile,
"dz", args_info->
dz_orig, 0);
779 write_into_file(outfile,
"length", args_info->
length_orig, 0);
781 write_into_file(outfile,
"zlength", args_info->
zlength_orig, 0);
783 write_into_file(outfile,
"zoffset", args_info->
zoffset_orig, 0);
785 write_into_file(outfile,
"sele1", args_info->
sele1_orig, 0);
787 write_into_file(outfile,
"sele2", args_info->
sele2_orig, 0);
789 write_into_file(outfile,
"sele3", args_info->
sele3_orig, 0);
791 write_into_file(outfile,
"refsele", args_info->
refsele_orig, 0);
793 write_into_file(outfile,
"comsele", args_info->
comsele_orig, 0);
801 write_into_file(outfile,
"molname", args_info->
molname_orig, 0);
803 write_into_file(outfile,
"begin", args_info->
begin_orig, 0);
805 write_into_file(outfile,
"end", args_info->
end_orig, 0);
807 write_into_file(outfile,
"radius", args_info->
radius_orig, 0);
809 write_into_file(outfile,
"voxelSize", args_info->
voxelSize_orig, 0);
813 write_into_file(outfile,
"privilegedAxis", args_info->
privilegedAxis_orig, cmdline_parser_privilegedAxis_values);
815 write_into_file(outfile,
"privilegedAxis2", args_info->
privilegedAxis2_orig, cmdline_parser_privilegedAxis2_values);
817 write_into_file(outfile,
"momentum", args_info->
momentum_orig, cmdline_parser_momentum_values);
819 write_into_file(outfile,
"component", args_info->
component_orig, cmdline_parser_component_values);
821 write_into_file(outfile,
"dipoleX", args_info->
dipoleX_orig, 0);
823 write_into_file(outfile,
"dipoleY", args_info->
dipoleY_orig, 0);
825 write_into_file(outfile,
"dipoleZ", args_info->
dipoleZ_orig, 0);
827 write_into_file(outfile,
"v_radius", args_info->
v_radius_orig, 0);
829 write_into_file(outfile,
"gen_xyz", 0, 0 );
831 write_into_file(outfile,
"atom_name", args_info->
atom_name_orig, 0);
839 write_into_file(outfile,
"bo", 0, 0 );
841 write_into_file(outfile,
"ior", 0, 0 );
843 write_into_file(outfile,
"for", 0, 0 );
845 write_into_file(outfile,
"bad", 0, 0 );
847 write_into_file(outfile,
"count", 0, 0 );
849 write_into_file(outfile,
"mcount", 0, 0 );
851 write_into_file(outfile,
"gofr", 0, 0 );
853 write_into_file(outfile,
"gofz", 0, 0 );
855 write_into_file(outfile,
"r_theta", 0, 0 );
857 write_into_file(outfile,
"r_omega", 0, 0 );
859 write_into_file(outfile,
"r_z", 0, 0 );
861 write_into_file(outfile,
"theta_omega", 0, 0 );
863 write_into_file(outfile,
"r_theta_omega", 0, 0 );
865 write_into_file(outfile,
"gxyz", 0, 0 );
867 write_into_file(outfile,
"twodgofr", 0, 0 );
869 write_into_file(outfile,
"kirkwood_buff", 0, 0 );
871 write_into_file(outfile,
"p2", 0, 0 );
873 write_into_file(outfile,
"p2r", 0, 0 );
875 write_into_file(outfile,
"p2z", 0, 0 );
877 write_into_file(outfile,
"rp2", 0, 0 );
879 write_into_file(outfile,
"scd", 0, 0 );
881 write_into_file(outfile,
"density", 0, 0 );
883 write_into_file(outfile,
"slab_density", 0, 0 );
885 write_into_file(outfile,
"pipe_density", 0, 0 );
887 write_into_file(outfile,
"p_angle", 0, 0 );
889 write_into_file(outfile,
"hxy", 0, 0 );
891 write_into_file(outfile,
"rho_r", 0, 0 );
893 write_into_file(outfile,
"angle_r", 0, 0 );
895 write_into_file(outfile,
"hullvol", 0, 0 );
897 write_into_file(outfile,
"rodlength", 0, 0 );
899 write_into_file(outfile,
"tet_param", 0, 0 );
901 write_into_file(outfile,
"tet_param_z", 0, 0 );
903 write_into_file(outfile,
"tet_param_r", 0, 0 );
905 write_into_file(outfile,
"tet_param_rangle", 0, 0 );
907 write_into_file(outfile,
"tet_param_dens", 0, 0 );
909 write_into_file(outfile,
"tet_param_xyz", 0, 0 );
911 write_into_file(outfile,
"trans_param_z", 0, 0 );
913 write_into_file(outfile,
"rnemdz", 0, 0 );
915 write_into_file(outfile,
"rnemdr", 0, 0 );
917 write_into_file(outfile,
"rnemdrt", 0, 0 );
919 write_into_file(outfile,
"nitrile", 0, 0 );
921 write_into_file(outfile,
"OHfreqmap", 0, 0 );
923 write_into_file(outfile,
"multipole", 0, 0 );
925 write_into_file(outfile,
"surfDiffusion", 0, 0 );
927 write_into_file(outfile,
"cn", 0, 0 );
929 write_into_file(outfile,
"scn", 0, 0 );
931 write_into_file(outfile,
"gcn", 0, 0 );
933 write_into_file(outfile,
"hbond", 0, 0 );
935 write_into_file(outfile,
"hbondz", 0, 0 );
937 write_into_file(outfile,
"hbondzvol", 0, 0 );
939 write_into_file(outfile,
"hbondr", 0, 0 );
941 write_into_file(outfile,
"hbondrvol", 0, 0 );
943 write_into_file(outfile,
"potDiff", 0, 0 );
945 write_into_file(outfile,
"tet_hb", 0, 0 );
947 write_into_file(outfile,
"kirkwood", 0, 0 );
949 write_into_file(outfile,
"kirkwoodQ", 0, 0 );
951 write_into_file(outfile,
"densityfield", 0, 0 );
953 write_into_file(outfile,
"velocityfield", 0, 0 );
955 write_into_file(outfile,
"velocityZ", 0, 0 );
957 write_into_file(outfile,
"eam_density", 0, 0 );
959 write_into_file(outfile,
"net_charge", 0, 0 );
961 write_into_file(outfile,
"current_density", 0, 0 );
963 write_into_file(outfile,
"chargez", 0, 0 );
965 write_into_file(outfile,
"charger", 0, 0 );
967 write_into_file(outfile,
"massdensityz", 0, 0 );
969 write_into_file(outfile,
"massdensityr", 0, 0 );
971 write_into_file(outfile,
"numberz", 0, 0 );
973 write_into_file(outfile,
"numberr", 0, 0 );
975 write_into_file(outfile,
"charge_density_z", 0, 0 );
977 write_into_file(outfile,
"countz", 0, 0 );
979 write_into_file(outfile,
"momentum_distribution", 0, 0 );
981 write_into_file(outfile,
"dipole_orientation", 0, 0 );
983 write_into_file(outfile,
"order_prob", 0, 0 );
985 write_into_file(outfile,
"sfg", 0, 0 );
998 outfile = fopen(filename,
"w");
1003 return EXIT_FAILURE;
1015 cmdline_parser_release (args_info);
1020gengetopt_strdup (
const char *s)
1026 result = (
char*)malloc(strlen(s) + 1);
1027 if (result == (
char*)0)
1128 result = cmdline_parser_internal (argc, argv, args_info, params, 0);
1145 result = cmdline_parser_internal (argc, argv, args_info, ¶ms, 0);
1153 int result = EXIT_SUCCESS;
1155 if (cmdline_parser_required2(args_info, prog_name, 0) > 0)
1156 result = EXIT_FAILURE;
1162cmdline_parser_required2 (
struct gengetopt_args_info *args_info,
const char *prog_name,
const char *additional_error)
1164 int error_occurred = 0;
1165 FIX_UNUSED (additional_error);
1170 fprintf (stderr,
"%s: '--input' ('-i') option required%s\n", prog_name, (additional_error ? additional_error :
""));
1176 fprintf (stderr,
"%s: %d options of group staticProps were given. One is required%s.\n", prog_name, args_info->
staticProps_group_counter, (additional_error ? additional_error :
""));
1183 return error_occurred;
1238#define no_argument 0
1241#ifndef required_argument
1242#define required_argument 1
1245#ifndef optional_argument
1246#define optional_argument 2
1249struct custom_getopt_data {
1257 char *custom_optarg;
1291static char *custom_optarg;
1308static int custom_optind = 1;
1314static int custom_opterr = 1;
1320static int custom_optopt =
'?';
1330static void exchange(
char **argv,
struct custom_getopt_data *d)
1332 int bottom = d->first_nonopt;
1333 int middle = d->last_nonopt;
1334 int top = d->custom_optind;
1343 while (top > middle && middle > bottom) {
1344 if (top - middle > middle - bottom) {
1346 int len = middle - bottom;
1350 for (i = 0; i < len; i++) {
1351 tem = argv[bottom + i];
1353 argv[top - (middle - bottom) + i];
1354 argv[top - (middle - bottom) + i] = tem;
1360 int len = top - middle;
1364 for (i = 0; i < len; i++) {
1365 tem = argv[bottom + i];
1366 argv[bottom + i] = argv[middle + i];
1367 argv[middle + i] = tem;
1374 d->first_nonopt += (d->custom_optind - d->last_nonopt);
1375 d->last_nonopt = d->custom_optind;
1379static void custom_getopt_initialize(
struct custom_getopt_data *d)
1386 d->first_nonopt = d->last_nonopt = d->custom_optind;
1391#define NONOPTION_P (argv[d->custom_optind][0] != '-' || argv[d->custom_optind][1] == '\0')
1394static int shuffle_argv(
int argc,
char *
const *argv,
const struct option *longopts,
1395 struct custom_getopt_data *d)
1401 if (d->last_nonopt > d->custom_optind)
1402 d->last_nonopt = d->custom_optind;
1403 if (d->first_nonopt > d->custom_optind)
1404 d->first_nonopt = d->custom_optind;
1409 if (d->first_nonopt != d->last_nonopt &&
1410 d->last_nonopt != d->custom_optind)
1411 exchange((
char **) argv, d);
1412 else if (d->last_nonopt != d->custom_optind)
1413 d->first_nonopt = d->custom_optind;
1418 while (d->custom_optind < argc && NONOPTION_P)
1420 d->last_nonopt = d->custom_optind;
1426 if (d->custom_optind != argc && !strcmp(argv[d->custom_optind],
"--")) {
1428 if (d->first_nonopt != d->last_nonopt
1429 && d->last_nonopt != d->custom_optind)
1430 exchange((
char **) argv, d);
1431 else if (d->first_nonopt == d->last_nonopt)
1432 d->first_nonopt = d->custom_optind;
1433 d->last_nonopt = argc;
1434 d->custom_optind = argc;
1440 if (d->custom_optind == argc) {
1445 if (d->first_nonopt != d->last_nonopt)
1446 d->custom_optind = d->first_nonopt;
1454 d->custom_optarg = argv[d->custom_optind++];
1461 d->nextchar = (argv[d->custom_optind] + 1 + (longopts != NULL && argv[d->custom_optind][1] ==
'-'));
1475static int check_long_opt(
int argc,
char *
const *argv,
const char *optstring,
1476 const struct option *longopts,
int *longind,
1477 int print_errors,
struct custom_getopt_data *d)
1480 const struct option *p;
1481 const struct option *pfound = NULL;
1487 for (nameend = d->nextchar; *nameend && *nameend !=
'='; nameend++)
1491 for (p = longopts, option_index = 0; p->name; p++, option_index++)
1492 if (!strncmp(p->name, d->nextchar, nameend - d->nextchar)) {
1493 if ((
unsigned int) (nameend - d->nextchar)
1494 == (
unsigned int) strlen(p->name)) {
1497 indfound = option_index;
1500 }
else if (pfound == NULL) {
1503 indfound = option_index;
1504 }
else if (pfound->has_arg != p->has_arg
1505 || pfound->flag != p->flag
1506 || pfound->val != p->val)
1510 if (ambig && !exact) {
1513 "%s: option `%s' is ambiguous\n",
1514 argv[0], argv[d->custom_optind]);
1516 d->nextchar += strlen(d->nextchar);
1518 d->custom_optopt = 0;
1522 option_index = indfound;
1525 if (pfound->has_arg != no_argument)
1526 d->custom_optarg = nameend + 1;
1529 if (argv[d->custom_optind - 1][1] ==
'-') {
1531 fprintf(stderr,
"%s: option `--%s' doesn't allow an argument\n",
1532 argv[0], pfound->name);
1535 fprintf(stderr,
"%s: option `%c%s' doesn't allow an argument\n",
1536 argv[0], argv[d->custom_optind - 1][0], pfound->name);
1540 d->nextchar += strlen(d->nextchar);
1541 d->custom_optopt = pfound->val;
1544 }
else if (pfound->has_arg == required_argument) {
1545 if (d->custom_optind < argc)
1546 d->custom_optarg = argv[d->custom_optind++];
1550 "%s: option `%s' requires an argument\n",
1552 argv[d->custom_optind - 1]);
1554 d->nextchar += strlen(d->nextchar);
1555 d->custom_optopt = pfound->val;
1556 return optstring[0] ==
':' ?
':' :
'?';
1559 d->nextchar += strlen(d->nextchar);
1560 if (longind != NULL)
1561 *longind = option_index;
1563 *(pfound->flag) = pfound->val;
1574 if (argv[d->custom_optind][1] ==
'-') {
1577 "%s: unrecognized option `--%s'\n",
1578 argv[0], d->nextchar);
1582 "%s: unrecognized option `%c%s'\n",
1583 argv[0], argv[d->custom_optind][0],
1587 d->nextchar = (
char *)
"";
1589 d->custom_optopt = 0;
1593static int check_short_opt(
int argc,
char *
const *argv,
const char *optstring,
1594 int print_errors,
struct custom_getopt_data *d)
1596 char c = *d->nextchar++;
1597 const char *temp = strchr(optstring, c);
1600 if (*d->nextchar ==
'\0')
1602 if (!temp || c ==
':') {
1604 fprintf(stderr,
"%s: invalid option -- %c\n", argv[0], c);
1606 d->custom_optopt = c;
1609 if (temp[1] ==
':') {
1610 if (temp[2] ==
':') {
1612 if (*d->nextchar !=
'\0') {
1613 d->custom_optarg = d->nextchar;
1616 d->custom_optarg = NULL;
1620 if (*d->nextchar !=
'\0') {
1621 d->custom_optarg = d->nextchar;
1628 }
else if (d->custom_optind == argc) {
1631 "%s: option requires an argument -- %c\n",
1634 d->custom_optopt = c;
1635 if (optstring[0] ==
':')
1645 d->custom_optarg = argv[d->custom_optind++];
1722static int getopt_internal_r(
int argc,
char *
const *argv,
const char *optstring,
1723 const struct option *longopts,
int *longind,
1724 struct custom_getopt_data *d)
1726 int ret, print_errors = d->custom_opterr;
1728 if (optstring[0] ==
':')
1732 d->custom_optarg = NULL;
1738 if (d->custom_optind == 0 || !d->initialized) {
1739 if (d->custom_optind == 0)
1740 d->custom_optind = 1;
1741 custom_getopt_initialize(d);
1743 if (d->nextchar == NULL || *d->nextchar ==
'\0') {
1744 ret = shuffle_argv(argc, argv, longopts, d);
1748 if (longopts && (argv[d->custom_optind][1] ==
'-' ))
1749 return check_long_opt(argc, argv, optstring, longopts,
1750 longind, print_errors, d);
1751 return check_short_opt(argc, argv, optstring, print_errors, d);
1754static int custom_getopt_internal(
int argc,
char *
const *argv,
const char *optstring,
1755 const struct option *longopts,
int *longind)
1759 static struct custom_getopt_data d;
1761 d.custom_optind = custom_optind;
1762 d.custom_opterr = custom_opterr;
1763 result = getopt_internal_r(argc, argv, optstring, longopts,
1765 custom_optind = d.custom_optind;
1766 custom_optarg = d.custom_optarg;
1767 custom_optopt = d.custom_optopt;
1771static int custom_getopt_long (
int argc,
char *
const *argv,
const char *options,
1772 const struct option *long_options,
int *opt_index)
1774 return custom_getopt_internal(argc, argv, options, long_options,
1779static char *package_name = 0;
1800int update_arg(
void *field,
char **orig_field,
1801 unsigned int *field_given,
unsigned int *prev_given,
1802 char *value,
const char *possible_values[],
1803 const char *default_value,
1804 cmdline_parser_arg_type arg_type,
1805 int check_ambiguity,
int override,
1806 int no_free,
int multiple_option,
1807 const char *long_opt,
char short_opt,
1808 const char *additional_error)
1810 char *stop_char = 0;
1811 const char *val = value;
1813 char **string_field;
1819 if (!multiple_option && prev_given && (*prev_given || (check_ambiguity && *field_given)))
1821 if (short_opt !=
'-')
1822 fprintf (stderr,
"%s: `--%s' (`-%c') option given more than once%s\n",
1823 package_name, long_opt, short_opt,
1824 (additional_error ? additional_error :
""));
1826 fprintf (stderr,
"%s: `--%s' option given more than once%s\n",
1827 package_name, long_opt,
1828 (additional_error ? additional_error :
""));
1832 if (possible_values && (found = check_possible_values((value ? value : default_value), possible_values)) < 0)
1834 if (short_opt !=
'-')
1835 fprintf (stderr,
"%s: %s argument, \"%s\", for option `--%s' (`-%c')%s\n",
1836 package_name, (found == -2) ?
"ambiguous" :
"invalid", value, long_opt, short_opt,
1837 (additional_error ? additional_error :
""));
1839 fprintf (stderr,
"%s: %s argument, \"%s\", for option `--%s'%s\n",
1840 package_name, (found == -2) ?
"ambiguous" :
"invalid", value, long_opt,
1841 (additional_error ? additional_error :
""));
1845 if (field_given && *field_given && !
override)
1851 if (possible_values)
1852 val = possible_values[found];
1856 *((
int *)field) = !*((
int *)field);
1859 if (val) *((
int *)field) = strtol (val, &stop_char, 0);
1862 if (val) *((
double *)field) = strtod (val, &stop_char);
1865 if (val) *((
int *)field) = found;
1869 string_field = (
char **)field;
1870 if (!no_free && *string_field)
1871 free (*string_field);
1872 *string_field = gengetopt_strdup (val);
1883 if (val && !(stop_char && *stop_char ==
'\0')) {
1884 fprintf(stderr,
"%s: invalid numeric value: %s\n", package_name, val);
1898 if (value && orig_field) {
1900 *orig_field = value;
1904 *orig_field = gengetopt_strdup (value);
1914cmdline_parser_internal (
1920 int error_occurred = 0;
1926 int check_ambiguity;
1933 package_name = argv[0];
1937 FIX_UNUSED(
override);
1944 FIX_UNUSED(check_ambiguity);
1958 int option_index = 0;
1960 static struct option long_options[] = {
1961 {
"help", 0, NULL,
'h' },
1962 {
"version", 0, NULL,
'V' },
1963 {
"input", 1, NULL,
'i' },
1964 {
"output", 1, NULL,
'o' },
1965 {
"step", 1, NULL,
'n' },
1966 {
"nbins", 1, NULL,
'b' },
1967 {
"nbins_x", 1, NULL,
'x' },
1968 {
"nbins_y", 1, NULL,
'y' },
1969 {
"nbins_z", 1, NULL, 0 },
1970 {
"nrbins", 1, NULL,
'r' },
1971 {
"binWidth", 1, NULL, 0 },
1972 {
"nanglebins", 1, NULL,
'a' },
1973 {
"rcut", 1, NULL,
'c' },
1974 {
"OOcut", 1, NULL, 0 },
1975 {
"thetacut", 1, NULL, 0 },
1976 {
"OHcut", 1, NULL, 0 },
1977 {
"dz", 1, NULL, 0 },
1978 {
"length", 1, NULL, 0 },
1979 {
"zlength", 1, NULL, 0 },
1980 {
"zoffset", 1, NULL,
'z' },
1981 {
"sele1", 1, NULL, 0 },
1982 {
"sele2", 1, NULL, 0 },
1983 {
"sele3", 1, NULL, 0 },
1984 {
"refsele", 1, NULL, 0 },
1985 {
"comsele", 1, NULL, 0 },
1986 {
"seleoffset", 1, NULL, 0 },
1987 {
"seleoffset2", 1, NULL, 0 },
1988 {
"seleoffset3", 1, NULL, 0 },
1989 {
"molname", 1, NULL, 0 },
1990 {
"begin", 1, NULL, 0 },
1991 {
"end", 1, NULL, 0 },
1992 {
"radius", 1, NULL, 0 },
1993 {
"voxelSize", 1, NULL,
'v' },
1994 {
"gaussWidth", 1, NULL, 0 },
1995 {
"privilegedAxis", 1, NULL, 0 },
1996 {
"privilegedAxis2", 1, NULL, 0 },
1997 {
"momentum", 1, NULL, 0 },
1998 {
"component", 1, NULL, 0 },
1999 {
"dipoleX", 1, NULL, 0 },
2000 {
"dipoleY", 1, NULL, 0 },
2001 {
"dipoleZ", 1, NULL, 0 },
2002 {
"v_radius", 1, NULL, 0 },
2003 {
"gen_xyz", 0, NULL, 0 },
2004 {
"atom_name", 1, NULL, 0 },
2005 {
"sfgPolarization", 1, NULL, 0 },
2006 {
"lorentzianWidth", 1, NULL, 0 },
2007 {
"fermiCoupling", 1, NULL, 0 },
2008 {
"bo", 0, NULL, 0 },
2009 {
"ior", 0, NULL, 0 },
2010 {
"for", 0, NULL, 0 },
2011 {
"bad", 0, NULL, 0 },
2012 {
"count", 0, NULL, 0 },
2013 {
"mcount", 0, NULL, 0 },
2014 {
"gofr", 0, NULL,
'g' },
2015 {
"gofz", 0, NULL, 0 },
2016 {
"r_theta", 0, NULL, 0 },
2017 {
"r_omega", 0, NULL, 0 },
2018 {
"r_z", 0, NULL, 0 },
2019 {
"theta_omega", 0, NULL, 0 },
2020 {
"r_theta_omega", 0, NULL, 0 },
2021 {
"gxyz", 0, NULL, 0 },
2022 {
"twodgofr", 0, NULL, 0 },
2023 {
"kirkwood_buff", 0, NULL, 0 },
2024 {
"p2", 0, NULL,
'p' },
2025 {
"p2r", 0, NULL, 0 },
2026 {
"p2z", 0, NULL, 0 },
2027 {
"rp2", 0, NULL, 0 },
2028 {
"scd", 0, NULL,
's' },
2029 {
"density", 0, NULL,
'd' },
2030 {
"slab_density", 0, NULL, 0 },
2031 {
"pipe_density", 0, NULL, 0 },
2032 {
"p_angle", 0, NULL, 0 },
2033 {
"hxy", 0, NULL, 0 },
2034 {
"rho_r", 0, NULL, 0 },
2035 {
"angle_r", 0, NULL, 0 },
2036 {
"hullvol", 0, NULL, 0 },
2037 {
"rodlength", 0, NULL, 0 },
2038 {
"tet_param", 0, NULL,
'Q' },
2039 {
"tet_param_z", 0, NULL, 0 },
2040 {
"tet_param_r", 0, NULL, 0 },
2041 {
"tet_param_rangle", 0, NULL, 0 },
2042 {
"tet_param_dens", 0, NULL, 0 },
2043 {
"tet_param_xyz", 0, NULL, 0 },
2044 {
"trans_param_z", 0, NULL, 0 },
2045 {
"rnemdz", 0, NULL, 0 },
2046 {
"rnemdr", 0, NULL, 0 },
2047 {
"rnemdrt", 0, NULL, 0 },
2048 {
"nitrile", 0, NULL, 0 },
2049 {
"OHfreqmap", 0, NULL, 0 },
2050 {
"multipole", 0, NULL,
'm' },
2051 {
"surfDiffusion", 0, NULL, 0 },
2052 {
"cn", 0, NULL, 0 },
2053 {
"scn", 0, NULL, 0 },
2054 {
"gcn", 0, NULL, 0 },
2055 {
"hbond", 0, NULL, 0 },
2056 {
"hbondz", 0, NULL, 0 },
2057 {
"hbondzvol", 0, NULL, 0 },
2058 {
"hbondr", 0, NULL, 0 },
2059 {
"hbondrvol", 0, NULL, 0 },
2060 {
"potDiff", 0, NULL, 0 },
2061 {
"tet_hb", 0, NULL, 0 },
2062 {
"kirkwood", 0, NULL,
'k' },
2063 {
"kirkwoodQ", 0, NULL, 0 },
2064 {
"densityfield", 0, NULL, 0 },
2065 {
"velocityfield", 0, NULL, 0 },
2066 {
"velocityZ", 0, NULL, 0 },
2067 {
"eam_density", 0, NULL,
'D' },
2068 {
"net_charge", 0, NULL,
'q' },
2069 {
"current_density", 0, NULL,
'J' },
2070 {
"chargez", 0, NULL, 0 },
2071 {
"charger", 0, NULL, 0 },
2072 {
"massdensityz", 0, NULL, 0 },
2073 {
"massdensityr", 0, NULL, 0 },
2074 {
"numberz", 0, NULL, 0 },
2075 {
"numberr", 0, NULL, 0 },
2076 {
"charge_density_z", 0, NULL, 0 },
2077 {
"countz", 0, NULL, 0 },
2078 {
"momentum_distribution", 0, NULL,
'M' },
2079 {
"dipole_orientation", 0, NULL,
'S' },
2080 {
"order_prob", 0, NULL, 0 },
2081 {
"sfg", 0, NULL, 0 },
2085 custom_optarg = optarg;
2086 custom_optind = optind;
2087 custom_opterr = opterr;
2088 custom_optopt = optopt;
2090 c = custom_getopt_long (argc, argv,
"hVi:o:n:b:x:y:r:a:c:z:v:gpsdQmkDqJMS", long_options, &option_index);
2092 optarg = custom_optarg;
2093 optind = custom_optind;
2094 opterr = custom_opterr;
2095 optopt = custom_optopt;
2103 cmdline_parser_free (&local_args_info);
2104 exit (EXIT_SUCCESS);
2108 cmdline_parser_free (&local_args_info);
2109 exit (EXIT_SUCCESS);
2114 if (update_arg( (
void *)&(args_info->
input_arg),
2116 &(local_args_info.input_given), optarg, 0, 0, ARG_STRING,
2117 check_ambiguity,
override, 0, 0,
2126 if (update_arg( (
void *)&(args_info->
output_arg),
2128 &(local_args_info.output_given), optarg, 0, 0, ARG_STRING,
2129 check_ambiguity,
override, 0, 0,
2138 if (update_arg( (
void *)&(args_info->
step_arg),
2140 &(local_args_info.step_given), optarg, 0,
"1", ARG_INT,
2141 check_ambiguity,
override, 0, 0,
2150 if (update_arg( (
void *)&(args_info->
nbins_arg),
2152 &(local_args_info.nbins_given), optarg, 0,
"100", ARG_INT,
2153 check_ambiguity,
override, 0, 0,
2162 if (update_arg( (
void *)&(args_info->
nbins_x_arg),
2164 &(local_args_info.nbins_x_given), optarg, 0,
"100", ARG_INT,
2165 check_ambiguity,
override, 0, 0,
2174 if (update_arg( (
void *)&(args_info->
nbins_y_arg),
2176 &(local_args_info.nbins_y_given), optarg, 0,
"100", ARG_INT,
2177 check_ambiguity,
override, 0, 0,
2186 if (update_arg( (
void *)&(args_info->
nrbins_arg),
2188 &(local_args_info.nrbins_given), optarg, 0,
"100", ARG_INT,
2189 check_ambiguity,
override, 0, 0,
2200 &(local_args_info.nanglebins_given), optarg, 0,
"50", ARG_INT,
2201 check_ambiguity,
override, 0, 0,
2210 if (update_arg( (
void *)&(args_info->
rcut_arg),
2212 &(local_args_info.rcut_given), optarg, 0, 0, ARG_DOUBLE,
2213 check_ambiguity,
override, 0, 0,
2222 if (update_arg( (
void *)&(args_info->
zoffset_arg),
2224 &(local_args_info.zoffset_given), optarg, 0,
"0", ARG_DOUBLE,
2225 check_ambiguity,
override, 0, 0,
2236 &(local_args_info.voxelSize_given), optarg, 0, 0, ARG_DOUBLE,
2237 check_ambiguity,
override, 0, 0,
2246 reset_group_staticProps (args_info);
2251 &(local_args_info.gofr_given), optarg, 0, 0, ARG_NO,
2252 check_ambiguity,
override, 0, 0,
2261 reset_group_staticProps (args_info);
2266 &(local_args_info.p2_given), optarg, 0, 0, ARG_NO,
2267 check_ambiguity,
override, 0, 0,
2276 reset_group_staticProps (args_info);
2281 &(local_args_info.scd_given), optarg, 0, 0, ARG_NO,
2282 check_ambiguity,
override, 0, 0,
2291 reset_group_staticProps (args_info);
2296 &(local_args_info.density_given), optarg, 0, 0, ARG_NO,
2297 check_ambiguity,
override, 0, 0,
2306 reset_group_staticProps (args_info);
2311 &(local_args_info.tet_param_given), optarg, 0, 0, ARG_NO,
2312 check_ambiguity,
override, 0, 0,
2321 reset_group_staticProps (args_info);
2326 &(local_args_info.multipole_given), optarg, 0, 0, ARG_NO,
2327 check_ambiguity,
override, 0, 0,
2336 reset_group_staticProps (args_info);
2341 &(local_args_info.kirkwood_given), optarg, 0, 0, ARG_NO,
2342 check_ambiguity,
override, 0, 0,
2351 reset_group_staticProps (args_info);
2356 &(local_args_info.eam_density_given), optarg, 0, 0, ARG_NO,
2357 check_ambiguity,
override, 0, 0,
2366 reset_group_staticProps (args_info);
2371 &(local_args_info.net_charge_given), optarg, 0, 0, ARG_NO,
2372 check_ambiguity,
override, 0, 0,
2381 reset_group_staticProps (args_info);
2386 &(local_args_info.current_density_given), optarg, 0, 0, ARG_NO,
2387 check_ambiguity,
override, 0, 0,
2388 "current_density",
'J',
2396 reset_group_staticProps (args_info);
2401 &(local_args_info.momentum_distribution_given), optarg, 0, 0, ARG_NO,
2402 check_ambiguity,
override, 0, 0,
2403 "momentum_distribution",
'M',
2411 reset_group_staticProps (args_info);
2416 &(local_args_info.dipole_orientation_given), optarg, 0, 0, ARG_NO,
2417 check_ambiguity,
override, 0, 0,
2418 "dipole_orientation",
'S',
2426 if (strcmp (long_options[option_index].name,
"nbins_z") == 0)
2430 if (update_arg( (
void *)&(args_info->
nbins_z_arg),
2432 &(local_args_info.nbins_z_given), optarg, 0,
"100", ARG_INT,
2433 check_ambiguity,
override, 0, 0,
2440 else if (strcmp (long_options[option_index].name,
"binWidth") == 0)
2446 &(local_args_info.binWidth_given), optarg, 0,
"1.0", ARG_DOUBLE,
2447 check_ambiguity,
override, 0, 0,
2454 else if (strcmp (long_options[option_index].name,
"OOcut") == 0)
2458 if (update_arg( (
void *)&(args_info->
OOcut_arg),
2460 &(local_args_info.OOcut_given), optarg, 0,
"3.5", ARG_DOUBLE,
2461 check_ambiguity,
override, 0, 0,
2468 else if (strcmp (long_options[option_index].name,
"thetacut") == 0)
2474 &(local_args_info.thetacut_given), optarg, 0,
"30", ARG_DOUBLE,
2475 check_ambiguity,
override, 0, 0,
2482 else if (strcmp (long_options[option_index].name,
"OHcut") == 0)
2486 if (update_arg( (
void *)&(args_info->
OHcut_arg),
2488 &(local_args_info.OHcut_given), optarg, 0,
"2.45", ARG_DOUBLE,
2489 check_ambiguity,
override, 0, 0,
2496 else if (strcmp (long_options[option_index].name,
"dz") == 0)
2500 if (update_arg( (
void *)&(args_info->
dz_arg),
2502 &(local_args_info.dz_given), optarg, 0, 0, ARG_DOUBLE,
2503 check_ambiguity,
override, 0, 0,
2510 else if (strcmp (long_options[option_index].name,
"length") == 0)
2514 if (update_arg( (
void *)&(args_info->
length_arg),
2516 &(local_args_info.length_given), optarg, 0, 0, ARG_DOUBLE,
2517 check_ambiguity,
override, 0, 0,
2524 else if (strcmp (long_options[option_index].name,
"zlength") == 0)
2528 if (update_arg( (
void *)&(args_info->
zlength_arg),
2530 &(local_args_info.zlength_given), optarg, 0, 0, ARG_DOUBLE,
2531 check_ambiguity,
override, 0, 0,
2538 else if (strcmp (long_options[option_index].name,
"sele1") == 0)
2542 if (update_arg( (
void *)&(args_info->
sele1_arg),
2544 &(local_args_info.sele1_given), optarg, 0, 0, ARG_STRING,
2545 check_ambiguity,
override, 0, 0,
2552 else if (strcmp (long_options[option_index].name,
"sele2") == 0)
2556 if (update_arg( (
void *)&(args_info->
sele2_arg),
2558 &(local_args_info.sele2_given), optarg, 0, 0, ARG_STRING,
2559 check_ambiguity,
override, 0, 0,
2566 else if (strcmp (long_options[option_index].name,
"sele3") == 0)
2570 if (update_arg( (
void *)&(args_info->
sele3_arg),
2572 &(local_args_info.sele3_given), optarg, 0, 0, ARG_STRING,
2573 check_ambiguity,
override, 0, 0,
2580 else if (strcmp (long_options[option_index].name,
"refsele") == 0)
2584 if (update_arg( (
void *)&(args_info->
refsele_arg),
2586 &(local_args_info.refsele_given), optarg, 0, 0, ARG_STRING,
2587 check_ambiguity,
override, 0, 0,
2594 else if (strcmp (long_options[option_index].name,
"comsele") == 0)
2598 if (update_arg( (
void *)&(args_info->
comsele_arg),
2600 &(local_args_info.comsele_given), optarg, 0, 0, ARG_STRING,
2601 check_ambiguity,
override, 0, 0,
2608 else if (strcmp (long_options[option_index].name,
"seleoffset") == 0)
2614 &(local_args_info.seleoffset_given), optarg, 0, 0, ARG_INT,
2615 check_ambiguity,
override, 0, 0,
2622 else if (strcmp (long_options[option_index].name,
"seleoffset2") == 0)
2628 &(local_args_info.seleoffset2_given), optarg, 0, 0, ARG_INT,
2629 check_ambiguity,
override, 0, 0,
2636 else if (strcmp (long_options[option_index].name,
"seleoffset3") == 0)
2642 &(local_args_info.seleoffset3_given), optarg, 0, 0, ARG_INT,
2643 check_ambiguity,
override, 0, 0,
2650 else if (strcmp (long_options[option_index].name,
"molname") == 0)
2654 if (update_arg( (
void *)&(args_info->
molname_arg),
2656 &(local_args_info.molname_given), optarg, 0, 0, ARG_STRING,
2657 check_ambiguity,
override, 0, 0,
2664 else if (strcmp (long_options[option_index].name,
"begin") == 0)
2668 if (update_arg( (
void *)&(args_info->
begin_arg),
2670 &(local_args_info.begin_given), optarg, 0, 0, ARG_INT,
2671 check_ambiguity,
override, 0, 0,
2678 else if (strcmp (long_options[option_index].name,
"end") == 0)
2682 if (update_arg( (
void *)&(args_info->
end_arg),
2684 &(local_args_info.end_given), optarg, 0, 0, ARG_INT,
2685 check_ambiguity,
override, 0, 0,
2692 else if (strcmp (long_options[option_index].name,
"radius") == 0)
2696 if (update_arg( (
void *)&(args_info->
radius_arg),
2698 &(local_args_info.radius_given), optarg, 0, 0, ARG_DOUBLE,
2699 check_ambiguity,
override, 0, 0,
2706 else if (strcmp (long_options[option_index].name,
"gaussWidth") == 0)
2712 &(local_args_info.gaussWidth_given), optarg, 0, 0, ARG_DOUBLE,
2713 check_ambiguity,
override, 0, 0,
2720 else if (strcmp (long_options[option_index].name,
"privilegedAxis") == 0)
2726 &(local_args_info.privilegedAxis_given), optarg, cmdline_parser_privilegedAxis_values,
"z", ARG_ENUM,
2727 check_ambiguity,
override, 0, 0,
2728 "privilegedAxis",
'-',
2734 else if (strcmp (long_options[option_index].name,
"privilegedAxis2") == 0)
2740 &(local_args_info.privilegedAxis2_given), optarg, cmdline_parser_privilegedAxis2_values,
"x", ARG_ENUM,
2741 check_ambiguity,
override, 0, 0,
2742 "privilegedAxis2",
'-',
2748 else if (strcmp (long_options[option_index].name,
"momentum") == 0)
2754 &(local_args_info.momentum_given), optarg, cmdline_parser_momentum_values,
"P", ARG_ENUM,
2755 check_ambiguity,
override, 0, 0,
2762 else if (strcmp (long_options[option_index].name,
"component") == 0)
2768 &(local_args_info.component_given), optarg, cmdline_parser_component_values,
"z", ARG_ENUM,
2769 check_ambiguity,
override, 0, 0,
2776 else if (strcmp (long_options[option_index].name,
"dipoleX") == 0)
2780 if (update_arg( (
void *)&(args_info->
dipoleX_arg),
2782 &(local_args_info.dipoleX_given), optarg, 0, 0, ARG_DOUBLE,
2783 check_ambiguity,
override, 0, 0,
2790 else if (strcmp (long_options[option_index].name,
"dipoleY") == 0)
2794 if (update_arg( (
void *)&(args_info->
dipoleY_arg),
2796 &(local_args_info.dipoleY_given), optarg, 0, 0, ARG_DOUBLE,
2797 check_ambiguity,
override, 0, 0,
2804 else if (strcmp (long_options[option_index].name,
"dipoleZ") == 0)
2808 if (update_arg( (
void *)&(args_info->
dipoleZ_arg),
2810 &(local_args_info.dipoleZ_given), optarg, 0, 0, ARG_DOUBLE,
2811 check_ambiguity,
override, 0, 0,
2818 else if (strcmp (long_options[option_index].name,
"v_radius") == 0)
2824 &(local_args_info.v_radius_given), optarg, 0, 0, ARG_DOUBLE,
2825 check_ambiguity,
override, 0, 0,
2832 else if (strcmp (long_options[option_index].name,
"gen_xyz") == 0)
2837 &(local_args_info.gen_xyz_given), optarg, 0, 0, ARG_FLAG,
2838 check_ambiguity,
override, 1, 0,
"gen_xyz",
'-',
2844 else if (strcmp (long_options[option_index].name,
"atom_name") == 0)
2850 &(local_args_info.atom_name_given), optarg, 0, 0, ARG_STRING,
2851 check_ambiguity,
override, 0, 0,
2858 else if (strcmp (long_options[option_index].name,
"sfgPolarization") == 0)
2864 &(local_args_info.sfgPolarization_given), optarg, 0,
"ssp", ARG_STRING,
2865 check_ambiguity,
override, 0, 0,
2866 "sfgPolarization",
'-',
2872 else if (strcmp (long_options[option_index].name,
"lorentzianWidth") == 0)
2878 &(local_args_info.lorentzianWidth_given), optarg, 0,
"5", ARG_DOUBLE,
2879 check_ambiguity,
override, 0, 0,
2880 "lorentzianWidth",
'-',
2886 else if (strcmp (long_options[option_index].name,
"fermiCoupling") == 0)
2892 &(local_args_info.fermiCoupling_given), optarg, 0,
"25", ARG_DOUBLE,
2893 check_ambiguity,
override, 0, 0,
2894 "fermiCoupling",
'-',
2900 else if (strcmp (long_options[option_index].name,
"bo") == 0)
2904 reset_group_staticProps (args_info);
2909 &(local_args_info.bo_given), optarg, 0, 0, ARG_NO,
2910 check_ambiguity,
override, 0, 0,
2917 else if (strcmp (long_options[option_index].name,
"ior") == 0)
2921 reset_group_staticProps (args_info);
2926 &(local_args_info.ior_given), optarg, 0, 0, ARG_NO,
2927 check_ambiguity,
override, 0, 0,
2934 else if (strcmp (long_options[option_index].name,
"for") == 0)
2938 reset_group_staticProps (args_info);
2943 &(local_args_info.for_given), optarg, 0, 0, ARG_NO,
2944 check_ambiguity,
override, 0, 0,
2951 else if (strcmp (long_options[option_index].name,
"bad") == 0)
2955 reset_group_staticProps (args_info);
2960 &(local_args_info.bad_given), optarg, 0, 0, ARG_NO,
2961 check_ambiguity,
override, 0, 0,
2968 else if (strcmp (long_options[option_index].name,
"count") == 0)
2972 reset_group_staticProps (args_info);
2977 &(local_args_info.count_given), optarg, 0, 0, ARG_NO,
2978 check_ambiguity,
override, 0, 0,
2985 else if (strcmp (long_options[option_index].name,
"mcount") == 0)
2989 reset_group_staticProps (args_info);
2994 &(local_args_info.mcount_given), optarg, 0, 0, ARG_NO,
2995 check_ambiguity,
override, 0, 0,
3002 else if (strcmp (long_options[option_index].name,
"gofz") == 0)
3006 reset_group_staticProps (args_info);
3011 &(local_args_info.gofz_given), optarg, 0, 0, ARG_NO,
3012 check_ambiguity,
override, 0, 0,
3019 else if (strcmp (long_options[option_index].name,
"r_theta") == 0)
3023 reset_group_staticProps (args_info);
3028 &(local_args_info.r_theta_given), optarg, 0, 0, ARG_NO,
3029 check_ambiguity,
override, 0, 0,
3036 else if (strcmp (long_options[option_index].name,
"r_omega") == 0)
3040 reset_group_staticProps (args_info);
3045 &(local_args_info.r_omega_given), optarg, 0, 0, ARG_NO,
3046 check_ambiguity,
override, 0, 0,
3053 else if (strcmp (long_options[option_index].name,
"r_z") == 0)
3057 reset_group_staticProps (args_info);
3062 &(local_args_info.r_z_given), optarg, 0, 0, ARG_NO,
3063 check_ambiguity,
override, 0, 0,
3070 else if (strcmp (long_options[option_index].name,
"theta_omega") == 0)
3074 reset_group_staticProps (args_info);
3079 &(local_args_info.theta_omega_given), optarg, 0, 0, ARG_NO,
3080 check_ambiguity,
override, 0, 0,
3087 else if (strcmp (long_options[option_index].name,
"r_theta_omega") == 0)
3091 reset_group_staticProps (args_info);
3096 &(local_args_info.r_theta_omega_given), optarg, 0, 0, ARG_NO,
3097 check_ambiguity,
override, 0, 0,
3098 "r_theta_omega",
'-',
3104 else if (strcmp (long_options[option_index].name,
"gxyz") == 0)
3108 reset_group_staticProps (args_info);
3113 &(local_args_info.gxyz_given), optarg, 0, 0, ARG_NO,
3114 check_ambiguity,
override, 0, 0,
3121 else if (strcmp (long_options[option_index].name,
"twodgofr") == 0)
3125 reset_group_staticProps (args_info);
3130 &(local_args_info.twodgofr_given), optarg, 0, 0, ARG_NO,
3131 check_ambiguity,
override, 0, 0,
3138 else if (strcmp (long_options[option_index].name,
"kirkwood_buff") == 0)
3142 reset_group_staticProps (args_info);
3147 &(local_args_info.kirkwood_buff_given), optarg, 0, 0, ARG_NO,
3148 check_ambiguity,
override, 0, 0,
3149 "kirkwood_buff",
'-',
3155 else if (strcmp (long_options[option_index].name,
"p2r") == 0)
3159 reset_group_staticProps (args_info);
3164 &(local_args_info.p2r_given), optarg, 0, 0, ARG_NO,
3165 check_ambiguity,
override, 0, 0,
3172 else if (strcmp (long_options[option_index].name,
"p2z") == 0)
3176 reset_group_staticProps (args_info);
3181 &(local_args_info.p2z_given), optarg, 0, 0, ARG_NO,
3182 check_ambiguity,
override, 0, 0,
3189 else if (strcmp (long_options[option_index].name,
"rp2") == 0)
3193 reset_group_staticProps (args_info);
3198 &(local_args_info.rp2_given), optarg, 0, 0, ARG_NO,
3199 check_ambiguity,
override, 0, 0,
3206 else if (strcmp (long_options[option_index].name,
"slab_density") == 0)
3210 reset_group_staticProps (args_info);
3215 &(local_args_info.slab_density_given), optarg, 0, 0, ARG_NO,
3216 check_ambiguity,
override, 0, 0,
3217 "slab_density",
'-',
3223 else if (strcmp (long_options[option_index].name,
"pipe_density") == 0)
3227 reset_group_staticProps (args_info);
3232 &(local_args_info.pipe_density_given), optarg, 0, 0, ARG_NO,
3233 check_ambiguity,
override, 0, 0,
3234 "pipe_density",
'-',
3240 else if (strcmp (long_options[option_index].name,
"p_angle") == 0)
3244 reset_group_staticProps (args_info);
3249 &(local_args_info.p_angle_given), optarg, 0, 0, ARG_NO,
3250 check_ambiguity,
override, 0, 0,
3257 else if (strcmp (long_options[option_index].name,
"hxy") == 0)
3261 reset_group_staticProps (args_info);
3266 &(local_args_info.hxy_given), optarg, 0, 0, ARG_NO,
3267 check_ambiguity,
override, 0, 0,
3274 else if (strcmp (long_options[option_index].name,
"rho_r") == 0)
3278 reset_group_staticProps (args_info);
3283 &(local_args_info.rho_r_given), optarg, 0, 0, ARG_NO,
3284 check_ambiguity,
override, 0, 0,
3291 else if (strcmp (long_options[option_index].name,
"angle_r") == 0)
3295 reset_group_staticProps (args_info);
3300 &(local_args_info.angle_r_given), optarg, 0, 0, ARG_NO,
3301 check_ambiguity,
override, 0, 0,
3308 else if (strcmp (long_options[option_index].name,
"hullvol") == 0)
3312 reset_group_staticProps (args_info);
3317 &(local_args_info.hullvol_given), optarg, 0, 0, ARG_NO,
3318 check_ambiguity,
override, 0, 0,
3325 else if (strcmp (long_options[option_index].name,
"rodlength") == 0)
3329 reset_group_staticProps (args_info);
3334 &(local_args_info.rodlength_given), optarg, 0, 0, ARG_NO,
3335 check_ambiguity,
override, 0, 0,
3342 else if (strcmp (long_options[option_index].name,
"tet_param_z") == 0)
3346 reset_group_staticProps (args_info);
3351 &(local_args_info.tet_param_z_given), optarg, 0, 0, ARG_NO,
3352 check_ambiguity,
override, 0, 0,
3359 else if (strcmp (long_options[option_index].name,
"tet_param_r") == 0)
3363 reset_group_staticProps (args_info);
3368 &(local_args_info.tet_param_r_given), optarg, 0, 0, ARG_NO,
3369 check_ambiguity,
override, 0, 0,
3376 else if (strcmp (long_options[option_index].name,
"tet_param_rangle") == 0)
3380 reset_group_staticProps (args_info);
3385 &(local_args_info.tet_param_rangle_given), optarg, 0, 0, ARG_NO,
3386 check_ambiguity,
override, 0, 0,
3387 "tet_param_rangle",
'-',
3393 else if (strcmp (long_options[option_index].name,
"tet_param_dens") == 0)
3397 reset_group_staticProps (args_info);
3402 &(local_args_info.tet_param_dens_given), optarg, 0, 0, ARG_NO,
3403 check_ambiguity,
override, 0, 0,
3404 "tet_param_dens",
'-',
3410 else if (strcmp (long_options[option_index].name,
"tet_param_xyz") == 0)
3414 reset_group_staticProps (args_info);
3419 &(local_args_info.tet_param_xyz_given), optarg, 0, 0, ARG_NO,
3420 check_ambiguity,
override, 0, 0,
3421 "tet_param_xyz",
'-',
3427 else if (strcmp (long_options[option_index].name,
"trans_param_z") == 0)
3431 reset_group_staticProps (args_info);
3436 &(local_args_info.trans_param_z_given), optarg, 0, 0, ARG_NO,
3437 check_ambiguity,
override, 0, 0,
3438 "trans_param_z",
'-',
3444 else if (strcmp (long_options[option_index].name,
"rnemdz") == 0)
3448 reset_group_staticProps (args_info);
3453 &(local_args_info.rnemdz_given), optarg, 0, 0, ARG_NO,
3454 check_ambiguity,
override, 0, 0,
3461 else if (strcmp (long_options[option_index].name,
"rnemdr") == 0)
3465 reset_group_staticProps (args_info);
3470 &(local_args_info.rnemdr_given), optarg, 0, 0, ARG_NO,
3471 check_ambiguity,
override, 0, 0,
3478 else if (strcmp (long_options[option_index].name,
"rnemdrt") == 0)
3482 reset_group_staticProps (args_info);
3487 &(local_args_info.rnemdrt_given), optarg, 0, 0, ARG_NO,
3488 check_ambiguity,
override, 0, 0,
3495 else if (strcmp (long_options[option_index].name,
"nitrile") == 0)
3499 reset_group_staticProps (args_info);
3504 &(local_args_info.nitrile_given), optarg, 0, 0, ARG_NO,
3505 check_ambiguity,
override, 0, 0,
3512 else if (strcmp (long_options[option_index].name,
"OHfreqmap") == 0)
3516 reset_group_staticProps (args_info);
3521 &(local_args_info.OHfreqmap_given), optarg, 0, 0, ARG_NO,
3522 check_ambiguity,
override, 0, 0,
3529 else if (strcmp (long_options[option_index].name,
"surfDiffusion") == 0)
3533 reset_group_staticProps (args_info);
3538 &(local_args_info.surfDiffusion_given), optarg, 0, 0, ARG_NO,
3539 check_ambiguity,
override, 0, 0,
3540 "surfDiffusion",
'-',
3546 else if (strcmp (long_options[option_index].name,
"cn") == 0)
3550 reset_group_staticProps (args_info);
3555 &(local_args_info.cn_given), optarg, 0, 0, ARG_NO,
3556 check_ambiguity,
override, 0, 0,
3563 else if (strcmp (long_options[option_index].name,
"scn") == 0)
3567 reset_group_staticProps (args_info);
3572 &(local_args_info.scn_given), optarg, 0, 0, ARG_NO,
3573 check_ambiguity,
override, 0, 0,
3580 else if (strcmp (long_options[option_index].name,
"gcn") == 0)
3584 reset_group_staticProps (args_info);
3589 &(local_args_info.gcn_given), optarg, 0, 0, ARG_NO,
3590 check_ambiguity,
override, 0, 0,
3597 else if (strcmp (long_options[option_index].name,
"hbond") == 0)
3601 reset_group_staticProps (args_info);
3606 &(local_args_info.hbond_given), optarg, 0, 0, ARG_NO,
3607 check_ambiguity,
override, 0, 0,
3614 else if (strcmp (long_options[option_index].name,
"hbondz") == 0)
3618 reset_group_staticProps (args_info);
3623 &(local_args_info.hbondz_given), optarg, 0, 0, ARG_NO,
3624 check_ambiguity,
override, 0, 0,
3631 else if (strcmp (long_options[option_index].name,
"hbondzvol") == 0)
3635 reset_group_staticProps (args_info);
3640 &(local_args_info.hbondzvol_given), optarg, 0, 0, ARG_NO,
3641 check_ambiguity,
override, 0, 0,
3648 else if (strcmp (long_options[option_index].name,
"hbondr") == 0)
3652 reset_group_staticProps (args_info);
3657 &(local_args_info.hbondr_given), optarg, 0, 0, ARG_NO,
3658 check_ambiguity,
override, 0, 0,
3665 else if (strcmp (long_options[option_index].name,
"hbondrvol") == 0)
3669 reset_group_staticProps (args_info);
3674 &(local_args_info.hbondrvol_given), optarg, 0, 0, ARG_NO,
3675 check_ambiguity,
override, 0, 0,
3682 else if (strcmp (long_options[option_index].name,
"potDiff") == 0)
3686 reset_group_staticProps (args_info);
3691 &(local_args_info.potDiff_given), optarg, 0, 0, ARG_NO,
3692 check_ambiguity,
override, 0, 0,
3699 else if (strcmp (long_options[option_index].name,
"tet_hb") == 0)
3703 reset_group_staticProps (args_info);
3708 &(local_args_info.tet_hb_given), optarg, 0, 0, ARG_NO,
3709 check_ambiguity,
override, 0, 0,
3716 else if (strcmp (long_options[option_index].name,
"kirkwoodQ") == 0)
3720 reset_group_staticProps (args_info);
3725 &(local_args_info.kirkwoodQ_given), optarg, 0, 0, ARG_NO,
3726 check_ambiguity,
override, 0, 0,
3733 else if (strcmp (long_options[option_index].name,
"densityfield") == 0)
3737 reset_group_staticProps (args_info);
3742 &(local_args_info.densityfield_given), optarg, 0, 0, ARG_NO,
3743 check_ambiguity,
override, 0, 0,
3744 "densityfield",
'-',
3750 else if (strcmp (long_options[option_index].name,
"velocityfield") == 0)
3754 reset_group_staticProps (args_info);
3759 &(local_args_info.velocityfield_given), optarg, 0, 0, ARG_NO,
3760 check_ambiguity,
override, 0, 0,
3761 "velocityfield",
'-',
3767 else if (strcmp (long_options[option_index].name,
"velocityZ") == 0)
3771 reset_group_staticProps (args_info);
3776 &(local_args_info.velocityZ_given), optarg, 0, 0, ARG_NO,
3777 check_ambiguity,
override, 0, 0,
3784 else if (strcmp (long_options[option_index].name,
"chargez") == 0)
3788 reset_group_staticProps (args_info);
3793 &(local_args_info.chargez_given), optarg, 0, 0, ARG_NO,
3794 check_ambiguity,
override, 0, 0,
3801 else if (strcmp (long_options[option_index].name,
"charger") == 0)
3805 reset_group_staticProps (args_info);
3810 &(local_args_info.charger_given), optarg, 0, 0, ARG_NO,
3811 check_ambiguity,
override, 0, 0,
3818 else if (strcmp (long_options[option_index].name,
"massdensityz") == 0)
3822 reset_group_staticProps (args_info);
3827 &(local_args_info.massdensityz_given), optarg, 0, 0, ARG_NO,
3828 check_ambiguity,
override, 0, 0,
3829 "massdensityz",
'-',
3835 else if (strcmp (long_options[option_index].name,
"massdensityr") == 0)
3839 reset_group_staticProps (args_info);
3844 &(local_args_info.massdensityr_given), optarg, 0, 0, ARG_NO,
3845 check_ambiguity,
override, 0, 0,
3846 "massdensityr",
'-',
3852 else if (strcmp (long_options[option_index].name,
"numberz") == 0)
3856 reset_group_staticProps (args_info);
3861 &(local_args_info.numberz_given), optarg, 0, 0, ARG_NO,
3862 check_ambiguity,
override, 0, 0,
3869 else if (strcmp (long_options[option_index].name,
"numberr") == 0)
3873 reset_group_staticProps (args_info);
3878 &(local_args_info.numberr_given), optarg, 0, 0, ARG_NO,
3879 check_ambiguity,
override, 0, 0,
3886 else if (strcmp (long_options[option_index].name,
"charge_density_z") == 0)
3890 reset_group_staticProps (args_info);
3895 &(local_args_info.charge_density_z_given), optarg, 0, 0, ARG_NO,
3896 check_ambiguity,
override, 0, 0,
3897 "charge_density_z",
'-',
3903 else if (strcmp (long_options[option_index].name,
"countz") == 0)
3907 reset_group_staticProps (args_info);
3912 &(local_args_info.countz_given), optarg, 0, 0, ARG_NO,
3913 check_ambiguity,
override, 0, 0,
3920 else if (strcmp (long_options[option_index].name,
"order_prob") == 0)
3924 reset_group_staticProps (args_info);
3929 &(local_args_info.order_prob_given), optarg, 0, 0, ARG_NO,
3930 check_ambiguity,
override, 0, 0,
3937 else if (strcmp (long_options[option_index].name,
"sfg") == 0)
3941 reset_group_staticProps (args_info);
3946 &(local_args_info.sfg_given), optarg, 0, 0, ARG_NO,
3947 check_ambiguity,
override, 0, 0,
3960 fprintf (stderr,
"%s: option unknown: %c%s\n",
CMDLINE_PARSER_PACKAGE, c, (additional_error ? additional_error :
""));
3967 fprintf (stderr,
"%s: %d options of group staticProps were given. One is required%s.\n", argv[0], args_info->
staticProps_group_counter, (additional_error ? additional_error :
""));
3975 error_occurred += cmdline_parser_required2 (args_info, argv[0], additional_error);
3978 cmdline_parser_release (&local_args_info);
3980 if ( error_occurred )
3981 return (EXIT_FAILURE);
3986 int found_prog_name = 0;
3992 args_info->
inputs_num = argc - optind - found_prog_name;
3994 (
char **)(malloc ((args_info->
inputs_num)*
sizeof(
char *))) ;
3995 while (optind < argc)
3996 args_info->
inputs[ i++ ] = gengetopt_strdup (argv[optind++]) ;
4003 cmdline_parser_release (&local_args_info);
4004 return (EXIT_FAILURE);
#define CMDLINE_PARSER_VERSION
the program version
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...
void cmdline_parser_print_help(void)
Print the help.
#define CMDLINE_PARSER_PACKAGE_NAME
the complete program name (used for help and version)
#define CMDLINE_PARSER_PACKAGE
the program name (used for printing errors)
The header file for the command line option parser generated by GNU Gengetopt version 2....
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)
int override
whether to override possibly already present options (default 0)
Where the command line options are stored.
unsigned int zoffset_given
Whether zoffset was given.
unsigned int nanglebins_given
Whether nanglebins was given.
unsigned int momentum_given
Whether momentum was given.
const char * tet_param_z_help
spatially-resolved tetrahedrality order parameter Qk(z) help description.
unsigned int seleoffset2_given
Whether seleoffset2 was given.
char * sele2_arg
select second stuntdouble set (if sele2 is not set, use script from sele1).
const char * r_omega_help
g(r, cos(omega)) help description.
char * nbins_orig
Number of bins original value given at command line.
unsigned int pipe_density_given
Whether pipe_density was given.
const char * p2z_help
p2 order parameter using z (or privilegedAxis) as director axis help description.
unsigned int surfDiffusion_given
Whether surfDiffusion was given.
const char * gxyz_help
g(x, y, z) help description.
const char * nbins_x_help
number of bins in x axis help description.
unsigned int tet_param_r_given
Whether tet_param_r was given.
char * dipoleX_orig
X-component of the dipole with respect to body frame original value given at command line.
unsigned int output_given
Whether output was given.
const char * OHfreqmap_help
electrostatic field to OH frequency distribution based on the Corcelli frequency map help description...
double gaussWidth_arg
Gaussian width for coarse graining (Angstroms) (default='3.0').
unsigned int multipole_given
Whether multipole was given.
int nanglebins_arg
number of bins for cos(angle) (default='50').
const char * tet_param_dens_help
computes density of the tetrahedrality order parameter Qk help description.
const char * scd_help
scd order parameter (either –sele1, –sele2, –sele3 are specified or –molname, –begin,...
unsigned int privilegedAxis_given
Whether privilegedAxis was given.
unsigned int OHcut_given
Whether OHcut was given.
char * molname_orig
molecule name original value given at command line.
unsigned int density_given
Whether density was given.
const char * velocityZ_help
computes an average two-dimensional velocity map help description.
const char * theta_omega_help
g(cos(theta), cos(omega)) help description.
const char * rcut_help
cutoff radius (angstroms) help description.
unsigned int comsele_given
Whether comsele was given.
unsigned int for_given
Whether for was given.
unsigned int thetacut_given
Whether thetacut was given.
const char * radius_help
Nanoparticle radius in Angstroms help description.
const char * hullvol_help
hull volume of nanoparticle help description.
const char * rnemdr_help
shell-resolved RNEMD statistics (temperature, density, angular velocity) help description.
char * atom_name_arg
name of atom for with average charge to be generated.
unsigned int scd_given
Whether scd was given.
char * output_orig
output file name original value given at command line.
const char * p2r_help
p2 order parameter using r as director axis help description.
const char * output_help
output file name help description.
const char * nbins_help
Number of bins help description.
const char * massdensityz_help
computes the mass density of the selection along selected axis help description.
unsigned int step_given
Whether step was given.
unsigned int rho_r_given
Whether rho_r was given.
unsigned int hullvol_given
Whether hullvol was given.
unsigned int net_charge_given
Whether net_charge was given.
const char * slab_density_help
slab density, rho(z) help description.
const char * dipoleZ_help
Z-component of the dipole with respect to body frame help description.
const char * numberr_help
computes the number density as a function of the radius and selected molecule help description.
const char * twodgofr_help
2D g(r) (Slab width –dz must be specified) help description.
unsigned int end_given
Whether end was given.
char * binWidth_orig
width of radial bins in angstroms original value given at command line.
unsigned int ior_given
Whether ior 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').
const char * p_angle_help
p(cos(theta)) (–sele1 must be specified, –sele2 is optional) help description.
double binWidth_arg
width of radial bins in angstroms (default='1.0').
unsigned int tet_hb_given
Whether tet_hb was given.
unsigned int chargez_given
Whether chargez was given.
const char * kirkwood_buff_help
Kirkwood-Buff integrals (–sele1 and –sele2 must both be specified) help description.
unsigned int velocityZ_given
Whether velocityZ was given.
const char * sele1_help
select first stuntdouble set help description.
char * molname_arg
molecule name.
char * comsele_arg
select stunt doubles for center-of-mass reference point.
unsigned int voxelSize_given
Whether voxelSize was given.
unsigned int kirkwood_given
Whether kirkwood was given.
unsigned int gofr_given
Whether gofr was given.
unsigned int r_theta_omega_given
Whether r_theta_omega was given.
unsigned int potDiff_given
Whether potDiff was given.
const char * rho_r_help
rho(R) help description.
const char * charger_help
computes the charge density as a function of the radius and selected atom help description.
const char * seleoffset_help
global index offset for a second object (used to define a vector between sites in molecule) help desc...
const char * seleoffset3_help
global index offset for a fourth object (used to define a vector between sites in molecule) help desc...
unsigned int massdensityz_given
Whether massdensityz was given.
unsigned int binWidth_given
Whether binWidth was given.
unsigned int molname_given
Whether molname was given.
int nbins_x_arg
number of bins in x axis (default='100').
char * dipoleY_orig
Y-component of the dipole with respect to body frame original value given at command line.
char * sele3_orig
select third stuntdouble set original value given at command line.
const char * OHcut_help
Oxygen-Hydrogen cutoff radius (angstroms) help description.
const char * sele2_help
select second stuntdouble set (if sele2 is not set, use script from sele1) help description.
unsigned int tet_param_z_given
Whether tet_param_z was given.
const char * current_density_help
computes the current density for the selected atom help description.
char * zlength_orig
maximum length (Defaults to 1/2 smallest length of first frame) original value given at command line.
unsigned int gxyz_given
Whether gxyz was given.
unsigned inputs_num
unamed options number
unsigned int bo_given
Whether bo was given.
unsigned int kirkwoodQ_given
Whether kirkwoodQ was given.
unsigned int begin_given
Whether begin was given.
const char * bo_help
bond order parameter (–rcut must be specified) help description.
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.
unsigned int p2z_given
Whether p2z was given.
const char * gcn_help
Generalized Coordinate Number help description.
unsigned int gen_xyz_given
Whether gen_xyz was given.
unsigned int nbins_y_given
Whether nbins_y was given.
double dipoleY_arg
Y-component of the dipole with respect to body frame (default='0.0').
const char * rp2_help
rp2 order parameter (–sele1 and –sele2 must be specified) help description.
const char * mcount_help
count of molecules matching selection criteria (and associated statistics) help description.
const char * comsele_help
select stunt doubles for center-of-mass reference point help description.
int begin_arg
begin internal index.
unsigned int charge_density_z_given
Whether charge_density_z was given.
unsigned int cn_given
Whether cn was given.
const char * zoffset_help
Where to set the zero for the slab_density calculation help description.
unsigned int tet_param_rangle_given
Whether tet_param_rangle was given.
unsigned int tet_param_given
Whether tet_param was given.
unsigned int component_given
Whether component was given.
const char * hbondz_help
Hydrogen Bonding density binned by z (rcut and thetacut must be specified) help description.
const char * ior_help
icosahedral bond order parameter as a function of radius (–rcut must be specified) help description.
unsigned int dipole_orientation_given
Whether dipole_orientation was given.
unsigned int hbond_given
Whether hbond was given.
const char * rnemdz_help
slab-resolved RNEMD statistics (temperature, density, velocity) help description.
const char * privilegedAxis2_help
which axis is special for spatial analysis (default = x axis) help description.
int nbins_y_arg
number of bins in y axis (default='100').
const char * gofz_help
g(z) help description.
unsigned int hbondr_given
Whether hbondr was given.
const char * thetacut_help
HOO cutoff angle (degrees) help description.
unsigned int refsele_given
Whether refsele was given.
unsigned int fermiCoupling_given
Whether fermiCoupling was given.
char * fermiCoupling_orig
Fermi coupling [cm-1] for stretch-bend coupling in SFG spectra original value given at command line.
const char * seleoffset2_help
global index offset for a third object (used to define a vector between sites in molecule) help descr...
unsigned int bad_given
Whether bad was given.
const char * hbondr_help
Hydrogen Bonding density binned by r (rcut and thetacut must be specified) help description.
double fermiCoupling_arg
Fermi coupling [cm-1] for stretch-bend coupling in SFG spectra (default='25').
unsigned int hbondrvol_given
Whether hbondrvol was given.
char * sfgPolarization_orig
SFG polarization combination: ssp, ppp, sps original value given at command line.
unsigned int charger_given
Whether charger was given.
unsigned int p2_given
Whether p2 was given.
char * OOcut_orig
Oxygen-Oxygen cutoff radius (angstroms) original value given at command line.
unsigned int gaussWidth_given
Whether gaussWidth was given.
double length_arg
maximum length (default='100').
const char * begin_help
begin internal index help description.
const char * help_help
Print help and exit help description.
unsigned int rnemdr_given
Whether rnemdr was given.
char * sele3_arg
select third stuntdouble set.
char * seleoffset_orig
global index offset for a second object (used to define a vector between sites in molecule) original ...
const char * rnemdrt_help
shell and angle-resolved RNEMD statistics (temperature, density, angular velocity) help description.
unsigned int dipoleX_given
Whether dipoleX was given.
char * output_arg
output file name.
unsigned int eam_density_given
Whether eam_density was given.
unsigned int velocityfield_given
Whether velocityfield was given.
double zoffset_arg
Where to set the zero for the slab_density calculation (default='0').
unsigned int tet_param_dens_given
Whether tet_param_dens was given.
char ** inputs
unamed options (options without names)
double lorentzianWidth_arg
Lorentzian half-width [cm-1] applied to eigenstates in SFG spectra (default='5').
const char * v_radius_help
VanderWaals radiius for fictious atoms used in model eg.
unsigned int seleoffset3_given
Whether seleoffset3 was given.
int staticProps_group_counter
Counter for group staticProps.
const char * atom_name_help
name of atom for with average charge to be generated help description.
unsigned int r_z_given
Whether r_z was given.
unsigned int v_radius_given
Whether v_radius was given.
char * nanglebins_orig
number of bins for cos(angle) original value given at command line.
const char * trans_param_z_help
spatially-resolved translational order parameter t(z) help description.
char * input_arg
input dump file.
char * nbins_z_orig
number of bins in z axis original value given at command line.
unsigned int hbondz_given
Whether hbondz was given.
int nbins_z_arg
number of bins in z axis (default='100').
int seleoffset3_arg
global index offset for a fourth object (used to define a vector between sites in molecule).
char * nbins_x_orig
number of bins in x axis original value given at command line.
double thetacut_arg
HOO cutoff angle (degrees) (default='30').
unsigned int dipoleZ_given
Whether dipoleZ was given.
char * thetacut_orig
HOO cutoff angle (degrees) original value given at command line.
const char * dipole_orientation_help
spatially-resolved dipole order parameter S(z), S = (3 Cos^2\theta - 1)/2 help description.
const char * for_help
FCC bond order parameter as a function of radius (–rcut must be specified) help description.
const char * nanglebins_help
number of bins for cos(angle) help description.
unsigned int sele1_given
Whether sele1 was given.
unsigned int sfg_given
Whether sfg was given.
const char * chargez_help
computes the charge distribution along selected axis and selected atom help description.
unsigned int gcn_given
Whether gcn was given.
unsigned int lorentzianWidth_given
Whether lorentzianWidth was given.
unsigned int length_given
Whether length was given.
const char * momentum_help
Type of momentum whose distribtution is required (default = Liner Momentum) help description.
int seleoffset_arg
global index offset for a second object (used to define a vector between sites in molecule).
const char * hbondzvol_help
Hydrogen Bonding density binned by z and normalized by bin volume (rcut and thetacut must be specifie...
unsigned int countz_given
Whether countz was given.
unsigned int rnemdrt_given
Whether rnemdrt was given.
char * momentum_orig
Type of momentum whose distribtution is required (default = Liner Momentum) original value given at c...
unsigned int current_density_given
Whether current_density was given.
double rcut_arg
cutoff radius (angstroms).
const char * voxelSize_help
voxel size for coarse graining (Angstroms) help description.
unsigned int slab_density_given
Whether slab_density was given.
const char * densityfield_help
computes an average density field help description.
const char * sfg_help
SFG susceptibility spectrum (exciton model) - use molecular selections help description.
int gen_xyz_flag
generates xyz file (default=off).
unsigned int kirkwood_buff_given
Whether kirkwood_buff was given.
unsigned int p_angle_given
Whether p_angle was given.
unsigned int trans_param_z_given
Whether trans_param_z was given.
unsigned int densityfield_given
Whether densityfield was given.
const char * privilegedAxis_help
which axis is special for spatial analysis (default = z axis) help description.
char * sele2_orig
select second stuntdouble set (if sele2 is not set, use script from sele1) original value given at co...
const char * scn_help
Secondary Coordination Number Distribution help description.
const char * tet_hb_help
hydrogen bond statistics binned by tetrahedrality of donor and acceptor molecules help description.
enum enum_momentum momentum_arg
Type of momentum whose distribtution is required (default = Liner Momentum) (default='P').
const char * momentum_distribution_help
computes the momentum distribution for the selected atom help description.
const char * dz_help
slab width (dz) help description.
char * refsele_arg
select reference.
const char * count_help
count of objects matching selection criteria (and associated statistics) help description.
const char * nrbins_help
number of radial bins (usually duplicates functionality of nbins) help description.
const char * bad_help
N(theta) bond angle density within (–rcut must be specified) help description.
const char * net_charge_help
computes an average charge profile of the selected atom help description.
char * sele1_orig
select first stuntdouble set original value given at command line.
double dz_arg
slab width (dz).
unsigned int twodgofr_given
Whether twodgofr was given.
enum enum_component component_arg
component of momentum for the momemtum distribution (default = z axis) (default='z').
char * step_orig
process every n frame original value given at command line.
double OHcut_arg
Oxygen-Hydrogen cutoff radius (angstroms) (default='2.45').
char * begin_orig
begin internal index original value given at command line.
const char * end_help
ending affine scale help description.
double voxelSize_arg
voxel size for coarse graining (Angstroms) (default='2.0').
const char * angle_r_help
angle of R help description.
unsigned int OHfreqmap_given
Whether OHfreqmap was given.
const char * lorentzianWidth_help
Lorentzian half-width [cm-1] applied to eigenstates in SFG spectra help description.
char * length_orig
maximum length original value given at command line.
const char * countz_help
computes the number of selected atoms along selected axis help description.
const char * hxy_help
hxy help description.
const char * hbond_help
Hydrogen Bonding statistics using geometric criteria (rcut and thetacut must be specified) help descr...
const char * charge_density_z_help
computes the continuous charge distribution along selected axis and selected atom help description.
char * end_orig
ending affine scale original value given at command line.
char * sele1_arg
select first stuntdouble set.
const char * cn_help
Coordination Number Distribution help description.
double radius_arg
Nanoparticle radius in Angstroms.
const char * nitrile_help
electrostatic potential to frequency map based on the Cho nitrile fits help description.
const char * tet_param_r_help
spatially-resolved tetrahedrality order parameter Qk(r) around a third selection 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 * r_theta_help
g(r, cos(theta)) help description.
const char * rodlength_help
length of nanorod help description.
unsigned int order_prob_given
Whether order_prob was given.
const char * eam_density_help
computes an average eam density profile of the selected atom help description.
char * atom_name_orig
name of atom for with average charge to be generated original value given at command line.
char * refsele_orig
select reference original value given at command line.
double dipoleX_arg
X-component of the dipole with respect to body frame (default='0.0').
unsigned int rcut_given
Whether rcut was given.
char * nbins_y_orig
number of bins in y axis original value given at command line.
const char * kirkwood_help
distance-dependent Kirkwood factor help description.
char * OHcut_orig
Oxygen-Hydrogen cutoff radius (angstroms) original value given at command line.
unsigned int r_theta_given
Whether r_theta was given.
unsigned int help_given
Whether help was given.
const char * gofr_help
g(r) help description.
const char * zlength_help
maximum length (Defaults to 1/2 smallest length of first frame) help description.
const char * sele3_help
select third stuntdouble set help description.
const char * surfDiffusion_help
X, Y, and R (surface diffusion if Z exposed and bulk immobile) diffusion help description.
const char * component_help
component of momentum for the momemtum distribution (default = z axis) help description.
unsigned int nitrile_given
Whether nitrile was given.
const char * hbondrvol_help
Hydrogen Bonding density binned by r and normalized by bin volume (rcut and thetacut must be specifie...
unsigned int gofz_given
Whether gofz was given.
char * v_radius_orig
VanderWaals radiius for fictious atoms used in model eg.
const char * refsele_help
select reference help description.
unsigned int input_given
Whether input was given.
const char * tet_param_rangle_help
spatially-resolved tetrahedrality order parameter Qk(r,cos(theta)) around a third selection help desc...
unsigned int rodlength_given
Whether rodlength was given.
char * nrbins_orig
number of radial bins (usually duplicates functionality of nbins) original value given at command lin...
char * comsele_orig
select stunt doubles for center-of-mass reference point original value given at command line.
char * voxelSize_orig
voxel size for coarse graining (Angstroms) original value given at command line.
unsigned int numberz_given
Whether numberz was given.
unsigned int radius_given
Whether radius was given.
const char * step_help
process every n frame help description.
unsigned int scn_given
Whether scn was given.
int nbins_arg
Number of bins (default='100').
unsigned int rp2_given
Whether rp2 was given.
char * radius_orig
Nanoparticle radius in Angstroms original value given at command line.
unsigned int nrbins_given
Whether nrbins was given.
const char * p2_help
p2 order parameter (–sele1 must be specified, –sele2 is optional) help description.
const char * multipole_help
average multipole moments contained within cutoff spheres as a function of radius help description.
unsigned int p2r_given
Whether p2r was given.
const char * tet_param_xyz_help
volume-resolved tetrahedrality order parameter Qk(x,y,z).
enum enum_privilegedAxis privilegedAxis_arg
which axis is special for spatial analysis (default = z axis) (default='z').
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 numberr_given
Whether numberr was given.
const char * sfgPolarization_help
SFG polarization combination: ssp, ppp, sps help description.
const char * length_help
maximum length help description.
unsigned int hbondzvol_given
Whether hbondzvol was given.
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 * pipe_density_help
pipe density, rho(axis1, axis2) help description.
double end_arg
ending affine scale (default='1.2').
char * dz_orig
slab width (dz) original value given at command line.
char * seleoffset2_orig
global index offset for a third object (used to define a vector between sites in molecule) original v...
char * seleoffset3_orig
global index offset for a fourth object (used to define a vector between sites in molecule) original ...
unsigned int hxy_given
Whether hxy was given.
const char * tet_param_help
tetrahedrality order parameter (Qk) help description.
const char * version_help
Print version and exit help description.
const char * nbins_y_help
number of bins in y axis help description.
const char * binWidth_help
width of radial bins in angstroms help description.
const char * velocityfield_help
computes an average velocity field help description.
enum enum_privilegedAxis2 privilegedAxis2_arg
which axis is special for spatial analysis (default = x axis) (default='x').
char * input_orig
input dump file original value given at command line.
const char * potDiff_help
potential energy difference when charge on selection is set to zero help description.
const char * r_theta_omega_help
g(r, cos(theta), cos(omega)) help description.
unsigned int privilegedAxis2_given
Whether privilegedAxis2 was given.
unsigned int nbins_given
Whether nbins was given.
unsigned int nbins_x_given
Whether nbins_x was given.
unsigned int atom_name_given
Whether atom_name was given.
const char * nbins_z_help
number of bins in z axis help description.
unsigned int zlength_given
Whether zlength was given.
int seleoffset2_arg
global index offset for a third object (used to define a vector between sites in molecule).
const char * massdensityr_help
computes the mass density of the selection as a function of the radius from the center of mass help d...
double zlength_arg
maximum length (Defaults to 1/2 smallest length of first frame).
unsigned int r_omega_given
Whether r_omega was given.
unsigned int count_given
Whether count was given.
unsigned int momentum_distribution_given
Whether momentum_distribution was given.
unsigned int sfgPolarization_given
Whether sfgPolarization was given.
const char * gaussWidth_help
Gaussian width for coarse graining (Angstroms) help description.
const char * r_z_help
g(r, z) help description.
const char * OOcut_help
Oxygen-Oxygen cutoff radius (angstroms) help description.
unsigned int angle_r_given
Whether angle_r was given.
const char * density_help
density (g/cm^3) help description.
const char * gen_xyz_help
generates xyz file help description.
const char * order_prob_help
probability of order parameter for given selection help description.
unsigned int tet_param_xyz_given
Whether tet_param_xyz was given.
double OOcut_arg
Oxygen-Oxygen cutoff radius (angstroms) (default='3.5').
int nrbins_arg
number of radial bins (usually duplicates functionality of nbins) (default='100').
const char * molname_help
molecule name help description.
unsigned int nbins_z_given
Whether nbins_z was given.
char * rcut_orig
cutoff radius (angstroms) original value given at command line.
unsigned int theta_omega_given
Whether theta_omega was given.
char * component_orig
component of momentum for the momemtum distribution (default = z axis) original value given at comman...
unsigned int seleoffset_given
Whether seleoffset was given.
const char * input_help
input dump file help description.
unsigned int rnemdz_given
Whether rnemdz was given.
const char * kirkwoodQ_help
distance-dependent Kirkwood factor for quadrupoles help description.
unsigned int massdensityr_given
Whether massdensityr was given.
char * lorentzianWidth_orig
Lorentzian half-width [cm-1] applied to eigenstates in SFG spectra original value given at command li...
double v_radius_arg
VanderWaals radiius for fictious atoms used in model eg.
unsigned int dz_given
Whether dz was given.
char * gaussWidth_orig
Gaussian width for coarse graining (Angstroms) original value given at command line.
char * zoffset_orig
Where to set the zero for the slab_density calculation original value given at command line.
char * privilegedAxis2_orig
which axis is special for spatial analysis (default = x axis) original value given at command line.
const char * dipoleY_help
Y-component of the dipole with respect to body frame help description.
unsigned int mcount_given
Whether mcount was given.
const char * numberz_help
computes the number density along selected axis and selected molcule help description.
int step_arg
process every n frame (default='1').
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.
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_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.