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 1795 by gezelter, Fri Sep 7 18:13:55 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 21 | Line 21
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  
# Line 81 | Line 85 | const char *gengetopt_args_info_help[] = {
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  
# Line 156 | Line 161 | void clear_given (struct gengetopt_args_info *args_inf
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  
# Line 256 | Line 262 | void init_args_info(struct gengetopt_args_info *args_i
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  
# Line 500 | Line 507 | cmdline_parser_dump(FILE *outfile, struct gengetopt_ar
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;
# Line 577 | Line 586 | reset_group_staticProps(struct gengetopt_args_info *ar
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   }
# Line 870 | Line 880 | cmdline_parser_internal (
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  
# Line 1575 | Line 1586 | cmdline_parser_internal (
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            

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines