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

Comparing trunk/src/applications/hydrodynamics/HydroCmd.c (file contents):
Revision 1176 by gezelter, Mon Apr 17 21:49:12 2006 UTC vs.
Revision 1177 by xsun, Tue Aug 14 17:40:33 2007 UTC

# Line 69 | Line 69 | cmdline_parser_print_help (void)
69   cmdline_parser_print_help (void)
70   {
71    cmdline_parser_print_version ();
72 +  printf("\n%s\n", "\n+----------------------------------------------------------------------+ \n|    ____  ____  ____  _____ ______  The OpenSource, Object-oriented   | \n|   / __ \\/ __ \\/ __ \\/ ___// ____/  Parallel Simulation Engine.       | \n|  / / / / / / / /_/ /\\__ \\/ __/                                       | \n| / /_/ / /_/ / ____/___/ / /___     Copyright 2004-2006 by the        | \n| \\____/\\____/_/    /____/_____/     University of Notre Dame.         | \n|                                                                      | \n|                                    http://www.oopse.org              |\n|                                                                      | \n| OOPSE is an OpenScience project.  All source code is available for   |\n| any use subject to only one condition:                               | \n|                                                                      |\n| Any published work resulting from the use of this code must cite the | \n| following paper:       M. A. Meineke, C. F. Vardeman II, T. Lin,     | \n|                        C. J. Fennell, and J. D. Gezelter,            | \n|                        J. Comput. Chem. 26, pp. 252-271 (2005).      | \n+----------------------------------------------------------------------+");
73    printf("\nUsage: Hydro [OPTIONS]...\n\n");
74    printf("%s\n","  -h, --help            Print help and exit");
75    printf("%s\n","  -V, --version         Print version and exit");
76 <  printf("%s\n","  -i, --input=filename  input dump file");
76 >  printf("%s\n","  -i, --input=filename  input MetaData (md) file");
77    printf("%s\n","  -o, --output=STRING   output file prefix  (default=`hydro')");
78 <  printf("%s\n","      --model=STRING    hydrodynamics model (support RoughShell and BeadModel)");
78 >  printf("%s\n","      --model=STRING    hydrodynamics model (supports RoughShell and BeadModel)");
79    printf("%s\n","  -b, --beads           generate the beads only, hydrodynamics will be \n                          performed  (default=off)");
80    
81   }
# Line 268 | Line 269 | cmdline_parser_internal (int argc, char * const *argv,
269      cmdline_parser_init (args_info);
270  
271    cmdline_parser_init (&local_args_info);
271  printf("\n%s\n", "\n+----------------------------------------------------------------------+ \n|    ____  ____  ____  _____ ______  The OpenSource, Object-oriented   | \n|   / __ \\/ __ \\/ __ \\/ ___// ____/  Parallel Simulation Engine.       | \n|  / / / / / / / /_/ /\\__ \\/ __/                                       | \n| / /_/ / /_/ / ____/___/ / /___     Copyright 2004-2006 by the        | \n| \\____/\\____/_/    /____/_____/     University of Notre Dame.         | \n|                                                                      | \n|                                    http://www.oopse.org              |\n|                                                                      | \n| OOPSE is an OpenScience project.  All source code is available for   |\n| any use subject to only one condition:                               | \n|                                                                      |\n| Any published work resulting from the use of this code must cite the | \n| following paper:       M. A. Meineke, C. F. Vardeman II, T. Lin,     | \n|                        C. J. Fennell, and J. D. Gezelter,            | \n|                        J. Comput. Chem. 26, pp. 252-271 (2005).      | \n+----------------------------------------------------------------------+");
272  
273    optarg = 0;
274    optind = 0;
# Line 307 | Line 307 | cmdline_parser_internal (int argc, char * const *argv,
307            cmdline_parser_free (&local_args_info);
308            exit (EXIT_SUCCESS);
309  
310 <        case 'i':       /* input dump file.  */
310 >        case 'i':       /* input MetaData (md) file.  */
311            if (local_args_info.input_given)
312              {
313                fprintf (stderr, "%s: `--input' (`-i') option given more than once%s\n", argv[0], (additional_error ? additional_error : ""));
# Line 358 | Line 358 | cmdline_parser_internal (int argc, char * const *argv,
358  
359  
360          case 0: /* Long option with no short option */
361 <          /* hydrodynamics model (support RoughShell and BeadModel).  */
361 >          /* hydrodynamics model (supports RoughShell and BeadModel).  */
362            if (strcmp (long_options[option_index].name, "model") == 0)
363            {
364              if (local_args_info.model_given)
# Line 399 | Line 399 | cmdline_parser_internal (int argc, char * const *argv,
399    cmdline_parser_release (&local_args_info);
400  
401    if ( error )
402 <    goto failure;
402 >    return (EXIT_FAILURE);
403  
404    return 0;
405  
406   failure:
407    
408  cmdline_parser_print_help ();
408    cmdline_parser_release (&local_args_info);
409    return (EXIT_FAILURE);
410   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines