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.cpp (file contents):
Revision 2023 by gezelter, Sun Jun 1 19:28:44 2014 UTC vs.
Revision 2024 by gezelter, Thu Oct 16 19:13:51 2014 UTC

# Line 49 | Line 49 | const char *gengetopt_args_info_help[] = {
49    "  -s, --selecorr                selection correlation function",
50    "  -r, --rcorr                   rmsd",
51    "  -v, --vcorr                   velocity correlation function",
52 +  "      --vcorrZ                  velocity correlation function along z-axis",
53 +  "      --vcorrR                  velocity correlation function projected \n                                  radially",
54    "  -d, --dcorr                   dipole correlation function",
55    "  -l, --lcorr                   Lengendre correlation function",
56    "      --lcorrZ                  Lengendre correlation function binned by Z",
# Line 100 | Line 102 | void clear_given (struct gengetopt_args_info *args_inf
102    args_info->selecorr_given = 0 ;
103    args_info->rcorr_given = 0 ;
104    args_info->vcorr_given = 0 ;
105 +  args_info->vcorrZ_given = 0 ;
106 +  args_info->vcorrR_given = 0 ;
107    args_info->dcorr_given = 0 ;
108    args_info->lcorr_given = 0 ;
109    args_info->lcorrZ_given = 0 ;
# Line 153 | Line 157 | void init_args_info(struct gengetopt_args_info *args_i
157    args_info->selecorr_help = gengetopt_args_info_help[10] ;
158    args_info->rcorr_help = gengetopt_args_info_help[11] ;
159    args_info->vcorr_help = gengetopt_args_info_help[12] ;
160 <  args_info->dcorr_help = gengetopt_args_info_help[13] ;
161 <  args_info->lcorr_help = gengetopt_args_info_help[14] ;
162 <  args_info->lcorrZ_help = gengetopt_args_info_help[15] ;
163 <  args_info->cohZ_help = gengetopt_args_info_help[16] ;
164 <  args_info->sdcorr_help = gengetopt_args_info_help[17] ;
165 <  args_info->r_rcorr_help = gengetopt_args_info_help[18] ;
166 <  args_info->thetacorr_help = gengetopt_args_info_help[19] ;
167 <  args_info->drcorr_help = gengetopt_args_info_help[20] ;
168 <  args_info->helfandEcorr_help = gengetopt_args_info_help[21] ;
169 <  args_info->momentum_help = gengetopt_args_info_help[22] ;
170 <  args_info->stresscorr_help = gengetopt_args_info_help[23] ;
171 <  args_info->bondcorr_help = gengetopt_args_info_help[24] ;
172 <  args_info->freqfluccorr_help = gengetopt_args_info_help[25] ;
160 >  args_info->vcorrZ_help = gengetopt_args_info_help[13] ;
161 >  args_info->vcorrR_help = gengetopt_args_info_help[14] ;
162 >  args_info->dcorr_help = gengetopt_args_info_help[15] ;
163 >  args_info->lcorr_help = gengetopt_args_info_help[16] ;
164 >  args_info->lcorrZ_help = gengetopt_args_info_help[17] ;
165 >  args_info->cohZ_help = gengetopt_args_info_help[18] ;
166 >  args_info->sdcorr_help = gengetopt_args_info_help[19] ;
167 >  args_info->r_rcorr_help = gengetopt_args_info_help[20] ;
168 >  args_info->thetacorr_help = gengetopt_args_info_help[21] ;
169 >  args_info->drcorr_help = gengetopt_args_info_help[22] ;
170 >  args_info->helfandEcorr_help = gengetopt_args_info_help[23] ;
171 >  args_info->momentum_help = gengetopt_args_info_help[24] ;
172 >  args_info->stresscorr_help = gengetopt_args_info_help[25] ;
173 >  args_info->bondcorr_help = gengetopt_args_info_help[26] ;
174 >  args_info->freqfluccorr_help = gengetopt_args_info_help[27] ;
175    
176   }
177  
# Line 320 | Line 326 | cmdline_parser_dump(FILE *outfile, struct gengetopt_ar
326      write_into_file(outfile, "rcorr", 0, 0 );
327    if (args_info->vcorr_given)
328      write_into_file(outfile, "vcorr", 0, 0 );
329 +  if (args_info->vcorrZ_given)
330 +    write_into_file(outfile, "vcorrZ", 0, 0 );
331 +  if (args_info->vcorrR_given)
332 +    write_into_file(outfile, "vcorrR", 0, 0 );
333    if (args_info->dcorr_given)
334      write_into_file(outfile, "dcorr", 0, 0 );
335    if (args_info->lcorr_given)
# Line 402 | Line 412 | reset_group_dynamicProps(struct gengetopt_args_info *a
412    args_info->selecorr_given = 0 ;
413    args_info->rcorr_given = 0 ;
414    args_info->vcorr_given = 0 ;
415 +  args_info->vcorrZ_given = 0 ;
416 +  args_info->vcorrR_given = 0 ;
417    args_info->dcorr_given = 0 ;
418    args_info->lcorr_given = 0 ;
419    args_info->lcorrZ_given = 0 ;
# Line 668 | Line 680 | cmdline_parser_internal (
680          { "selecorr",   0, NULL, 's' },
681          { "rcorr",      0, NULL, 'r' },
682          { "vcorr",      0, NULL, 'v' },
683 +        { "vcorrZ",     0, NULL, 0 },
684 +        { "vcorrR",     0, NULL, 0 },
685          { "dcorr",      0, NULL, 'd' },
686          { "lcorr",      0, NULL, 'l' },
687          { "lcorrZ",     0, NULL, 0 },
# Line 923 | Line 937 | cmdline_parser_internal (
937                  &(local_args_info.order_given), optarg, 0, 0, ARG_INT,
938                  check_ambiguity, override, 0, 0,
939                  "order", '-',
940 +                additional_error))
941 +              goto failure;
942 +          
943 +          }
944 +          /* velocity correlation function along z-axis.  */
945 +          else if (strcmp (long_options[option_index].name, "vcorrZ") == 0)
946 +          {
947 +          
948 +            if (args_info->dynamicProps_group_counter && override)
949 +              reset_group_dynamicProps (args_info);
950 +            args_info->dynamicProps_group_counter += 1;
951 +          
952 +            if (update_arg( 0 ,
953 +                 0 , &(args_info->vcorrZ_given),
954 +                &(local_args_info.vcorrZ_given), optarg, 0, 0, ARG_NO,
955 +                check_ambiguity, override, 0, 0,
956 +                "vcorrZ", '-',
957                  additional_error))
958                goto failure;
959            
960            }
961 +          /* velocity correlation function projected radially.  */
962 +          else if (strcmp (long_options[option_index].name, "vcorrR") == 0)
963 +          {
964 +          
965 +            if (args_info->dynamicProps_group_counter && override)
966 +              reset_group_dynamicProps (args_info);
967 +            args_info->dynamicProps_group_counter += 1;
968 +          
969 +            if (update_arg( 0 ,
970 +                 0 , &(args_info->vcorrR_given),
971 +                &(local_args_info.vcorrR_given), optarg, 0, 0, ARG_NO,
972 +                check_ambiguity, override, 0, 0,
973 +                "vcorrR", '-',
974 +                additional_error))
975 +              goto failure;
976 +          
977 +          }
978            /* Lengendre correlation function binned by Z.  */
979            else if (strcmp (long_options[option_index].name, "lcorrZ") == 0)
980            {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines