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", |
130 |
|
args_info->sele3_given = 0 ; |
131 |
|
args_info->refsele_given = 0 ; |
132 |
|
args_info->comsele_given = 0 ; |
133 |
+ |
args_info->seleoffset_given = 0 ; |
134 |
|
args_info->molname_given = 0 ; |
135 |
|
args_info->begin_given = 0 ; |
136 |
|
args_info->end_given = 0 ; |
199 |
|
args_info->refsele_orig = NULL; |
200 |
|
args_info->comsele_arg = NULL; |
201 |
|
args_info->comsele_orig = NULL; |
202 |
+ |
args_info->seleoffset_orig = NULL; |
203 |
|
args_info->molname_arg = NULL; |
204 |
|
args_info->molname_orig = NULL; |
205 |
|
args_info->begin_orig = NULL; |
233 |
|
args_info->sele3_help = gengetopt_args_info_help[17] ; |
234 |
|
args_info->refsele_help = gengetopt_args_info_help[18] ; |
235 |
|
args_info->comsele_help = gengetopt_args_info_help[19] ; |
236 |
< |
args_info->molname_help = gengetopt_args_info_help[20] ; |
237 |
< |
args_info->begin_help = gengetopt_args_info_help[21] ; |
238 |
< |
args_info->end_help = gengetopt_args_info_help[22] ; |
239 |
< |
args_info->radius_help = gengetopt_args_info_help[23] ; |
240 |
< |
args_info->bo_help = gengetopt_args_info_help[25] ; |
241 |
< |
args_info->bor_help = gengetopt_args_info_help[26] ; |
242 |
< |
args_info->bad_help = gengetopt_args_info_help[27] ; |
243 |
< |
args_info->count_help = gengetopt_args_info_help[28] ; |
244 |
< |
args_info->gofr_help = gengetopt_args_info_help[29] ; |
245 |
< |
args_info->gofz_help = gengetopt_args_info_help[30] ; |
246 |
< |
args_info->r_theta_help = gengetopt_args_info_help[31] ; |
247 |
< |
args_info->r_omega_help = gengetopt_args_info_help[32] ; |
248 |
< |
args_info->r_z_help = gengetopt_args_info_help[33] ; |
249 |
< |
args_info->theta_omega_help = gengetopt_args_info_help[34] ; |
250 |
< |
args_info->gxyz_help = gengetopt_args_info_help[35] ; |
251 |
< |
args_info->twodgofr_help = gengetopt_args_info_help[36] ; |
252 |
< |
args_info->p2_help = gengetopt_args_info_help[37] ; |
253 |
< |
args_info->rp2_help = gengetopt_args_info_help[38] ; |
254 |
< |
args_info->scd_help = gengetopt_args_info_help[39] ; |
255 |
< |
args_info->density_help = gengetopt_args_info_help[40] ; |
256 |
< |
args_info->slab_density_help = gengetopt_args_info_help[41] ; |
257 |
< |
args_info->p_angle_help = gengetopt_args_info_help[42] ; |
258 |
< |
args_info->hxy_help = gengetopt_args_info_help[43] ; |
259 |
< |
args_info->rho_r_help = gengetopt_args_info_help[44] ; |
260 |
< |
args_info->angle_r_help = gengetopt_args_info_help[45] ; |
261 |
< |
args_info->hullvol_help = gengetopt_args_info_help[46] ; |
262 |
< |
args_info->rodlength_help = gengetopt_args_info_help[47] ; |
263 |
< |
args_info->tet_param_help = gengetopt_args_info_help[48] ; |
264 |
< |
args_info->tet_param_z_help = gengetopt_args_info_help[49] ; |
236 |
> |
args_info->seleoffset_help = gengetopt_args_info_help[20] ; |
237 |
> |
args_info->molname_help = gengetopt_args_info_help[21] ; |
238 |
> |
args_info->begin_help = gengetopt_args_info_help[22] ; |
239 |
> |
args_info->end_help = gengetopt_args_info_help[23] ; |
240 |
> |
args_info->radius_help = gengetopt_args_info_help[24] ; |
241 |
> |
args_info->bo_help = gengetopt_args_info_help[26] ; |
242 |
> |
args_info->bor_help = gengetopt_args_info_help[27] ; |
243 |
> |
args_info->bad_help = gengetopt_args_info_help[28] ; |
244 |
> |
args_info->count_help = gengetopt_args_info_help[29] ; |
245 |
> |
args_info->gofr_help = gengetopt_args_info_help[30] ; |
246 |
> |
args_info->gofz_help = gengetopt_args_info_help[31] ; |
247 |
> |
args_info->r_theta_help = gengetopt_args_info_help[32] ; |
248 |
> |
args_info->r_omega_help = gengetopt_args_info_help[33] ; |
249 |
> |
args_info->r_z_help = gengetopt_args_info_help[34] ; |
250 |
> |
args_info->theta_omega_help = gengetopt_args_info_help[35] ; |
251 |
> |
args_info->gxyz_help = gengetopt_args_info_help[36] ; |
252 |
> |
args_info->twodgofr_help = gengetopt_args_info_help[37] ; |
253 |
> |
args_info->p2_help = gengetopt_args_info_help[38] ; |
254 |
> |
args_info->rp2_help = gengetopt_args_info_help[39] ; |
255 |
> |
args_info->scd_help = gengetopt_args_info_help[40] ; |
256 |
> |
args_info->density_help = gengetopt_args_info_help[41] ; |
257 |
> |
args_info->slab_density_help = gengetopt_args_info_help[42] ; |
258 |
> |
args_info->p_angle_help = gengetopt_args_info_help[43] ; |
259 |
> |
args_info->hxy_help = gengetopt_args_info_help[44] ; |
260 |
> |
args_info->rho_r_help = gengetopt_args_info_help[45] ; |
261 |
> |
args_info->angle_r_help = gengetopt_args_info_help[46] ; |
262 |
> |
args_info->hullvol_help = gengetopt_args_info_help[47] ; |
263 |
> |
args_info->rodlength_help = gengetopt_args_info_help[48] ; |
264 |
> |
args_info->tet_param_help = gengetopt_args_info_help[49] ; |
265 |
> |
args_info->tet_param_z_help = gengetopt_args_info_help[50] ; |
266 |
|
|
267 |
|
} |
268 |
|
|
371 |
|
free_string_field (&(args_info->refsele_orig)); |
372 |
|
free_string_field (&(args_info->comsele_arg)); |
373 |
|
free_string_field (&(args_info->comsele_orig)); |
374 |
+ |
free_string_field (&(args_info->seleoffset_orig)); |
375 |
|
free_string_field (&(args_info->molname_arg)); |
376 |
|
free_string_field (&(args_info->molname_orig)); |
377 |
|
free_string_field (&(args_info->begin_orig)); |
452 |
|
write_into_file(outfile, "refsele", args_info->refsele_orig, 0); |
453 |
|
if (args_info->comsele_given) |
454 |
|
write_into_file(outfile, "comsele", args_info->comsele_orig, 0); |
455 |
+ |
if (args_info->seleoffset_given) |
456 |
+ |
write_into_file(outfile, "seleoffset", args_info->seleoffset_orig, 0); |
457 |
|
if (args_info->molname_given) |
458 |
|
write_into_file(outfile, "molname", args_info->molname_orig, 0); |
459 |
|
if (args_info->begin_given) |
855 |
|
{ "sele3", 1, NULL, 0 }, |
856 |
|
{ "refsele", 1, NULL, 0 }, |
857 |
|
{ "comsele", 1, NULL, 0 }, |
858 |
+ |
{ "seleoffset", 1, NULL, 0 }, |
859 |
|
{ "molname", 1, NULL, 0 }, |
860 |
|
{ "begin", 1, NULL, 0 }, |
861 |
|
{ "end", 1, NULL, 0 }, |
1211 |
|
&(local_args_info.comsele_given), optarg, 0, 0, ARG_STRING, |
1212 |
|
check_ambiguity, override, 0, 0, |
1213 |
|
"comsele", '-', |
1214 |
+ |
additional_error)) |
1215 |
+ |
goto failure; |
1216 |
+ |
|
1217 |
+ |
} |
1218 |
+ |
/* global index offset for a second object (used to define a vector between sites in molecule). */ |
1219 |
+ |
else if (strcmp (long_options[option_index].name, "seleoffset") == 0) |
1220 |
+ |
{ |
1221 |
+ |
|
1222 |
+ |
|
1223 |
+ |
if (update_arg( (void *)&(args_info->seleoffset_arg), |
1224 |
+ |
&(args_info->seleoffset_orig), &(args_info->seleoffset_given), |
1225 |
+ |
&(local_args_info.seleoffset_given), optarg, 0, 0, ARG_INT, |
1226 |
+ |
check_ambiguity, override, 0, 0, |
1227 |
+ |
"seleoffset", '-', |
1228 |
|
additional_error)) |
1229 |
|
goto failure; |
1230 |
|
|