Ignore:
Timestamp:
Oct 7, 2009, 1:16:13 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
972706
Parents:
567b7f
Message:

in molecule::OutputTrajectoriesXYZ() ActOnAllAtoms used by new function atom::OutputTrajectoryXYZ().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/atom.cpp

    r567b7f r0cd3b2  
    187187};
    188188
     189/** Output of a single atom as one lin in xyz file.
     190 * \param *out stream to output to
     191 */
     192bool atom::OutputTrajectoryXYZ(ofstream *out, int step) const
     193{
     194  if (out != NULL) {
     195    *out << type->symbol << "\t";
     196    *out << Trajectory.R.at(step).x[0] << "\t";
     197    *out << Trajectory.R.at(step).x[1] << "\t";
     198    *out << Trajectory.R.at(step).x[2] << endl;
     199    return true;
     200  } else
     201    return false;
     202};
     203
    189204ostream & operator << (ostream &ost, const atom &a)
    190205{
Note: See TracChangeset for help on using the changeset viewer.