ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-2.0/src/io/ElectrostaticAtomTypesSectionParser.cpp
(Generate patch)

Comparing branches/new_design/OOPSE-2.0/src/io/ElectrostaticAtomTypesSectionParser.cpp (file contents):
Revision 1774 by tim, Tue Nov 23 17:53:43 2004 UTC vs.
Revision 1775 by tim, Wed Nov 24 17:42:37 2004 UTC

# Line 38 | Line 38 | void ElectrostaticAtomTypesSectionParser::parseLine(Fo
38      //in AtomTypeSection, a line at least contains 2 tokens
39      //atomTypeName and biggest rank
40      //for the time being, we only support up to quadrupole
41 <    //name 0 charge
42 <    //name 1 charge dipole_moment
43 <    //name 2 chargre dipole_moment Qxx Qyy Qzz
41 >    // "name" must match the name in the AtomTypes section
42 >    // charge is given in units of electrons (1.61 x 10^-19 C)
43 >    // Directionality for dipoles and quadrupoles must be given because the body-fixed
44 >    // reference frame for directional atoms is determined by the *mass* distribution and
45 >    // not by the charge distribution.  
46 >    // Dipoles are given in units of Debye  
47 >    // Quadrupoles are given in units of
48 >    // name 0 charge
49 >    // name 1 charge |u| [theta phi psi]
50 >    // name 2 charge |u| Qxx Qyy Qzz [theta phi psi]
51      
52      if (nTokens < 2)  {
53          std::cerr << "ElectrostaticAtomTypesSectionParser Error: Not enought Tokens at line " << lineNo << std::endl;                  
# Line 53 | Line 60 | void ElectrostaticAtomTypesSectionParser::parseLine(Fo
60          if (nTokens < requiredTokens(biggestRank)) {
61  
62          }
56
63          
64          AtomType* atomType = ff ->getAtomType(atomTypeName);
65  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines