--- trunk/src/applications/staticProps/StaticPropsCmd.cpp 2014/04/24 17:30:00 1992 +++ trunk/src/applications/staticProps/StaticPropsCmd.cpp 2014/04/30 18:50:45 1994 @@ -92,6 +92,7 @@ const char *gengetopt_args_info_help[] = { " --rnemdz slab-resolved RNEMD statistics (temperature, \n density, velocity)", " --rnemdr shell-resolved RNEMD statistics (temperature, \n density, angular velocity)", " --rnemdrt shell and angle-resolved RNEMD statistics \n (temperature, density, angular velocity)", + " --nitrile electrostatic potential to frequency map based \n on the Cho nitrile fits", 0 }; @@ -174,6 +175,7 @@ void clear_given (struct gengetopt_args_info *args_inf args_info->rnemdz_given = 0 ; args_info->rnemdr_given = 0 ; args_info->rnemdrt_given = 0 ; + args_info->nitrile_given = 0 ; args_info->staticProps_group_counter = 0 ; } @@ -283,6 +285,7 @@ void init_args_info(struct gengetopt_args_info *args_i args_info->rnemdz_help = gengetopt_args_info_help[53] ; args_info->rnemdr_help = gengetopt_args_info_help[54] ; args_info->rnemdrt_help = gengetopt_args_info_help[55] ; + args_info->nitrile_help = gengetopt_args_info_help[56] ; } @@ -543,6 +546,8 @@ cmdline_parser_dump(FILE *outfile, struct gengetopt_ar write_into_file(outfile, "rnemdr", 0, 0 ); if (args_info->rnemdrt_given) write_into_file(outfile, "rnemdrt", 0, 0 ); + if (args_info->nitrile_given) + write_into_file(outfile, "nitrile", 0, 0 ); i = EXIT_SUCCESS; @@ -625,6 +630,7 @@ reset_group_staticProps(struct gengetopt_args_info *ar args_info->rnemdz_given = 0 ; args_info->rnemdr_given = 0 ; args_info->rnemdrt_given = 0 ; + args_info->nitrile_given = 0 ; args_info->staticProps_group_counter = 0; } @@ -925,6 +931,7 @@ cmdline_parser_internal ( { "rnemdz", 0, NULL, 0 }, { "rnemdr", 0, NULL, 0 }, { "rnemdrt", 0, NULL, 0 }, + { "nitrile", 0, NULL, 0 }, { 0, 0, 0, 0 } }; @@ -1743,6 +1750,23 @@ cmdline_parser_internal ( &(local_args_info.rnemdrt_given), optarg, 0, 0, ARG_NO, check_ambiguity, override, 0, 0, "rnemdrt", '-', + additional_error)) + goto failure; + + } + /* electrostatic potential to frequency map based on the Cho nitrile fits. */ + else if (strcmp (long_options[option_index].name, "nitrile") == 0) + { + + if (args_info->staticProps_group_counter && override) + reset_group_staticProps (args_info); + args_info->staticProps_group_counter += 1; + + if (update_arg( 0 , + 0 , &(args_info->nitrile_given), + &(local_args_info.nitrile_given), optarg, 0, 0, ARG_NO, + check_ambiguity, override, 0, 0, + "nitrile", '-', additional_error)) goto failure;