| 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 |
|
} |
| 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; |
| 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 : "")); |
| 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) |
| 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 |
|
} |