| 1 | 
  | 
/********************************************************************** | 
| 2 | 
< | 
atom2md.cpp - OpenBabel-based conversion program to OOPSE MD file,  | 
| 2 | 
> | 
atom2md.cpp - OpenBabel-based conversion program to OpenMD MD file,  | 
| 3 | 
  | 
              command-line handling. | 
| 4 | 
  | 
 | 
| 5 | 
  | 
Copyright (C) 1998-2001 by OpenEye Scientific Software, Inc. | 
| 7 | 
  | 
Some portions Copyright (C) 2004-2006 by Chris Morley | 
| 8 | 
  | 
Some portions Copyright (C) 2008 by J. Daniel Gezelter | 
| 9 | 
  | 
 | 
| 10 | 
< | 
This file is part of both the OOPSE and Open Babel projects. | 
| 11 | 
< | 
For more information, see <http://oopse.org> and <http://openbabel.sourceforge.net/> | 
| 10 | 
> | 
This file is part of both the OpenMD and Open Babel projects. | 
| 11 | 
> | 
For more information, see <http://openmd.net> and <http://openbabel.sourceforge.net/> | 
| 12 | 
  | 
 | 
| 13 | 
  | 
This program is free software; you can redistribute it and/or modify | 
| 14 | 
  | 
it under the terms of the GNU General Public License as published by | 
| 103 | 
  | 
 | 
| 104 | 
  | 
                case 'V': | 
| 105 | 
  | 
                  { | 
| 106 | 
< | 
                    cout << program_name << ": part of OOPSE " <<  | 
| 107 | 
< | 
                      OOPSE_VERSION_MAJOR << "." << OOPSE_VERSION_MINOR <<  | 
| 108 | 
< | 
                      "." << OOPSE_VERSION_TINY <<  | 
| 106 | 
> | 
                    cout << program_name << ": part of OpenMD " <<  | 
| 107 | 
> | 
                      OPENMD_VERSION_MAJOR << "." << OPENMD_VERSION_MINOR <<  | 
| 108 | 
> | 
                      "." << OPENMD_VERSION_TINY <<  | 
| 109 | 
  | 
                      " and Open Babel " << BABEL_VERSION << " -- "  | 
| 110 | 
  | 
                         << __DATE__ << " -- " << __TIME__ << endl; | 
| 111 | 
  | 
                    exit(0); | 
| 379 | 
  | 
    { | 
| 380 | 
  | 
      clog << messageSummary << endl; | 
| 381 | 
  | 
    } | 
| 382 | 
< | 
   | 
| 382 | 
> | 
 | 
| 383 | 
  | 
#ifdef _DEBUG | 
| 384 | 
  | 
  //CM keep window open | 
| 385 | 
  | 
  cout << "Press any key to finish" <<endl; | 
| 386 | 
  | 
  getch(); | 
| 387 | 
  | 
#endif | 
| 388 | 
– | 
   | 
| 388 | 
  | 
  return 0; | 
| 389 | 
  | 
} | 
| 390 | 
  | 
 | 
| 422 | 
  | 
 | 
| 423 | 
  | 
void usage() | 
| 424 | 
  | 
{ | 
| 425 | 
< | 
  cout << program_name << ": part of OOPSE " <<  | 
| 426 | 
< | 
    OOPSE_VERSION_MAJOR << "." << OOPSE_VERSION_MINOR << "." <<  | 
| 427 | 
< | 
    OOPSE_VERSION_TINY << " and OpenBabel " << BABEL_VERSION << " -- "  | 
| 425 | 
> | 
  cout << program_name << ": part of OpenMD " <<  | 
| 426 | 
> | 
    OPENMD_VERSION_MAJOR << "." << OPENMD_VERSION_MINOR << "." <<  | 
| 427 | 
> | 
    OPENMD_VERSION_TINY << " and OpenBabel " << BABEL_VERSION << " -- "  | 
| 428 | 
  | 
       << __DATE__ << " -- " << __TIME__ << endl; | 
| 429 | 
  | 
  cout << "Usage: " << program_name | 
| 430 | 
  | 
       << " [-i<input-type>] <name> [-o<output-type>] <name>" << endl; |