Ignore:
Timestamp:
Apr 23, 2008, 5:33:51 PM (18 years ago)
Author:
Frederik Heber <heber@…>
Children:
76b3dc
Parents:
58ab18
Message:

molecuilder reads and stored ion velocities

Class atom has new variables velocity vector v and integer FixedIon. These are parse during config:load(), and stored via atom:Output() (but only if norm of v is above MYEPSILON), values are copied to son atoms/nodes in AddCopyAtom and AddHydrogenAtom (there: no fancy splitting of the vector as done with the InBondVector)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/atom.cpp

    r58ab18 r090299  
    2020  type = NULL;
    2121  sort = NULL;
     22  FixedIon = 0;
    2223  nr = -1;
    2324  GraphNr = -1;
     
    5960  if (out != NULL) {
    6061    *out << "Ion_Type" << ElementNo << "_" << AtomNo << "\t"  << fixed << setprecision(9) << showpoint;
    61     *out << x.x[0] << "\t" << x.x[1] << "\t" << x.x[2] << "\t";
    62     *out << "\t" << "0\t# Number in molecule " << nr << endl;
     62    *out << x.x[0] << "\t" << x.x[1] << "\t" << x.x[2];
     63    *out << "\t" << FixedIon;
     64    if (v.Norm() > MYEPSILON)
     65      *out << "\t" << scientific << setprecision(6) << v.x[0] << "\t" << v.x[1] << "\t" << v.x[2] << "\t";
     66    *out << " # Number in molecule " << nr << endl;
    6367    return true;
    6468  } else
Note: See TracChangeset for help on using the changeset viewer.