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

Comparing trunk/src/applications/staticProps/StaticPropsCmd.c (file contents):
Revision 1525 by kstocke1, Fri Nov 19 20:26:36 2010 UTC vs.
Revision 1526 by kstocke1, Wed Nov 24 17:40:12 2010 UTC

# Line 905 | Line 905 | cmdline_parser_internal (int argc, char * const *argv,
905                "nbins_x", 'x',
906                additional_error))
907              goto failure;
908 <        
908 >        
909            break;
910          case 'y':       /* number of bins in y axis.  */
911          
# Line 1017 | Line 1017 | cmdline_parser_internal (int argc, char * const *argv,
1017            break;
1018  
1019          case 0: /* Long option with no short option */
1020 +          /* number of bins in z axis.  */
1021 +          if (strcmp (long_options[option_index].name, "nbins_z") == 0)
1022 +          {        
1023 +                  
1024 +            if (update_arg( (void *)&(args_info->nbins_z_arg),
1025 +                &(args_info->nbins_z_orig), &(args_info->nbins_z_given),
1026 +                &(local_args_info.nbins_z_given), optarg, 0, "100", ARG_INT,
1027 +                check_ambiguity, override, 0, 0,
1028 +                "nbins_z", '-',
1029 +                 additional_error))
1030 +               goto failure;
1031 +                  
1032 +          }
1033 +
1034 +
1035            /* slab width (dz).  */
1036            else if (strcmp (long_options[option_index].name, "dz") == 0)
1037            {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines