ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/applications/atom2md/openmdformat.cpp
(Generate patch)

Comparing trunk/src/applications/atom2md/openmdformat.cpp (file contents):
Revision 1390 by gezelter, Wed Nov 25 20:02:06 2009 UTC vs.
Revision 1399 by gezelter, Thu Dec 24 05:45:30 2009 UTC

# Line 1 | Line 1 | Copyright (C) 2000 by OpenEye Scientific Software, Inc
1   /**********************************************************************
2   Copyright (C) 2000 by OpenEye Scientific Software, Inc.
3 < Some portions Copyright (C) 2001-2005 by Geoffrey R. Hutchison
3 > Some portions Copyright (C) 2001-2006 by Geoffrey R. Hutchison
4   Some portions Copyright (C) 2004 by Chris Morley
5 < Some portions Copyright (C) 2008 by J. Daniel Gezelter
5 > Some portions Copyright (C) 2008-2009 by J. Daniel Gezelter
6  
7   This program is free software; you can redistribute it and/or modify
8   it under the terms of the GNU General Public License as published by
# Line 40 | Line 40 | namespace OpenBabel
40      virtual const char* Description() //required
41      {
42        return
43 <        "OpenMD combined meta-data / cartesian coordinates format\nNo comments yet\n";
43 >        "OpenMD combined meta-data / cartesian coordinates format\n\
44 >        No comments yet\n";
45      };
46      
47      virtual const char* SpecificationURL()
# Line 211 | Line 212 | namespace OpenBabel
212        OBMol* pmol = mols[i];
213        map<OBAtom*, int> atomMap;
214  
215 <      chainParser->PerceiveChains(*pmol, false);
215 >      //chainParser->PerceiveChains(*pmol, false);
216        molIsWater = false;
217        FOR_RESIDUES_OF_MOL(residue, *pmol) {
218          std::cerr << "residue = " << residue->GetName() << "\n";
# Line 353 | Line 354 | namespace OpenBabel
354            }      
355            os << "  atom[" << ai << "] { ";
356            os << "type = " << "\"" << str1 << "\"" << "; ";
357 +          os << "position( " << (&*atom)->GetX() << ", " << (&*atom)->GetY() << ", " << (&*atom)->GetZ() << ");";
358            os << "}\n";
359            atomMap[&(*atom)] = ai++;
360          }        

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines