ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/UseTheForce/SC_FF.cpp
(Generate patch)

Comparing trunk/OOPSE-4/src/UseTheForce/SC_FF.cpp (file contents):
Revision 3435 by gezelter, Wed Jul 16 02:07:09 2008 UTC vs.
Revision 3437 by gezelter, Wed Jul 30 18:11:19 2008 UTC

# Line 44 | Line 44
44   *
45   *  Created by Charles F. Vardeman II on 11/9/05.
46   *  @author  Charles F. Vardeman II
47 < *  @version $Id: SC_FF.cpp,v 1.10 2008-07-16 02:07:09 gezelter Exp $
47 > *  @version $Id: SC_FF.cpp,v 1.11 2008-07-30 18:11:18 gezelter Exp $
48   *
49   */
50  
# Line 66 | Line 66 | namespace oopse {
66      
67      //set default force field filename
68      setForceFieldFileName("SuttonChen.frc");
69    
70    //the order of adding section parsers are important
71    //OptionSectionParser must come first to set options for other parsers
72    //DirectionalAtomTypesSectionParser should be added before AtomTypesSectionParser Since
73    //These two section parsers will actually create "real" AtomTypes (AtomTypesSectionParser will create
74    //AtomType and DirectionalAtomTypesSectionParser will creat DirectionalAtomType which is a subclass
75    //of AtomType, therefore it should come first). Other AtomTypes Section Parser will not create the
76    //"real" AtomType, they only add and set some attribute of the AtomType. Thus their order are not
77    //important. AtomTypesSectionParser should be added before other atom type section parsers.
78    //Make sure they are added after DirectionalAtomTypesSectionParser and AtomTypesSectionParser.
79    //The order of BondTypesSectionParser, BendTypesSectionParser and TorsionTypesSectionParser are
80    //not important.
69      spMan_.push_back(new OptionSectionParser(forceFieldOptions_));
70      spMan_.push_back(new BaseAtomTypesSectionParser());
71      spMan_.push_back(new AtomTypesSectionParser());
72      spMan_.push_back(new SCAtomTypesSectionParser(forceFieldOptions_));
85    
73    }
74    
75    void SC_FF::parse(const std::string& filename) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines