1 |
|
/* |
2 |
|
File autogenerated by gengetopt version 2.22.4 |
3 |
|
generated with the following command: |
4 |
< |
gengetopt -i StaticProps.ggo -c cpp -F StaticPropsCmd -u |
4 |
> |
gengetopt --file-name=StaticPropsCmd --unamed-opts |
5 |
|
|
6 |
|
The developers of gengetopt consider the fixed text that goes in all |
7 |
|
gengetopt output files to be in the public domain: |
21 |
|
#define FIX_UNUSED(X) (void) (X) /* avoid warnings for unused params */ |
22 |
|
#endif |
23 |
|
|
24 |
– |
#ifdef WIN32 |
25 |
– |
#include "utils/wingetopt.h" |
26 |
– |
#else |
24 |
|
#include <getopt.h> |
28 |
– |
#endif |
25 |
|
|
26 |
|
#include "StaticPropsCmd.h" |
27 |
|
|
52 |
|
" --sele3=selection script select the third stuntdouble set", |
53 |
|
" --refsele=selection script\n select reference (use and only use with --gxyz)", |
54 |
|
" --comsele=selection script\n select stunt doubles for center-of-mass \n reference point", |
55 |
+ |
" --seleoffset=INT global index offset for a second object (used \n to define a vector between sites in molecule)", |
56 |
|
" --molname=STRING molecule name", |
57 |
|
" --begin=INT begin internal index", |
58 |
|
" --end=INT end internal index", |
81 |
|
" --angle_r angle of R", |
82 |
|
" --hullvol hull volume of nanoparticle", |
83 |
|
" --rodlength length of nanorod", |
84 |
< |
" -Q, --tet_param tetrahedrality order parameter", |
85 |
< |
" --tet_param_z tetrahedrality order parameter by zbin(--sele1 \n must be specified)", |
84 |
> |
" -Q, --tet_param tetrahedrality order parameter (Qk)", |
85 |
> |
" --tet_param_z spatially-resolved tetrahedrality order \n parameter Qk(z)", |
86 |
> |
" --rnemdz slab-resolved RNEMD statistics (temperature, \n density, velocity)", |
87 |
> |
" --rnemdr shell-resolved RNEMD statistics (temperature, \n density, angular velocity)", |
88 |
|
0 |
89 |
|
}; |
90 |
|
|
132 |
|
args_info->sele3_given = 0 ; |
133 |
|
args_info->refsele_given = 0 ; |
134 |
|
args_info->comsele_given = 0 ; |
135 |
+ |
args_info->seleoffset_given = 0 ; |
136 |
|
args_info->molname_given = 0 ; |
137 |
|
args_info->begin_given = 0 ; |
138 |
|
args_info->end_given = 0 ; |
162 |
|
args_info->rodlength_given = 0 ; |
163 |
|
args_info->tet_param_given = 0 ; |
164 |
|
args_info->tet_param_z_given = 0 ; |
165 |
+ |
args_info->rnemdz_given = 0 ; |
166 |
+ |
args_info->rnemdr_given = 0 ; |
167 |
|
args_info->staticProps_group_counter = 0 ; |
168 |
|
} |
169 |
|
|
203 |
|
args_info->refsele_orig = NULL; |
204 |
|
args_info->comsele_arg = NULL; |
205 |
|
args_info->comsele_orig = NULL; |
206 |
+ |
args_info->seleoffset_orig = NULL; |
207 |
|
args_info->molname_arg = NULL; |
208 |
|
args_info->molname_orig = NULL; |
209 |
|
args_info->begin_orig = NULL; |
237 |
|
args_info->sele3_help = gengetopt_args_info_help[17] ; |
238 |
|
args_info->refsele_help = gengetopt_args_info_help[18] ; |
239 |
|
args_info->comsele_help = gengetopt_args_info_help[19] ; |
240 |
< |
args_info->molname_help = gengetopt_args_info_help[20] ; |
241 |
< |
args_info->begin_help = gengetopt_args_info_help[21] ; |
242 |
< |
args_info->end_help = gengetopt_args_info_help[22] ; |
243 |
< |
args_info->radius_help = gengetopt_args_info_help[23] ; |
244 |
< |
args_info->bo_help = gengetopt_args_info_help[25] ; |
245 |
< |
args_info->bor_help = gengetopt_args_info_help[26] ; |
246 |
< |
args_info->bad_help = gengetopt_args_info_help[27] ; |
247 |
< |
args_info->count_help = gengetopt_args_info_help[28] ; |
248 |
< |
args_info->gofr_help = gengetopt_args_info_help[29] ; |
249 |
< |
args_info->gofz_help = gengetopt_args_info_help[30] ; |
250 |
< |
args_info->r_theta_help = gengetopt_args_info_help[31] ; |
251 |
< |
args_info->r_omega_help = gengetopt_args_info_help[32] ; |
252 |
< |
args_info->r_z_help = gengetopt_args_info_help[33] ; |
253 |
< |
args_info->theta_omega_help = gengetopt_args_info_help[34] ; |
254 |
< |
args_info->gxyz_help = gengetopt_args_info_help[35] ; |
255 |
< |
args_info->twodgofr_help = gengetopt_args_info_help[36] ; |
256 |
< |
args_info->p2_help = gengetopt_args_info_help[37] ; |
257 |
< |
args_info->rp2_help = gengetopt_args_info_help[38] ; |
258 |
< |
args_info->scd_help = gengetopt_args_info_help[39] ; |
259 |
< |
args_info->density_help = gengetopt_args_info_help[40] ; |
260 |
< |
args_info->slab_density_help = gengetopt_args_info_help[41] ; |
261 |
< |
args_info->p_angle_help = gengetopt_args_info_help[42] ; |
262 |
< |
args_info->hxy_help = gengetopt_args_info_help[43] ; |
263 |
< |
args_info->rho_r_help = gengetopt_args_info_help[44] ; |
264 |
< |
args_info->angle_r_help = gengetopt_args_info_help[45] ; |
265 |
< |
args_info->hullvol_help = gengetopt_args_info_help[46] ; |
266 |
< |
args_info->rodlength_help = gengetopt_args_info_help[47] ; |
267 |
< |
args_info->tet_param_help = gengetopt_args_info_help[48] ; |
268 |
< |
args_info->tet_param_z_help = gengetopt_args_info_help[49] ; |
240 |
> |
args_info->seleoffset_help = gengetopt_args_info_help[20] ; |
241 |
> |
args_info->molname_help = gengetopt_args_info_help[21] ; |
242 |
> |
args_info->begin_help = gengetopt_args_info_help[22] ; |
243 |
> |
args_info->end_help = gengetopt_args_info_help[23] ; |
244 |
> |
args_info->radius_help = gengetopt_args_info_help[24] ; |
245 |
> |
args_info->bo_help = gengetopt_args_info_help[26] ; |
246 |
> |
args_info->bor_help = gengetopt_args_info_help[27] ; |
247 |
> |
args_info->bad_help = gengetopt_args_info_help[28] ; |
248 |
> |
args_info->count_help = gengetopt_args_info_help[29] ; |
249 |
> |
args_info->gofr_help = gengetopt_args_info_help[30] ; |
250 |
> |
args_info->gofz_help = gengetopt_args_info_help[31] ; |
251 |
> |
args_info->r_theta_help = gengetopt_args_info_help[32] ; |
252 |
> |
args_info->r_omega_help = gengetopt_args_info_help[33] ; |
253 |
> |
args_info->r_z_help = gengetopt_args_info_help[34] ; |
254 |
> |
args_info->theta_omega_help = gengetopt_args_info_help[35] ; |
255 |
> |
args_info->gxyz_help = gengetopt_args_info_help[36] ; |
256 |
> |
args_info->twodgofr_help = gengetopt_args_info_help[37] ; |
257 |
> |
args_info->p2_help = gengetopt_args_info_help[38] ; |
258 |
> |
args_info->rp2_help = gengetopt_args_info_help[39] ; |
259 |
> |
args_info->scd_help = gengetopt_args_info_help[40] ; |
260 |
> |
args_info->density_help = gengetopt_args_info_help[41] ; |
261 |
> |
args_info->slab_density_help = gengetopt_args_info_help[42] ; |
262 |
> |
args_info->p_angle_help = gengetopt_args_info_help[43] ; |
263 |
> |
args_info->hxy_help = gengetopt_args_info_help[44] ; |
264 |
> |
args_info->rho_r_help = gengetopt_args_info_help[45] ; |
265 |
> |
args_info->angle_r_help = gengetopt_args_info_help[46] ; |
266 |
> |
args_info->hullvol_help = gengetopt_args_info_help[47] ; |
267 |
> |
args_info->rodlength_help = gengetopt_args_info_help[48] ; |
268 |
> |
args_info->tet_param_help = gengetopt_args_info_help[49] ; |
269 |
> |
args_info->tet_param_z_help = gengetopt_args_info_help[50] ; |
270 |
> |
args_info->rnemdz_help = gengetopt_args_info_help[51] ; |
271 |
> |
args_info->rnemdr_help = gengetopt_args_info_help[52] ; |
272 |
|
|
273 |
|
} |
274 |
|
|
377 |
|
free_string_field (&(args_info->refsele_orig)); |
378 |
|
free_string_field (&(args_info->comsele_arg)); |
379 |
|
free_string_field (&(args_info->comsele_orig)); |
380 |
+ |
free_string_field (&(args_info->seleoffset_orig)); |
381 |
|
free_string_field (&(args_info->molname_arg)); |
382 |
|
free_string_field (&(args_info->molname_orig)); |
383 |
|
free_string_field (&(args_info->begin_orig)); |
458 |
|
write_into_file(outfile, "refsele", args_info->refsele_orig, 0); |
459 |
|
if (args_info->comsele_given) |
460 |
|
write_into_file(outfile, "comsele", args_info->comsele_orig, 0); |
461 |
+ |
if (args_info->seleoffset_given) |
462 |
+ |
write_into_file(outfile, "seleoffset", args_info->seleoffset_orig, 0); |
463 |
|
if (args_info->molname_given) |
464 |
|
write_into_file(outfile, "molname", args_info->molname_orig, 0); |
465 |
|
if (args_info->begin_given) |
518 |
|
write_into_file(outfile, "tet_param", 0, 0 ); |
519 |
|
if (args_info->tet_param_z_given) |
520 |
|
write_into_file(outfile, "tet_param_z", 0, 0 ); |
521 |
+ |
if (args_info->rnemdz_given) |
522 |
+ |
write_into_file(outfile, "rnemdz", 0, 0 ); |
523 |
+ |
if (args_info->rnemdr_given) |
524 |
+ |
write_into_file(outfile, "rnemdr", 0, 0 ); |
525 |
|
|
526 |
|
|
527 |
|
i = EXIT_SUCCESS; |
600 |
|
args_info->rodlength_given = 0 ; |
601 |
|
args_info->tet_param_given = 0 ; |
602 |
|
args_info->tet_param_z_given = 0 ; |
603 |
+ |
args_info->rnemdz_given = 0 ; |
604 |
+ |
args_info->rnemdr_given = 0 ; |
605 |
|
|
606 |
|
args_info->staticProps_group_counter = 0; |
607 |
|
} |
867 |
|
{ "sele3", 1, NULL, 0 }, |
868 |
|
{ "refsele", 1, NULL, 0 }, |
869 |
|
{ "comsele", 1, NULL, 0 }, |
870 |
+ |
{ "seleoffset", 1, NULL, 0 }, |
871 |
|
{ "molname", 1, NULL, 0 }, |
872 |
|
{ "begin", 1, NULL, 0 }, |
873 |
|
{ "end", 1, NULL, 0 }, |
897 |
|
{ "rodlength", 0, NULL, 0 }, |
898 |
|
{ "tet_param", 0, NULL, 'Q' }, |
899 |
|
{ "tet_param_z", 0, NULL, 0 }, |
900 |
+ |
{ "rnemdz", 0, NULL, 0 }, |
901 |
+ |
{ "rnemdr", 0, NULL, 0 }, |
902 |
|
{ 0, 0, 0, 0 } |
903 |
|
}; |
904 |
|
|
1086 |
|
goto failure; |
1087 |
|
|
1088 |
|
break; |
1089 |
< |
case 'Q': /* tetrahedrality order parameter. */ |
1089 |
> |
case 'Q': /* tetrahedrality order parameter (Qk). */ |
1090 |
|
|
1091 |
|
if (args_info->staticProps_group_counter && override) |
1092 |
|
reset_group_staticProps (args_info); |
1229 |
|
goto failure; |
1230 |
|
|
1231 |
|
} |
1232 |
+ |
/* global index offset for a second object (used to define a vector between sites in molecule). */ |
1233 |
+ |
else if (strcmp (long_options[option_index].name, "seleoffset") == 0) |
1234 |
+ |
{ |
1235 |
+ |
|
1236 |
+ |
|
1237 |
+ |
if (update_arg( (void *)&(args_info->seleoffset_arg), |
1238 |
+ |
&(args_info->seleoffset_orig), &(args_info->seleoffset_given), |
1239 |
+ |
&(local_args_info.seleoffset_given), optarg, 0, 0, ARG_INT, |
1240 |
+ |
check_ambiguity, override, 0, 0, |
1241 |
+ |
"seleoffset", '-', |
1242 |
+ |
additional_error)) |
1243 |
+ |
goto failure; |
1244 |
+ |
|
1245 |
+ |
} |
1246 |
|
/* molecule name. */ |
1247 |
|
else if (strcmp (long_options[option_index].name, "molname") == 0) |
1248 |
|
{ |
1622 |
|
goto failure; |
1623 |
|
|
1624 |
|
} |
1625 |
< |
/* tetrahedrality order parameter by zbin(--sele1 must be specified). */ |
1625 |
> |
/* spatially-resolved tetrahedrality order parameter Qk(z). */ |
1626 |
|
else if (strcmp (long_options[option_index].name, "tet_param_z") == 0) |
1627 |
|
{ |
1628 |
|
|
1639 |
|
goto failure; |
1640 |
|
|
1641 |
|
} |
1642 |
+ |
/* slab-resolved RNEMD statistics (temperature, density, velocity). */ |
1643 |
+ |
else if (strcmp (long_options[option_index].name, "rnemdz") == 0) |
1644 |
+ |
{ |
1645 |
|
|
1646 |
+ |
if (args_info->staticProps_group_counter && override) |
1647 |
+ |
reset_group_staticProps (args_info); |
1648 |
+ |
args_info->staticProps_group_counter += 1; |
1649 |
+ |
|
1650 |
+ |
if (update_arg( 0 , |
1651 |
+ |
0 , &(args_info->rnemdz_given), |
1652 |
+ |
&(local_args_info.rnemdz_given), optarg, 0, 0, ARG_NO, |
1653 |
+ |
check_ambiguity, override, 0, 0, |
1654 |
+ |
"rnemdz", '-', |
1655 |
+ |
additional_error)) |
1656 |
+ |
goto failure; |
1657 |
+ |
|
1658 |
+ |
} |
1659 |
+ |
/* shell-resolved RNEMD statistics (temperature, density, angular velocity). */ |
1660 |
+ |
else if (strcmp (long_options[option_index].name, "rnemdr") == 0) |
1661 |
+ |
{ |
1662 |
+ |
|
1663 |
+ |
if (args_info->staticProps_group_counter && override) |
1664 |
+ |
reset_group_staticProps (args_info); |
1665 |
+ |
args_info->staticProps_group_counter += 1; |
1666 |
+ |
|
1667 |
+ |
if (update_arg( 0 , |
1668 |
+ |
0 , &(args_info->rnemdr_given), |
1669 |
+ |
&(local_args_info.rnemdr_given), optarg, 0, 0, ARG_NO, |
1670 |
+ |
check_ambiguity, override, 0, 0, |
1671 |
+ |
"rnemdr", '-', |
1672 |
+ |
additional_error)) |
1673 |
+ |
goto failure; |
1674 |
+ |
|
1675 |
+ |
} |
1676 |
+ |
|
1677 |
|
break; |
1678 |
|
case '?': /* Invalid option. */ |
1679 |
|
/* `getopt_long' already printed an error message. */ |