1 |
|
/* |
2 |
|
File autogenerated by gengetopt version 2.22.4 |
3 |
|
generated with the following command: |
4 |
< |
gengetopt |
4 |
> |
/usr/local/bin/gengetopt -F DynamicPropsCmd -i DynamicProps.ggo |
5 |
|
|
6 |
|
The developers of gengetopt consider the fixed text that goes in all |
7 |
|
gengetopt output files to be in the public domain: |
23 |
|
|
24 |
|
#include <getopt.h> |
25 |
|
|
26 |
< |
#include "cmdline.h" |
26 |
> |
#include "DynamicPropsCmd.h" |
27 |
|
|
28 |
|
const char *gengetopt_args_info_purpose = ""; |
29 |
|
|
39 |
|
" --sele1=selection script select first stuntdouble set", |
40 |
|
" --sele2=selection script select second stuntdouble set (if sele2 is not \n set, use script from sele1)", |
41 |
|
" --order=INT Lengendre Polynomial Order", |
42 |
+ |
" -m, --memory=memory specification\n Available memory (defaults to 2G) \n (default=`2G')", |
43 |
|
"\n Group: dynamicProps\n an option of this group is required", |
44 |
|
" -r, --rcorr rmsd", |
45 |
|
" -v, --vcorr velocity correlation function", |
46 |
|
" -d, --dcorr dipole correlation function", |
47 |
|
" -l, --lcorr Lengendre correlation function", |
48 |
+ |
" -s, --sdcorr System dipole correlation function", |
49 |
|
" --r_rcorr Radial rmsd", |
50 |
|
" --thetacorr Angular rmsd", |
51 |
|
" --drcorr Directional rmsd for particles with unit \n vectors", |
84 |
|
args_info->sele1_given = 0 ; |
85 |
|
args_info->sele2_given = 0 ; |
86 |
|
args_info->order_given = 0 ; |
87 |
+ |
args_info->memory_given = 0 ; |
88 |
|
args_info->rcorr_given = 0 ; |
89 |
|
args_info->vcorr_given = 0 ; |
90 |
|
args_info->dcorr_given = 0 ; |
91 |
|
args_info->lcorr_given = 0 ; |
92 |
+ |
args_info->sdcorr_given = 0 ; |
93 |
|
args_info->r_rcorr_given = 0 ; |
94 |
|
args_info->thetacorr_given = 0 ; |
95 |
|
args_info->drcorr_given = 0 ; |
111 |
|
args_info->sele2_arg = NULL; |
112 |
|
args_info->sele2_orig = NULL; |
113 |
|
args_info->order_orig = NULL; |
114 |
+ |
args_info->memory_arg = gengetopt_strdup ("2G"); |
115 |
+ |
args_info->memory_orig = NULL; |
116 |
|
|
117 |
|
} |
118 |
|
|
128 |
|
args_info->sele1_help = gengetopt_args_info_help[4] ; |
129 |
|
args_info->sele2_help = gengetopt_args_info_help[5] ; |
130 |
|
args_info->order_help = gengetopt_args_info_help[6] ; |
131 |
< |
args_info->rcorr_help = gengetopt_args_info_help[8] ; |
132 |
< |
args_info->vcorr_help = gengetopt_args_info_help[9] ; |
133 |
< |
args_info->dcorr_help = gengetopt_args_info_help[10] ; |
134 |
< |
args_info->lcorr_help = gengetopt_args_info_help[11] ; |
135 |
< |
args_info->r_rcorr_help = gengetopt_args_info_help[12] ; |
136 |
< |
args_info->thetacorr_help = gengetopt_args_info_help[13] ; |
137 |
< |
args_info->drcorr_help = gengetopt_args_info_help[14] ; |
138 |
< |
args_info->helfandEcorr_help = gengetopt_args_info_help[15] ; |
139 |
< |
args_info->stresscorr_help = gengetopt_args_info_help[16] ; |
131 |
> |
args_info->memory_help = gengetopt_args_info_help[7] ; |
132 |
> |
args_info->rcorr_help = gengetopt_args_info_help[9] ; |
133 |
> |
args_info->vcorr_help = gengetopt_args_info_help[10] ; |
134 |
> |
args_info->dcorr_help = gengetopt_args_info_help[11] ; |
135 |
> |
args_info->lcorr_help = gengetopt_args_info_help[12] ; |
136 |
> |
args_info->sdcorr_help = gengetopt_args_info_help[13] ; |
137 |
> |
args_info->r_rcorr_help = gengetopt_args_info_help[14] ; |
138 |
> |
args_info->thetacorr_help = gengetopt_args_info_help[15] ; |
139 |
> |
args_info->drcorr_help = gengetopt_args_info_help[16] ; |
140 |
> |
args_info->helfandEcorr_help = gengetopt_args_info_help[17] ; |
141 |
> |
args_info->stresscorr_help = gengetopt_args_info_help[18] ; |
142 |
|
|
143 |
|
} |
144 |
|
|
228 |
|
free_string_field (&(args_info->sele2_arg)); |
229 |
|
free_string_field (&(args_info->sele2_orig)); |
230 |
|
free_string_field (&(args_info->order_orig)); |
231 |
+ |
free_string_field (&(args_info->memory_arg)); |
232 |
+ |
free_string_field (&(args_info->memory_orig)); |
233 |
|
|
234 |
|
|
235 |
|
|
274 |
|
write_into_file(outfile, "sele2", args_info->sele2_orig, 0); |
275 |
|
if (args_info->order_given) |
276 |
|
write_into_file(outfile, "order", args_info->order_orig, 0); |
277 |
+ |
if (args_info->memory_given) |
278 |
+ |
write_into_file(outfile, "memory", args_info->memory_orig, 0); |
279 |
|
if (args_info->rcorr_given) |
280 |
|
write_into_file(outfile, "rcorr", 0, 0 ); |
281 |
|
if (args_info->vcorr_given) |
284 |
|
write_into_file(outfile, "dcorr", 0, 0 ); |
285 |
|
if (args_info->lcorr_given) |
286 |
|
write_into_file(outfile, "lcorr", 0, 0 ); |
287 |
+ |
if (args_info->sdcorr_given) |
288 |
+ |
write_into_file(outfile, "sdcorr", 0, 0 ); |
289 |
|
if (args_info->r_rcorr_given) |
290 |
|
write_into_file(outfile, "r_rcorr", 0, 0 ); |
291 |
|
if (args_info->thetacorr_given) |
353 |
|
args_info->vcorr_given = 0 ; |
354 |
|
args_info->dcorr_given = 0 ; |
355 |
|
args_info->lcorr_given = 0 ; |
356 |
+ |
args_info->sdcorr_given = 0 ; |
357 |
|
args_info->r_rcorr_given = 0 ; |
358 |
|
args_info->thetacorr_given = 0 ; |
359 |
|
args_info->drcorr_given = 0 ; |
607 |
|
{ "sele1", 1, NULL, 0 }, |
608 |
|
{ "sele2", 1, NULL, 0 }, |
609 |
|
{ "order", 1, NULL, 0 }, |
610 |
+ |
{ "memory", 1, NULL, 'm' }, |
611 |
|
{ "rcorr", 0, NULL, 'r' }, |
612 |
|
{ "vcorr", 0, NULL, 'v' }, |
613 |
|
{ "dcorr", 0, NULL, 'd' }, |
614 |
|
{ "lcorr", 0, NULL, 'l' }, |
615 |
+ |
{ "sdcorr", 0, NULL, 's' }, |
616 |
|
{ "r_rcorr", 0, NULL, 0 }, |
617 |
|
{ "thetacorr", 0, NULL, 0 }, |
618 |
|
{ "drcorr", 0, NULL, 0 }, |
621 |
|
{ 0, 0, 0, 0 } |
622 |
|
}; |
623 |
|
|
624 |
< |
c = getopt_long (argc, argv, "hVi:o:rvdl", long_options, &option_index); |
624 |
> |
c = getopt_long (argc, argv, "hVi:o:m:rvdls", long_options, &option_index); |
625 |
|
|
626 |
|
if (c == -1) break; /* Exit from `while (1)' loop. */ |
627 |
|
|
657 |
|
&(local_args_info.output_given), optarg, 0, 0, ARG_STRING, |
658 |
|
check_ambiguity, override, 0, 0, |
659 |
|
"output", 'o', |
660 |
+ |
additional_error)) |
661 |
+ |
goto failure; |
662 |
+ |
|
663 |
+ |
break; |
664 |
+ |
case 'm': /* Available memory (defaults to 2G). */ |
665 |
+ |
|
666 |
+ |
|
667 |
+ |
if (update_arg( (void *)&(args_info->memory_arg), |
668 |
+ |
&(args_info->memory_orig), &(args_info->memory_given), |
669 |
+ |
&(local_args_info.memory_given), optarg, 0, "2G", ARG_STRING, |
670 |
+ |
check_ambiguity, override, 0, 0, |
671 |
+ |
"memory", 'm', |
672 |
|
additional_error)) |
673 |
|
goto failure; |
674 |
|
|
733 |
|
goto failure; |
734 |
|
|
735 |
|
break; |
736 |
+ |
case 's': /* System dipole correlation function. */ |
737 |
+ |
|
738 |
+ |
if (args_info->dynamicProps_group_counter && override) |
739 |
+ |
reset_group_dynamicProps (args_info); |
740 |
+ |
args_info->dynamicProps_group_counter += 1; |
741 |
+ |
|
742 |
+ |
if (update_arg( 0 , |
743 |
+ |
0 , &(args_info->sdcorr_given), |
744 |
+ |
&(local_args_info.sdcorr_given), optarg, 0, 0, ARG_NO, |
745 |
+ |
check_ambiguity, override, 0, 0, |
746 |
+ |
"sdcorr", 's', |
747 |
+ |
additional_error)) |
748 |
+ |
goto failure; |
749 |
+ |
|
750 |
+ |
break; |
751 |
|
|
752 |
|
case 0: /* Long option with no short option */ |
753 |
|
/* select first stuntdouble set. */ |