| 1 |
|
/* |
| 2 |
|
File autogenerated by gengetopt version 2.22.4 |
| 3 |
|
generated with the following command: |
| 4 |
< |
gengetopt -F StaticPropsCmd -u |
| 4 |
> |
gengetopt -i StaticProps.ggo -c cpp -F StaticPropsCmd -u |
| 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 |
| 27 |
|
#include <getopt.h> |
| 28 |
+ |
#endif |
| 29 |
|
|
| 30 |
|
#include "StaticPropsCmd.h" |
| 31 |
|
|
| 85 |
|
" --hullvol hull volume of nanoparticle", |
| 86 |
|
" --rodlength length of nanorod", |
| 87 |
|
" -Q, --tet_param tetrahedrality order parameter", |
| 88 |
+ |
" --tet_param_z tetrahedrality order parameter by zbin(--sele1 \n must be specified)", |
| 89 |
|
0 |
| 90 |
|
}; |
| 91 |
|
|
| 161 |
|
args_info->hullvol_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->staticProps_group_counter = 0 ; |
| 166 |
|
} |
| 167 |
|
|
| 262 |
|
args_info->hullvol_help = gengetopt_args_info_help[46] ; |
| 263 |
|
args_info->rodlength_help = gengetopt_args_info_help[47] ; |
| 264 |
|
args_info->tet_param_help = gengetopt_args_info_help[48] ; |
| 265 |
+ |
args_info->tet_param_z_help = gengetopt_args_info_help[49] ; |
| 266 |
|
|
| 267 |
|
} |
| 268 |
|
|
| 507 |
|
write_into_file(outfile, "rodlength", 0, 0 ); |
| 508 |
|
if (args_info->tet_param_given) |
| 509 |
|
write_into_file(outfile, "tet_param", 0, 0 ); |
| 510 |
+ |
if (args_info->tet_param_z_given) |
| 511 |
+ |
write_into_file(outfile, "tet_param_z", 0, 0 ); |
| 512 |
|
|
| 513 |
|
|
| 514 |
|
i = EXIT_SUCCESS; |
| 586 |
|
args_info->hullvol_given = 0 ; |
| 587 |
|
args_info->rodlength_given = 0 ; |
| 588 |
|
args_info->tet_param_given = 0 ; |
| 589 |
+ |
args_info->tet_param_z_given = 0 ; |
| 590 |
|
|
| 591 |
|
args_info->staticProps_group_counter = 0; |
| 592 |
|
} |
| 880 |
|
{ "hullvol", 0, NULL, 0 }, |
| 881 |
|
{ "rodlength", 0, NULL, 0 }, |
| 882 |
|
{ "tet_param", 0, NULL, 'Q' }, |
| 883 |
+ |
{ "tet_param_z", 0, NULL, 0 }, |
| 884 |
|
{ 0, 0, 0, 0 } |
| 885 |
|
}; |
| 886 |
|
|
| 1586 |
|
&(local_args_info.rodlength_given), optarg, 0, 0, ARG_NO, |
| 1587 |
|
check_ambiguity, override, 0, 0, |
| 1588 |
|
"rodlength", '-', |
| 1589 |
+ |
additional_error)) |
| 1590 |
+ |
goto failure; |
| 1591 |
+ |
|
| 1592 |
+ |
} |
| 1593 |
+ |
/* tetrahedrality order parameter by zbin(--sele1 must be specified). */ |
| 1594 |
+ |
else if (strcmp (long_options[option_index].name, "tet_param_z") == 0) |
| 1595 |
+ |
{ |
| 1596 |
+ |
|
| 1597 |
+ |
if (args_info->staticProps_group_counter && override) |
| 1598 |
+ |
reset_group_staticProps (args_info); |
| 1599 |
+ |
args_info->staticProps_group_counter += 1; |
| 1600 |
+ |
|
| 1601 |
+ |
if (update_arg( 0 , |
| 1602 |
+ |
0 , &(args_info->tet_param_z_given), |
| 1603 |
+ |
&(local_args_info.tet_param_z_given), optarg, 0, 0, ARG_NO, |
| 1604 |
+ |
check_ambiguity, override, 0, 0, |
| 1605 |
+ |
"tet_param_z", '-', |
| 1606 |
|
additional_error)) |
| 1607 |
|
goto failure; |
| 1608 |
|
|