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/config.cpp

    r58ab18 r090299  
    604604      ParseForParameter(verbose,file, keyword, 0, 2, 1, double_type, &neues->x.x[1], repetition,critical);
    605605      ParseForParameter(verbose,file, keyword, 0, 3, 1, double_type, &neues->x.x[2], repetition,critical);
     606      ParseForParameter(verbose,file, keyword, 0, 4, 1, int_type, &neues->FixedIon, repetition,critical);
     607      if(!ParseForParameter(verbose,file, keyword, 0, 5, 1, double_type, &neues->v.x[0], repetition,optional))
     608        neues->v.x[0] = 0.;
     609      if(!ParseForParameter(verbose,file, keyword, 0, 6, 1, double_type, &neues->v.x[1], repetition,optional))
     610        neues->v.x[1] = 0.;
     611      if(!ParseForParameter(verbose,file, keyword, 0, 7, 1, double_type, &neues->v.x[2], repetition,optional))
     612        neues->v.x[2] = 0.;
    606613      neues->type = elementhash[i]; // find element type
    607614      mol->AddAtom(neues);
Note: See TracChangeset for help on using the changeset viewer.