| 93 |  | "      --rnemdr                  shell-resolved RNEMD statistics (temperature, \n                                  density, angular velocity)", | 
| 94 |  | "      --rnemdrt                 shell and angle-resolved RNEMD statistics \n                                  (temperature, density, angular velocity)", | 
| 95 |  | "      --nitrile                 electrostatic potential to frequency map based \n                                  on the Cho nitrile fits", | 
| 96 | + | "  -m, --multipole               average multipole moment contained within a \n                                  cutoff sphere", | 
| 97 |  | 0 | 
| 98 |  | }; | 
| 99 |  |  | 
| 177 |  | args_info->rnemdr_given = 0 ; | 
| 178 |  | args_info->rnemdrt_given = 0 ; | 
| 179 |  | args_info->nitrile_given = 0 ; | 
| 180 | + | args_info->multipole_given = 0 ; | 
| 181 |  | args_info->staticProps_group_counter = 0 ; | 
| 182 |  | } | 
| 183 |  |  | 
| 288 |  | args_info->rnemdr_help = gengetopt_args_info_help[54] ; | 
| 289 |  | args_info->rnemdrt_help = gengetopt_args_info_help[55] ; | 
| 290 |  | args_info->nitrile_help = gengetopt_args_info_help[56] ; | 
| 291 | + | args_info->multipole_help = gengetopt_args_info_help[57] ; | 
| 292 |  |  | 
| 293 |  | } | 
| 294 |  |  | 
| 551 |  | write_into_file(outfile, "rnemdrt", 0, 0 ); | 
| 552 |  | if (args_info->nitrile_given) | 
| 553 |  | write_into_file(outfile, "nitrile", 0, 0 ); | 
| 554 | + | if (args_info->multipole_given) | 
| 555 | + | write_into_file(outfile, "multipole", 0, 0 ); | 
| 556 |  |  | 
| 557 |  |  | 
| 558 |  | i = EXIT_SUCCESS; | 
| 636 |  | args_info->rnemdr_given = 0 ; | 
| 637 |  | args_info->rnemdrt_given = 0 ; | 
| 638 |  | args_info->nitrile_given = 0 ; | 
| 639 | + | args_info->multipole_given = 0 ; | 
| 640 |  |  | 
| 641 |  | args_info->staticProps_group_counter = 0; | 
| 642 |  | } | 
| 938 |  | { "rnemdr",     0, NULL, 0 }, | 
| 939 |  | { "rnemdrt",    0, NULL, 0 }, | 
| 940 |  | { "nitrile",    0, NULL, 0 }, | 
| 941 | + | { "multipole",  0, NULL, 'm' }, | 
| 942 |  | { 0,  0, 0, 0 } | 
| 943 |  | }; | 
| 944 |  |  | 
| 945 | < | c = getopt_long (argc, argv, "hVi:o:n:b:x:y:a:c:z:gpsdQ", long_options, &option_index); | 
| 945 | > | c = getopt_long (argc, argv, "hVi:o:n:b:x:y:a:c:z:gpsdQm", long_options, &option_index); | 
| 946 |  |  | 
| 947 |  | if (c == -1) break;       /* Exit from `while (1)' loop.  */ | 
| 948 |  |  | 
| 1137 |  | &(local_args_info.tet_param_given), optarg, 0, 0, ARG_NO, | 
| 1138 |  | check_ambiguity, override, 0, 0, | 
| 1139 |  | "tet_param", 'Q', | 
| 1140 | + | additional_error)) | 
| 1141 | + | goto failure; | 
| 1142 | + |  | 
| 1143 | + | break; | 
| 1144 | + | case 'm':       /* average multipole moment contained within a cutoff sphere.  */ | 
| 1145 | + |  | 
| 1146 | + | if (args_info->staticProps_group_counter && override) | 
| 1147 | + | reset_group_staticProps (args_info); | 
| 1148 | + | args_info->staticProps_group_counter += 1; | 
| 1149 | + |  | 
| 1150 | + | if (update_arg( 0 , | 
| 1151 | + | 0 , &(args_info->multipole_given), | 
| 1152 | + | &(local_args_info.multipole_given), optarg, 0, 0, ARG_NO, | 
| 1153 | + | check_ambiguity, override, 0, 0, | 
| 1154 | + | "multipole", 'm', | 
| 1155 |  | additional_error)) | 
| 1156 |  | goto failure; | 
| 1157 |  |  |