ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/UseTheForce/DUFF.cpp
(Generate patch)

Comparing trunk/src/UseTheForce/DUFF.cpp (file contents):
Revision 1275 by cli2, Fri Jul 4 20:54:29 2008 UTC vs.
Revision 1280 by gezelter, Wed Jul 16 02:07:09 2008 UTC

# Line 47 | Line 47
47   #include "UseTheForce/ForceFieldFactory.hpp"
48   #include "io/BaseAtomTypesSectionParser.hpp"
49   #include "io/DirectionalAtomTypesSectionParser.hpp"
50 #include "io/BaseAtomTypesSectionParser.hpp"
50   #include "io/AtomTypesSectionParser.hpp"
51   #include "io/BaseAtomTypesSectionParser.hpp"
52   #include "io/LennardJonesAtomTypesSectionParser.hpp"
# Line 111 | Line 110 | namespace oopse {
110  
111      for (at = atomTypeCont_.beginType(i); at != NULL;
112           at = atomTypeCont_.nextType(i)) {
113 +      // useBase sets the responsibilities, and these have to be done
114 +      // after the atomTypes and Base types have all been scanned:
115 +
116 +      std::vector<AtomType*> ayb = at->allYourBase();      
117 +      if (ayb.size() > 1) {
118 +        for (int j = ayb.size()-1; j > 0; j--) {
119 +          
120 +          ayb[j-1]->useBase(ayb[j]);
121 +
122 +        }
123 +      }
124        at->makeFortranAtomType();
125      }
126  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines