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

Comparing trunk/src/applications/dynamicProps/DynamicPropsCmd.c (file contents):
Revision 1098 by chuckv, Thu Dec 14 19:38:56 2006 UTC vs.
Revision 1183 by xsun, Tue Oct 2 12:05:25 2007 UTC

# Line 1 | Line 1
1   /*
2 <  File autogenerated by gengetopt version 2.15
2 >  File autogenerated by gengetopt version 2.16
3    generated with the following command:
4 <  gengetopt -i DynamicProps.ggo --file-name=DynamicPropsCmd
4 >  gengetopt -F DynamicPropsCmd
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 50 | Line 50 | void clear_given (struct gengetopt_args_info *args_inf
50    args_info->dcorr_given = 0 ;
51    args_info->lcorr_given = 0 ;
52    args_info->r_rcorr_given = 0 ;
53 +  args_info->thetacorr_given = 0 ;
54 +  args_info->actioncorr_given = 0 ;
55 +  args_info->drcorr_given = 0 ;
56    args_info->dynamicProps_group_counter = 0 ;
57   }
58  
# Line 92 | Line 95 | cmdline_parser_print_help (void)
95    printf("%s\n","  -d, --dcorr                   dipole correlation function");
96    printf("%s\n","  -l, --lcorr                   Lengendre correlation function");
97    printf("%s\n","      --r_rcorr                 Radial rmsd");
98 +  printf("%s\n","      --thetacorr               Angular rmsd");
99 +  printf("%s\n","      --actioncorr              Action correlation function");
100 +  printf("%s\n","      --drcorr                  Directional rmsd for particles with unit \n                                  vectors");
101    
102   }
103  
# Line 225 | Line 231 | cmdline_parser_file_save(const char *filename, struct
231    if (args_info->r_rcorr_given) {
232      fprintf(outfile, "%s\n", "r_rcorr");
233    }
234 +  if (args_info->thetacorr_given) {
235 +    fprintf(outfile, "%s\n", "thetacorr");
236 +  }
237 +  if (args_info->actioncorr_given) {
238 +    fprintf(outfile, "%s\n", "actioncorr");
239 +  }
240 +  if (args_info->drcorr_given) {
241 +    fprintf(outfile, "%s\n", "drcorr");
242 +  }
243    
244    fclose (outfile);
245  
# Line 269 | Line 284 | reset_group_dynamicProps(struct gengetopt_args_info *a
284    args_info->dcorr_given = 0 ;
285    args_info->lcorr_given = 0 ;
286    args_info->r_rcorr_given = 0 ;
287 +  args_info->thetacorr_given = 0 ;
288 +  args_info->actioncorr_given = 0 ;
289 +  args_info->drcorr_given = 0 ;
290  
291    args_info->dynamicProps_group_counter = 0;
292   }
# Line 346 | Line 364 | cmdline_parser_internal (int argc, char * const *argv,
364    cmdline_parser_init (&local_args_info);
365  
366    optarg = 0;
367 <  optind = 1;
367 >  optind = 0;
368    opterr = 1;
369    optopt = '?';
370  
# Line 368 | Line 386 | cmdline_parser_internal (int argc, char * const *argv,
386          { "dcorr",      0, NULL, 'd' },
387          { "lcorr",      0, NULL, 'l' },
388          { "r_rcorr",    0, NULL, 0 },
389 +        { "thetacorr",  0, NULL, 0 },
390 +        { "actioncorr", 0, NULL, 0 },
391 +        { "drcorr",     0, NULL, 0 },
392          { NULL, 0, NULL, 0 }
393        };
394  
# Line 557 | Line 578 | cmdline_parser_internal (int argc, char * const *argv,
578                continue;
579              local_args_info.r_rcorr_given = 1;
580              args_info->r_rcorr_given = 1;
581 +            if (args_info->dynamicProps_group_counter && override)
582 +              reset_group_dynamicProps (args_info);
583 +            args_info->dynamicProps_group_counter += 1;
584 +            break;
585 +          }
586 +          /* Angular rmsd.  */
587 +          else if (strcmp (long_options[option_index].name, "thetacorr") == 0)
588 +          {
589 +            if (local_args_info.thetacorr_given)
590 +              {
591 +                fprintf (stderr, "%s: `--thetacorr' option given more than once%s\n", argv[0], (additional_error ? additional_error : ""));
592 +                goto failure;
593 +              }
594 +            if (args_info->thetacorr_given && ! override)
595 +              continue;
596 +            local_args_info.thetacorr_given = 1;
597 +            args_info->thetacorr_given = 1;
598              if (args_info->dynamicProps_group_counter && override)
599                reset_group_dynamicProps (args_info);
600              args_info->dynamicProps_group_counter += 1;
601              break;
602            }
603 +          /* Action correlation function.  */
604 +          else if (strcmp (long_options[option_index].name, "actioncorr") == 0)
605 +          {
606 +            if (local_args_info.actioncorr_given)
607 +              {
608 +                fprintf (stderr, "%s: `--actioncorr' option given more than once%s\n", argv[0], (additional_error ? additional_error : ""));
609 +                goto failure;
610 +              }
611 +            if (args_info->actioncorr_given && ! override)
612 +              continue;
613 +            local_args_info.actioncorr_given = 1;
614 +            args_info->actioncorr_given = 1;
615 +            if (args_info->dynamicProps_group_counter && override)
616 +              reset_group_dynamicProps (args_info);
617 +            args_info->dynamicProps_group_counter += 1;
618 +            break;
619 +          }
620 +          /* Directional rmsd for particles with unit vectors.  */
621 +          else if (strcmp (long_options[option_index].name, "drcorr") == 0)
622 +          {
623 +            if (local_args_info.drcorr_given)
624 +              {
625 +                fprintf (stderr, "%s: `--drcorr' option given more than once%s\n", argv[0], (additional_error ? additional_error : ""));
626 +                goto failure;
627 +              }
628 +            if (args_info->drcorr_given && ! override)
629 +              continue;
630 +            local_args_info.drcorr_given = 1;
631 +            args_info->drcorr_given = 1;
632 +            if (args_info->dynamicProps_group_counter && override)
633 +              reset_group_dynamicProps (args_info);
634 +            args_info->dynamicProps_group_counter += 1;
635 +            break;
636 +          }
637            
638            break;
639          case '?':       /* Invalid option.  */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines