ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/applications/staticProps/StaticPropsCmd.cpp
(Generate patch)

Comparing:
branches/development/src/applications/staticProps/StaticPropsCmd.c (file contents), Revision 1629 by gezelter, Wed Sep 14 21:15:17 2011 UTC vs.
trunk/src/applications/staticProps/StaticPropsCmd.cpp (file contents), Revision 1782 by gezelter, Wed Aug 22 02:28:28 2012 UTC

# Line 1 | Line 1
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:
# Line 81 | Line 81 | const char *gengetopt_args_info_help[] = {
81    "      --hullvol                 hull volume of nanoparticle",
82    "      --rodlength               length of nanorod",
83    "  -Q, --tet_param               tetrahedrality order parameter",
84 +  "      --tet_param_z             tetrahedrality order parameter by zbin(--sele1 \n                                  must be specified)",
85      0
86   };
87  
# Line 156 | Line 157 | void clear_given (struct gengetopt_args_info *args_inf
157    args_info->hullvol_given = 0 ;
158    args_info->rodlength_given = 0 ;
159    args_info->tet_param_given = 0 ;
160 +  args_info->tet_param_z_given = 0 ;
161    args_info->staticProps_group_counter = 0 ;
162   }
163  
# Line 256 | Line 258 | void init_args_info(struct gengetopt_args_info *args_i
258    args_info->hullvol_help = gengetopt_args_info_help[46] ;
259    args_info->rodlength_help = gengetopt_args_info_help[47] ;
260    args_info->tet_param_help = gengetopt_args_info_help[48] ;
261 +  args_info->tet_param_z_help = gengetopt_args_info_help[49] ;
262    
263   }
264  
# Line 500 | Line 503 | cmdline_parser_dump(FILE *outfile, struct gengetopt_ar
503      write_into_file(outfile, "rodlength", 0, 0 );
504    if (args_info->tet_param_given)
505      write_into_file(outfile, "tet_param", 0, 0 );
506 +  if (args_info->tet_param_z_given)
507 +    write_into_file(outfile, "tet_param_z", 0, 0 );
508    
509  
510    i = EXIT_SUCCESS;
# Line 577 | Line 582 | reset_group_staticProps(struct gengetopt_args_info *ar
582    args_info->hullvol_given = 0 ;
583    args_info->rodlength_given = 0 ;
584    args_info->tet_param_given = 0 ;
585 +  args_info->tet_param_z_given = 0 ;
586  
587    args_info->staticProps_group_counter = 0;
588   }
# Line 870 | Line 876 | cmdline_parser_internal (
876          { "hullvol",    0, NULL, 0 },
877          { "rodlength",  0, NULL, 0 },
878          { "tet_param",  0, NULL, 'Q' },
879 +        { "tet_param_z",        0, NULL, 0 },
880          { 0,  0, 0, 0 }
881        };
882  
# Line 1575 | Line 1582 | cmdline_parser_internal (
1582                  &(local_args_info.rodlength_given), optarg, 0, 0, ARG_NO,
1583                  check_ambiguity, override, 0, 0,
1584                  "rodlength", '-',
1585 +                additional_error))
1586 +              goto failure;
1587 +          
1588 +          }
1589 +          /* tetrahedrality order parameter by zbin(--sele1 must be specified).  */
1590 +          else if (strcmp (long_options[option_index].name, "tet_param_z") == 0)
1591 +          {
1592 +          
1593 +            if (args_info->staticProps_group_counter && override)
1594 +              reset_group_staticProps (args_info);
1595 +            args_info->staticProps_group_counter += 1;
1596 +          
1597 +            if (update_arg( 0 ,
1598 +                 0 , &(args_info->tet_param_z_given),
1599 +                &(local_args_info.tet_param_z_given), optarg, 0, 0, ARG_NO,
1600 +                check_ambiguity, override, 0, 0,
1601 +                "tet_param_z", '-',
1602                  additional_error))
1603                goto failure;
1604            

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines